Annotation of pkgsrc/shells/bash/patches/patch-error.h, revision 1.2

1.1       js          1: $NetBSD$
                      2: 
                      3: Fix building when printf is defined to libintl_printf.
                      4: 
                      5: --- error.h.orig       2024-10-24 18:24:03.000000000 +0000
                      6: +++ error.h
                      7: @@ -30,36 +30,36 @@ extern char *get_name_for_error (void);
                      8:  extern void file_error (const char *);
                      9:  
                     10:  /* Report a programmer's error, and abort.  Pass REASON, and ARG1 ... ARG5. */
                     11: -extern void programming_error (const char *, ...) __attribute__((__format__ (printf, 1, 2)));
                     12: +extern void programming_error (const char *, ...) __attribute__((__format__ (__printf__, 1, 2)));
                     13:  
                     14:  /* General error reporting.  Pass FORMAT and ARG1 ... ARG5. */
                     15: -extern void report_error (const char *, ...)  __attribute__((__format__ (printf, 1, 2)));
                     16: +extern void report_error (const char *, ...)  __attribute__((__format__ (__printf__, 1, 2)));
                     17:  
                     18:  /* Error messages for parts of the parser that don't call report_syntax_error */
                     19: -extern void parser_error (int, const char *, ...) __attribute__((__format__ (printf, 2, 3)));
                     20: +extern void parser_error (int, const char *, ...) __attribute__((__format__ (__printf__, 2, 3)));
                     21:  
                     22:  /* Report an unrecoverable error and exit.  Pass FORMAT and ARG1 ... ARG5. */
                     23: -extern void fatal_error (const char *, ...) __attribute__((__format__ (printf, 1, 2)));
                     24: +extern void fatal_error (const char *, ...) __attribute__((__format__ (__printf__, 1, 2)));
                     25:  
                     26:  /* Report a system error, like BSD warn(3). */
                     27: -extern void sys_error (const char *, ...) __attribute__((__format__ (printf, 1, 2)));
                     28: +extern void sys_error (const char *, ...) __attribute__((__format__ (__printf__, 1, 2)));
                     29:  
                     30:  /* Report an internal error. */
                     31: -extern void internal_error (const char *, ...) __attribute__((__format__ (printf, 1, 2)));
                     32: +extern void internal_error (const char *, ...) __attribute__((__format__ (__printf__, 1, 2)));
                     33:  
                     34:  /* Report an internal warning. */
                     35: -extern void internal_warning (const char *, ...)  __attribute__((__format__ (printf, 1, 2)));
                     36: +extern void internal_warning (const char *, ...)  __attribute__((__format__ (__printf__, 1, 2)));
                     37:  
                     38:  /* Report an internal warning for debugging purposes. */
                     39: -extern void internal_debug (const char *, ...) __attribute__((__format__ (printf, 1, 2)));
                     40: +extern void internal_debug (const char *, ...) __attribute__((__format__ (__printf__, 1, 2)));
                     41:  
                     42:  /* Report an internal informational notice. */
                     43: -extern void internal_inform (const char *, ...) __attribute__((__format__ (printf, 1, 2)));
                     44: +extern void internal_inform (const char *, ...) __attribute__((__format__ (__printf__, 1, 2)));
                     45:  
                     46:  /* Debugging functions, not enabled in released version. */
                     47:  extern char *strescape (const char *);
                     48: -extern void itrace (const char *, ...) __attribute__ ((__format__ (printf, 1, 2)));
                     49: -extern void trace (const char *, ...) __attribute__ ((__format__ (printf, 1, 2)));
                     50: +extern void itrace (const char *, ...) __attribute__ ((__format__ (__printf__, 1, 2)));
                     51: +extern void trace (const char *, ...) __attribute__ ((__format__ (__printf__, 1, 2)));
                     52:  
                     53:  /* Report an error having to do with command parsing or execution. */
                     54:  extern void command_error (const char *, int, int, int);

CVSweb <webmaster@jp.NetBSD.org>