47 const char *fmt, va_list ap)
59 fprintf (stderr,
"%s: ", file);
60 fputs (
_(
"In section"), stderr);
61 fprintf (stderr,
" '%s':\n",
68 fprintf (stderr,
"%s: ", file);
69 fputs (
_(
"In paragraph"), stderr);
70 fprintf (stderr,
" '%s':\n",
78 fprintf (stderr,
"%s (%d): %s", file, line, prefix);
80 fprintf (stderr,
"%s: %d: %s", file, line, prefix);
82 vfprintf (stderr, fmt, ap);
149 fputs (
_(
"Configuration Warning"), stderr);
150 fputs (
": ", stderr);
159 fprintf (stderr,
"%s: ", fname);
161 fputs (
"cb_conf: ", stderr);
164 fprintf (stderr,
"%d: ", line);
170 vfprintf (stderr, fmt, args);
184 fputs (
_(
"Configuration Error"), stderr);
195 fprintf (stderr,
"%s: ", fname);
197 fputs (
"cb_conf: ", stderr);
200 fprintf (stderr,
"%d: ", line);
206 vfprintf (stderr, fmt, args);
255 if (cb_warn_archaic) {
256 cb_warning (
_(
"%s is archaic in %s"), feature, cb_config_name);
260 if (cb_warn_obsolete) {
261 cb_warning (
_(
"%s is obsolete in %s"), feature, cb_config_name);
275 cb_error (
_(
"%s does not conform to %s"), feature, cb_config_name);
292 _(
"'%s' previously defined here"), w->
name);
307 }
else if (w->
items) {
400 cb_error_x (x,
_(
"Group item '%s' cannot have %s clause"),
413 cb_error_x (x,
_(
"Constant item '%s' cannot have a %s clause"),
416 cb_error_x (x,
_(
"Level %02d item '%s' cannot have a %s clause"),
431 cb_error_x (x,
_(
"Constant item '%s' requires a %s clause"),
434 cb_error_x (x,
_(
"Level %02d item '%s' requires a %s clause"),
449 cb_error_x (x,
_(
"Constant item '%s' can only have a %s clause"),
452 cb_error_x (x,
_(
"Level %02d item '%s' can only have a %s clause"),
static int conf_error_displayed
void cb_error_x(cb_tree x, const char *fmt,...)
void * cobc_main_malloc(const size_t size)
unsigned int flag_optional
void configuration_error(const char *fname, const int line, const int finish_error, const char *fmt,...)
const char * cb_source_file
void cb_warning_x(cb_tree x, const char *fmt,...)
static struct cb_label * last_section
char * cb_name(cb_tree x)
if fold fold static computed alternate extra correct stack on syntax debugging source implicit stack syntax write single recursive relax optional file
unsigned int flag_dummy_paragraph
void redefinition_warning(cb_tree x, cb_tree y)
void level_except_error(cb_tree x, const char *clause)
unsigned int flag_item_78
void ambiguous_error(cb_tree x)
struct cb_label * section
unsigned int cobc_in_repository
void cb_plex_error(const size_t sline, const char *fmt,...)
void configuration_warning(const char *fname, const int line, const char *fmt,...)
EC ARGUMENT EC EC BOUND EC BOUND EC BOUND EC BOUND TABLE EC DATA EC DATA EC DATA PTR NULL
static const char *const prefix[]
static struct cb_label * last_paragraph
void undefined_error(cb_tree x)
void redefinition_error(cb_tree x)
static int last_error_line
struct cb_label * current_paragraph
void cb_error(const char *fmt,...)
if fold fold static computed alternate extra correct stack on syntax debugging line
static const char * last_error_file
static char * errnamebuff
unsigned int cb_verify(const enum cb_support tag, const char *feature)
void group_error(cb_tree x, const char *clause)
void level_require_error(cb_tree x, const char *clause)
struct cb_label * current_section
void cb_plex_warning(const size_t sline, const char *fmt,...)
unsigned int flag_dummy_section
unsigned int cobc_cs_check
void level_redundant_error(cb_tree x, const char *clause)
void cobc_too_many_errors(void)
void cb_warning(const char *fmt,...)
static void print_error(const char *file, int line, const char *prefix, const char *fmt, va_list ap)