comparison src/redisplay.c @ 213:78f53ef88e17 r20-4b5

Import from CVS: tag r20-4b5
author cvs
date Mon, 13 Aug 2007 10:06:47 +0200
parents 78478c60bfcd
children 1f0dabaa0855
comparison
equal deleted inserted replaced
212:d8688acf4c5b 213:78f53ef88e17
8115 Vinitial_window_system = Qx; 8115 Vinitial_window_system = Qx;
8116 return; 8116 return;
8117 } 8117 }
8118 #endif /* HAVE_X_WINDOWS */ 8118 #endif /* HAVE_X_WINDOWS */
8119 8119
8120 #ifdef HAVE_W32GUI 8120 #ifdef HAVE_MS_WINDOWS
8121 if (!strcmp (display_use, "w32")) 8121 if (!strcmp (display_use, "mswindows"))
8122 { 8122 {
8123 /* Some stuff checks this way early. */ 8123 /* Some stuff checks this way early. */
8124 Vwindow_system = Qw32; 8124 Vwindow_system = Qmswindows;
8125 Vinitial_window_system = Qw32; 8125 Vinitial_window_system = Qmswindows;
8126 return; 8126 return;
8127 } 8127 }
8128 #endif /* HAVE_W32GUI */ 8128 #endif /* HAVE_MS_WINDOWS */
8129 8129
8130 #ifdef HAVE_TTY
8130 /* If no window system has been specified, try to use the terminal. */ 8131 /* If no window system has been specified, try to use the terminal. */
8131 if (!isatty (0)) 8132 if (!isatty (0))
8132 { 8133 {
8133 stderr_out ("XEmacs: standard input is not a tty\n"); 8134 stderr_out ("XEmacs: standard input is not a tty\n");
8134 exit (1); 8135 exit (1);
8140 stderr_out ("Please set the environment variable TERM; see tset(1).\n"); 8141 stderr_out ("Please set the environment variable TERM; see tset(1).\n");
8141 exit (1); 8142 exit (1);
8142 } 8143 }
8143 8144
8144 Vinitial_window_system = Qtty; 8145 Vinitial_window_system = Qtty;
8146 return;
8147 #else /* not HAVE_TTY */
8148 /* No DISPLAY specified, and no TTY support. */
8149 stderr_out ("XEmacs: Cannot open display.\n\
8150 Please set the environmental variable DISPLAY to an appropriate value.\n");
8151 exit (1);
8152 #endif
8153 /* Unreached. */
8145 } 8154 }
8146 8155
8147 void 8156 void
8148 syms_of_redisplay (void) 8157 syms_of_redisplay (void)
8149 { 8158 {