Back to index

tetex-bin  3.0
Functions
error_routines.c File Reference
#include "cpascal.h"
#include "parser.h"

Go to the source code of this file.

Functions

void lex_error_0 (string fmt)
void lex_error_1 (string fmt, int item)
void lex_error_s (string fmt, string item)
void lex_error_s_1 (string fmt, string item, int item1)
void yyerror (string fmt)
void warning_0 (string fmt)
void warning_1 (string fmt, int item)
void warning_2 (string fmt, int item, int item2)
void warning_s (string fmt, string item)
void warning_s_1 (string fmt, string item, int item1)
void warning_s_2 (string fmt, string item, int item1, int item2)
void fatal_error_0 (string fmt)
void fatal_error_1 (string fmt, int item)
void fatal_error_2 (string fmt, int item, int item2)
void fatal_error_s (string fmt, string item)
void internal_error_0 (string fmt)
void internal_error_1 (string fmt, int item)
void internal_error_s (string fmt, string item)

Function Documentation

Definition at line 124 of file error_routines.c.

{
    fprintf(stderr, "line %d (fatal): ", line_number);
    fprintf(stderr, fmt);
    fprintf(stderr, "\n");
    exit(1);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void fatal_error_1 ( string  fmt,
int  item 
)

Definition at line 133 of file error_routines.c.

{
    fprintf(stderr, "line %d (fatal): ", line_number);
    fprintf(stderr, fmt, item);
    fprintf(stderr, "\n");
    exit(1);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void fatal_error_2 ( string  fmt,
int  item,
int  item2 
)

Definition at line 142 of file error_routines.c.

{
    fprintf(stderr, "line %d (fatal): ", line_number);
    fprintf(stderr, fmt, item, item2);
    fprintf(stderr, "\n");
    exit(1);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void fatal_error_s ( string  fmt,
string  item 
)

Definition at line 151 of file error_routines.c.

{
    fprintf(stderr, "line %d (fatal): ", line_number);
    fprintf(stderr, fmt, item);
    fprintf(stderr, "\n");
    exit(1);
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 160 of file error_routines.c.

{
    fprintf(stderr, "line %d (internal): ", line_number);
    fprintf(stderr, fmt);
    fprintf(stderr, "\n");
    exit(2);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void internal_error_1 ( string  fmt,
int  item 
)

Definition at line 169 of file error_routines.c.

{
    fprintf(stderr, "line %d (internal): ", line_number);
    fprintf(stderr, fmt, item);
    fprintf(stderr, "\n");
    exit(2);
}

Here is the call graph for this function:

void internal_error_s ( string  fmt,
string  item 
)

Definition at line 178 of file error_routines.c.

{
    fprintf(stderr, "line %d (internal): ", line_number);
    fprintf(stderr, fmt, item);
    fprintf(stderr, "\n");
    exit(2);
}

Here is the call graph for this function:

Definition at line 35 of file error_routines.c.

{
    fprintf(stderr, "line %d (lexing): ", line_number);
    fprintf(stderr, fmt);
    fprintf(stderr, "\n");
}

Here is the call graph for this function:

void lex_error_1 ( string  fmt,
int  item 
)

Definition at line 43 of file error_routines.c.

{
    fprintf(stderr, "line %d (lexing): ", line_number);
    fprintf(stderr, fmt, item);
    fprintf(stderr, "\n");
}

Here is the call graph for this function:

void lex_error_s ( string  fmt,
string  item 
)

Definition at line 51 of file error_routines.c.

{
    fprintf(stderr, "line %d (lexing): ", line_number);
    fprintf(stderr, fmt, item);
    fprintf(stderr, "\n");
}

Here is the call graph for this function:

void lex_error_s_1 ( string  fmt,
string  item,
int  item1 
)

Definition at line 59 of file error_routines.c.

{
    fprintf(stderr, "line %d (lexing): ", line_number);
    fprintf(stderr, fmt, item, item1);
    fprintf(stderr, "\n");
}

Here is the call graph for this function:

void warning_0 ( string  fmt)

Definition at line 76 of file error_routines.c.

{
    fprintf(stderr, "line %d (warning): ", line_number);
    fprintf(stderr, fmt);
    fprintf(stderr, "\n");
}

Here is the call graph for this function:

Here is the caller graph for this function:

void warning_1 ( string  fmt,
int  item 
)

Definition at line 84 of file error_routines.c.

{
    fprintf(stderr, "line %d (warning): ", line_number);
    fprintf(stderr, fmt, item);
    fprintf(stderr, "\n");
}

Here is the call graph for this function:

Here is the caller graph for this function:

void warning_2 ( string  fmt,
int  item,
int  item2 
)

Definition at line 92 of file error_routines.c.

{
    fprintf(stderr, "line %d (warning): ", line_number);
    fprintf(stderr, fmt, item, item2);
    fprintf(stderr, "\n");
}

Here is the call graph for this function:

Here is the caller graph for this function:

void warning_s ( string  fmt,
string  item 
)

Definition at line 100 of file error_routines.c.

{
    fprintf(stderr, "line %d (warning): ", line_number);
    fprintf(stderr, fmt, item);
    fprintf(stderr, "\n");
}

Here is the call graph for this function:

Here is the caller graph for this function:

void warning_s_1 ( string  fmt,
string  item,
int  item1 
)

Definition at line 108 of file error_routines.c.

{
    fprintf(stderr, "line %d (warning): ", line_number);
    fprintf(stderr, fmt, item, item1);
    fprintf(stderr, "\n");
}

Here is the call graph for this function:

Here is the caller graph for this function:

void warning_s_2 ( string  fmt,
string  item,
int  item1,
int  item2 
)

Definition at line 116 of file error_routines.c.

{
    fprintf(stderr, "line %d (warning): ", line_number);
    fprintf(stderr, fmt, item, item1, item2);
    fprintf(stderr, "\n");
}

Here is the call graph for this function:

Here is the caller graph for this function:

void yyerror ( string  fmt)

Definition at line 67 of file error_routines.c.

{
    fprintf(stderr, "line %d (parsing): ", line_number);
    fprintf(stderr, fmt);
    fprintf(stderr, "\n");
}

Here is the call graph for this function: