(root)/
texinfo-7.1/
tp/
Texinfo/
XS/
parsetexi/
errors.h
       1  /* errors.h - declarations for error.c */
       2  #ifndef ERRORS_H
       3  #define ERRORS_H
       4  
       5  #include "tree_types.h"
       6  #include <stdarg.h>
       7  
       8  int xasprintf (char **ptr, const char *template, ...);
       9  int xvasprintf (char **ptr, const char *template, va_list ap);
      10  
      11  void fatal (char *);
      12  void bug (char *);
      13  
      14  enum error_type { error, warning };
      15  
      16  void line_error (char *format, ...);
      17  void line_warn (char *format, ...);
      18  void command_error (ELEMENT *e, char *format, ...);
      19  void command_warn (ELEMENT *e, char *format, ...);
      20  void wipe_errors (void);
      21  void line_error_ext (enum error_type type, SOURCE_INFO *cmd_source_info,
      22                       char *format, ...);
      23  void bug_message (char *format, ...);
      24  
      25  typedef struct {
      26      char *message;
      27      enum error_type type;
      28      SOURCE_INFO source_info;
      29  } ERROR_MESSAGE;
      30  
      31  extern ERROR_MESSAGE *error_list;
      32  extern size_t error_number;
      33  
      34  #endif