Mercurial > emacs
comparison src/msdos.c @ 13394:c4549fcdd5f3
(the_only_x_display): Type is now struct x_output.
(internal_terminal_init): frame member is now named output_data.
(init_environment): Fix timezone rules.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Sat, 04 Nov 1995 00:10:43 +0000 |
parents | 63a43c4b29b2 |
children | 8c7a3533a688 |
comparison
equal
deleted
inserted
replaced
13393:0d3722d074a7 | 13394:c4549fcdd5f3 |
---|---|
251 static int startup_pos_Y; | 251 static int startup_pos_Y; |
252 | 252 |
253 static int term_setup_done; | 253 static int term_setup_done; |
254 | 254 |
255 /* Similar to the_only_frame. */ | 255 /* Similar to the_only_frame. */ |
256 struct x_display the_only_x_display; | 256 struct x_output the_only_x_display; |
257 | 257 |
258 /* This is never dereferenced. */ | 258 /* This is never dereferenced. */ |
259 Display *x_current_display; | 259 Display *x_current_display; |
260 | 260 |
261 | 261 |
690 { | 690 { |
691 the_only_x_display.foreground_pixel = colors[0] & 0x07; | 691 the_only_x_display.foreground_pixel = colors[0] & 0x07; |
692 the_only_x_display.background_pixel = colors[1] & 0x07; | 692 the_only_x_display.background_pixel = colors[1] & 0x07; |
693 } | 693 } |
694 the_only_x_display.line_height = 1; | 694 the_only_x_display.line_height = 1; |
695 the_only_frame.display.x = &the_only_x_display; | 695 the_only_frame.output_data.x = &the_only_x_display; |
696 the_only_frame.output_method = output_msdos_raw; | 696 the_only_frame.output_method = output_msdos_raw; |
697 | 697 |
698 init_frame_faces ((FRAME_PTR) &the_only_frame); | 698 init_frame_faces ((FRAME_PTR) &the_only_frame); |
699 | 699 |
700 ring_bell_hook = IT_ring_bell; | 700 ring_bell_hook = IT_ring_bell; |
1986 case 47: /* Norway */ | 1986 case 47: /* Norway */ |
1987 case 48: /* Poland */ | 1987 case 48: /* Poland */ |
1988 case 49: /* Germany */ | 1988 case 49: /* Germany */ |
1989 /* Daylight saving from last Sunday in March to last Sunday in | 1989 /* Daylight saving from last Sunday in March to last Sunday in |
1990 September, both at 2AM. */ | 1990 September, both at 2AM. */ |
1991 setenv ("TZ", "MET" /* "-01METDST-02,M3.5.0/02:00,M9.5.0/02:00" */, 0); | 1991 setenv ("TZ", "MET-01METDST-02,M3.5.0/02:00,M9.5.0/02:00", 0); |
1992 break; | 1992 break; |
1993 case 44: /* United Kingdom */ | 1993 case 44: /* United Kingdom */ |
1994 case 351: /* Portugal */ | 1994 case 351: /* Portugal */ |
1995 case 354: /* Iceland */ | 1995 case 354: /* Iceland */ |
1996 setenv ("TZ", "GMT" /* "+00" */, 0); | 1996 setenv ("TZ", "GMT+00", 0); |
1997 break; | 1997 break; |
1998 case 81: /* Japan */ | 1998 case 81: /* Japan */ |
1999 case 82: /* Korea */ | 1999 case 82: /* Korea */ |
2000 setenv ("TZ", "JST" /* "-09" */, 0); | 2000 setenv ("TZ", "JST-09", 0); |
2001 break; | 2001 break; |
2002 case 90: /* Turkey */ | 2002 case 90: /* Turkey */ |
2003 case 358: /* Finland */ | 2003 case 358: /* Finland */ |
2004 setenv ("TZ", "EET-02", 0); | |
2005 break; | |
2004 case 972: /* Israel */ | 2006 case 972: /* Israel */ |
2005 setenv ("TZ", "EET" /* "-02" */, 0); | 2007 /* This is an approximation. (For exact rules, use the |
2008 `zoneinfo/israel' file which comes with DJGPP, but you need | |
2009 to install it in `/usr/share/zoneinfo/' directory first.) */ | |
2010 setenv ("TZ", "IST-02IDT-03,M4.1.6/00:00,M9.5.6/01:00", 0); | |
2006 break; | 2011 break; |
2007 } | 2012 } |
2013 init_gettimeofday (); | |
2008 } | 2014 } |
2009 | 2015 |
2010 | 2016 |
2011 | 2017 |
2012 static int break_stat; /* BREAK check mode status. */ | 2018 static int break_stat; /* BREAK check mode status. */ |
2271 if (!q) q = "pc"; | 2277 if (!q) q = "pc"; |
2272 strcpy (p, q); | 2278 strcpy (p, q); |
2273 return 0; | 2279 return 0; |
2274 } | 2280 } |
2275 | 2281 |
2276 /* When time zones are set from Ms-Dos too may C-libraries are playing | 2282 /* When time zones are set from Ms-Dos too many C-libraries are playing |
2277 tricks with time values. We solve this by defining our own version | 2283 tricks with time values. We solve this by defining our own version |
2278 of `gettimeofday' bypassing GO32. Our version needs to be initialized | 2284 of `gettimeofday' bypassing GO32. Our version needs to be initialized |
2279 once and after each call to `tzset' with TZ changed. That is | 2285 once and after each call to `tzset' with TZ changed. That is |
2280 accomplished by aliasing tzset to init_gettimeofday. */ | 2286 accomplished by aliasing tzset to init_gettimeofday. */ |
2281 | 2287 |