Mercurial > emacs
comparison src/term.c @ 82387:69bcf35b14d3
Philippe Waroquiers <philippe.waroquiers at eurocontrol.int>
(tty_default_color_capabilities): Explicitly initialize static
variables in file scope, to avoid HPUX compiler problem.
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Wed, 15 Aug 2007 03:19:29 +0000 |
parents | b98604865ea0 |
children | 1822f754a65a |
comparison
equal
deleted
inserted
replaced
82386:11dbda5b0d6d | 82387:69bcf35b14d3 |
---|---|
2236 return make_number (TN_max_colors); | 2236 return make_number (TN_max_colors); |
2237 } | 2237 } |
2238 | 2238 |
2239 #ifndef WINDOWSNT | 2239 #ifndef WINDOWSNT |
2240 | 2240 |
2241 static int default_max_colors = 0; | |
2242 static int default_max_pairs = 0; | |
2243 static int default_no_color_video = 0; | |
2244 static char *default_orig_pair = NULL; | |
2245 static char *default_set_foreground = NULL; | |
2246 static char *default_set_background = NULL; | |
2247 | |
2241 /* Save or restore the default color-related capabilities of this | 2248 /* Save or restore the default color-related capabilities of this |
2242 terminal. */ | 2249 terminal. */ |
2243 static void | 2250 static void |
2244 tty_default_color_capabilities (save) | 2251 tty_default_color_capabilities (save) |
2245 int save; | 2252 int save; |
2246 { | 2253 { |
2247 static char | |
2248 *default_orig_pair, *default_set_foreground, *default_set_background; | |
2249 static int default_max_colors, default_max_pairs, default_no_color_video; | |
2250 | 2254 |
2251 if (save) | 2255 if (save) |
2252 { | 2256 { |
2253 if (default_orig_pair) | 2257 if (default_orig_pair) |
2254 xfree (default_orig_pair); | 2258 xfree (default_orig_pair); |