/[bison]/bison/src/complain.c
ViewVC logotype

Diff of /bison/src/complain.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.12 by akim, Tue Jul 30 11:09:59 2002 UTC revision 1.13 by eggert, Mon Aug 12 14:36:57 2002 UTC
# Line 43  void exit (); Line 43  void exit ();
43    
44  #include "complain.h"  #include "complain.h"
45    
 #ifndef HAVE_DECL_STRERROR_R  
 "this configure-time declaration test was not run"  
 #endif  
 #if !HAVE_DECL_STRERROR_R  
 char *strerror_r ();  
 #endif  
   
46  #ifndef _  #ifndef _
47  # define _(String) String  # define _(String) String
48  #endif  #endif
# Line 76  char *strerror_r (); Line 69  char *strerror_r ();
69     name of the executing program.  */     name of the executing program.  */
70  extern char *program_name;  extern char *program_name;
71    
72  # ifdef HAVE_STRERROR_R  # if HAVE_STRERROR
73  #  define __strerror_r strerror_r  #  ifndef HAVE_DECL_STRERROR
74    "this configure-time declaration test was not run"
75    #  endif
76    #  if !HAVE_DECL_STRERROR && !defined strerror
77    char *strerror PARAMS ((int));
78    #  endif
79  # else  # else
 #  if HAVE_STRERROR  
 #   ifndef strerror             /* On some systems, strerror is a macro */  
 char *strerror ();  
 #   endif  
 #  else  
80  static char *  static char *
81  private_strerror (errnum)  private_strerror (errnum)
82       int errnum;       int errnum;
# Line 95  private_strerror (errnum) Line 88  private_strerror (errnum)
88      return _(sys_errlist[errnum]);      return _(sys_errlist[errnum]);
89    return _("Unknown system error");    return _("Unknown system error");
90  }  }
91  #   define strerror private_strerror  #  define strerror private_strerror
92  #  endif /* HAVE_STRERROR */  # endif /* HAVE_STRERROR */
 # endif /* HAVE_STRERROR_R */  
93  #endif  /* not _LIBC */  #endif  /* not _LIBC */
94    
95  /* This variable is incremented each time `warn' is called.  */  /* This variable is incremented each time `warn' is called.  */

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26