/[bison]/bison/lib/error.c
ViewVC logotype

Diff of /bison/lib/error.c

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

revision 1.5 by eggert, Mon Nov 25 07:50:25 2002 UTC revision 1.6 by eggert, Fri Dec 13 11:18:35 2002 UTC
# Line 27  Line 27 
27  #else  #else
28  # include "gettext.h"  # include "gettext.h"
29  #endif  #endif
 #define _(msgid) gettext (msgid)  
30    
31  #ifdef _LIBC  #ifdef _LIBC
32  # include <wchar.h>  # include <wchar.h>
# Line 55  void exit (); Line 54  void exit ();
54  #endif  #endif
55    
56  #include "error.h"  #include "error.h"
57  #include "unlocked-io.h"  
58    #if !_LIBC
59    # include "unlocked-io.h"
60    #endif
61    
62    #ifndef _
63    # define _(String) String
64    #endif
65    
66  /* If NULL, error will flush stdout, then print on stderr the program  /* If NULL, error will flush stdout, then print on stderr the program
67     name, a colon and a space.  Otherwise, error will call this     name, a colon and a space.  Otherwise, error will call this
# Line 74  unsigned int error_message_count; Line 80  unsigned int error_message_count;
80    
81  # define program_name program_invocation_name  # define program_name program_invocation_name
82  # include <errno.h>  # include <errno.h>
83    # include <libio/libioP.h>
84    
85  /* In GNU libc we want do not want to use the common name `error' directly.  /* In GNU libc we want do not want to use the common name `error' directly.
86     Instead make it a weak alias.  */     Instead make it a weak alias.  */
# Line 88  extern void __error_at_line (int status, Line 95  extern void __error_at_line (int status,
95    
96  # ifdef USE_IN_LIBIO  # ifdef USE_IN_LIBIO
97  #  include <libio/iolibio.h>  #  include <libio/iolibio.h>
98  #  define fflush(s) _IO_fflush (s)  #  define fflush(s) INTUSE(_IO_fflush) (s)
99    #  undef putc
100    #  define putc(c, fp) INTUSE(_IO_putc) (c, fp)
101  # endif  # endif
102    
103  #else /* not _LIBC */  #else /* not _LIBC */

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

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