changeset 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 11dbda5b0d6d
children 750292f64422
files src/term.c
diffstat 1 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/term.c	Wed Aug 15 03:09:28 2007 +0000
+++ b/src/term.c	Wed Aug 15 03:19:29 2007 +0000
@@ -2238,15 +2238,19 @@
 
 #ifndef WINDOWSNT
 
+static int default_max_colors = 0;
+static int default_max_pairs = 0;
+static int default_no_color_video = 0;
+static char *default_orig_pair = NULL;
+static char *default_set_foreground = NULL;
+static char *default_set_background = NULL;
+
 /* Save or restore the default color-related capabilities of this
    terminal.  */
 static void
 tty_default_color_capabilities (save)
      int save;
 {
-  static char
-    *default_orig_pair, *default_set_foreground, *default_set_background;
-  static int default_max_colors, default_max_pairs, default_no_color_video;
 
   if (save)
     {