#include "gdb_string.h"
#include "event-loop.h"
#include "ui-out.h"
-#if defined (TUI) || defined (GDBTK)
+
+#if defined (TUI)
/* FIXME: cagney/2000-01-31: This #include is to allow older code such
as that found in the TUI to continue to build. */
#include "tui/tui-file.h"
extern char *external_editor_command;
#ifdef __CYGWIN__
-#include <windows.h> /* for MAX_PATH */
#include <sys/cygwin.h> /* for cygwin32_conv_to_posix_path */
#endif
getcwd (gdb_dirbuf, sizeof (gdb_dirbuf));
current_directory = gdb_dirbuf;
-#if defined (TUI) || defined (GDBTK)
- /* Older code uses the tui_file and fputs_unfiltered_hook(). It
- should be using a customized UI_FILE object and re-initializing
- within its own _initialize function. */
+#if defined (TUI)
gdb_stdout = tui_fileopen (stdout);
gdb_stderr = tui_fileopen (stderr);
gdb_stdlog = gdb_stdout; /* for moment */
*before* all the command line arguments are processed; it sets
global parameters, which are independent of what file you are
debugging or what directory you are in. */
-#ifdef __CYGWIN32__
+#ifdef __CYGWIN__
{
char *tmp = getenv ("HOME");
if (tmp != NULL)
{
- homedir = (char *) alloca (MAX_PATH + 1);
+ homedir = (char *) alloca (PATH_MAX + 1);
cygwin32_conv_to_posix_path (tmp, homedir);
}
else