Hi,

SGI's cc tends to be pretty picky, and it doesn't like you to declare
strings with "char blah[]" and initialize it at the same time.  I have
no idea why, but it bombs when it sees this.

Luckily, "char * blah" works just fine and means the same thing.  So,
the attached patch allows people to build using the native SGI cc and
shouldn't break anything.

          Alec

-- 
       Alec Habig, Boston University Particle Astrophysics Group
                           [EMAIL PROTECTED]
                       http://hep.bu.edu/~habig/

--- curs_main.c.issue   Mon Jul 26 10:01:38 1999
+++ curs_main.c Wed Aug 25 10:58:51 1999
@@ -47,10 +47,10 @@
 #include <sys/stat.h>
 #include <errno.h>
 
-static const char No_mailbox_is_open[] = N_("No mailbox is open.");
-static const char There_are_no_messages[] = N_("There are no messages.");
-static const char Mailbox_is_read_only[] = N_("Mailbox is read-only.");
-static const char Function_not_permitted_in_attach_message_mode[] = N_("Function not 
permitted in attach-message mode.");
+static const char * No_mailbox_is_open = N_("No mailbox is open.");
+static const char * There_are_no_messages = N_("There are no messages.");
+static const char * Mailbox_is_read_only = N_("Mailbox is read-only.");
+static const char * Function_not_permitted_in_attach_message_mode = N_("Function not 
+permitted in attach-message mode.");
 
 #define CHECK_MSGCOUNT if (!Context) \
        { \
--- edit.c.issue        Thu Jan  7 04:14:40 1999
+++ edit.c      Wed Aug 25 11:03:28 1999
@@ -33,7 +33,7 @@
  * SLcurses_waddnstr() can't take a "const char *", so this is only
  * declared "static" (sigh)
  */
-static char EditorHelp[] = N_("\
+static char * EditorHelp = N_("\
 ~~             insert a line begining with a single ~\n\
 ~b users       add users to the Bcc: field\n\
 ~c users       add users to the Cc: field\n\
--- main.c.issue        Mon Aug 23 08:22:20 1999
+++ main.c      Wed Aug 25 11:04:47 1999
@@ -36,16 +36,16 @@
 #include <getopt.h>
 #endif
 
-const char ReachingUs[] = N_("\
+const char * ReachingUs = N_("\
 To contact the developers, please mail to <[EMAIL PROTECTED]>.\n");
 
-const char Notice[] = N_("\
+const char * Notice = N_("\
 Copyright (C) 1996-9 Michael R. Elkins and others.\n\
 Mutt comes with ABSOLUTELY NO WARRANTY; for details type `mutt -vv'.\n\
 Mutt is free software, and you are welcome to redistribute it\n\
 under certain conditions; type `mutt -vv' for details.\n");
 
-const char Copyright[] = N_("\
+const char * Copyright = N_("\
 Copyright (C) 1996-9 Michael R. Elkins <[EMAIL PROTECTED]>\n\
 Copyright (C) 1997-9 Thomas Roessler <[EMAIL PROTECTED]>\n\
 Copyright (C) 1998-9 Werner Koch <[EMAIL PROTECTED]>\n\
@@ -70,7 +70,7 @@
 ");
 #ifdef _PGPPATH
 
-const char ShaCopyright[] = N_("\n\
+const char * ShaCopyright = N_("\n\
 SHA1 implementation Copyright (C) 1995-7 Eric A. Young <[EMAIL PROTECTED]>\n\
 \n\
     Redistribution and use in source and binary forms, with or without\n\
--- pager.c.issue       Tue Jul 20 03:19:11 1999
+++ pager.c     Wed Aug 25 11:06:23 1999
@@ -51,9 +51,9 @@
 #define IsAttach(x) (x && (x)->bdy)
 #define IsHeader(x) (x && (x)->hdr)
 
-static const char Not_available_in_this_menu[] = N_("Not available in this menu.");
-static const char Mailbox_is_read_only[] = N_("Mailbox is read-only.");
-static const char Function_not_permitted_in_attach_message_mode[] = N_("Function not 
permitted in attach-message mode.");
+static const char * Not_available_in_this_menu = N_("Not available in this menu.");
+static const char * Mailbox_is_read_only = N_("Mailbox is read-only.");
+static const char * Function_not_permitted_in_attach_message_mode = N_("Function not 
+permitted in attach-message mode.");
 
 #define CHECK_MODE(x)  if (!(x)) \
                        { \
--- recvattach.c.issue  Mon Jul 26 14:25:38 1999
+++ recvattach.c        Wed Aug 25 11:08:38 1999
@@ -44,7 +44,7 @@
 #include <string.h>
 #include <errno.h>
 
-static const char Mailbox_is_read_only[] = N_("Mailbox is read-only.");
+static const char * Mailbox_is_read_only = N_("Mailbox is read-only.");
 
 #define CHECK_READONLY if (Context->readonly) \
 {\

Reply via email to