#include <stdlib.h>#include <errno.h>#include <stdio.h>#include "lclintMacros.nf"#include "llbasic.h"#include "cpp.h"#include "cpplib.h"#include "cpperror.h"Go to the source code of this file.
Defines | |
| #define | FATAL_EXIT_CODE EXIT_FAILURE |
Functions | |
| void | cppReader_fatalError (cppReader *pfile, cstring str) |
| void | cppReader_pfatalWithName (cppReader *pfile, cstring name) |
| void | cppReader_errorLit (cppReader *pfile, cstring msg) |
| void | cppReader_error (cppReader *pfile, cstring msg) |
| void | cppReader_warningLit (cppReader *pfile, cstring msg) |
| void | cppReader_warning (cppReader *pfile, cstring msg) |
| void | cppReader_pedwarnLit (cppReader *pfile, cstring msg) |
| void | cppReader_pedwarn (cppReader *pfile, cstring msg) |
| void | cppReader_errorWithLine (cppReader *pfile, long line, long column, cstring msg) |
| void | cppReader_pedwarnWithLine (cppReader *pfile, int line, int column, cstring msg) |
| void | cppReader_perrorWithName (cppReader *pfile, cstring name) |
|
|
Definition at line 85 of file cpperror.c. |
|
|
Definition at line 274 of file cpperror.c. Referenced by REST_EXTENSION_LENGTH(), cppReader_checkMacroName(), cppReader_define(), cppReader_errorLit(), and cppReader_pedwarn(). 00275 {
00276 prepareMessage ();
00277 cppReader_printContainingFiles (pfile);
00278 cppReader_printFileAndLine (pfile);
00279 cppReader_message (pfile, 1, msg);
00280 closeMessage ();
00281 }
|
|
|
Definition at line 268 of file cpperror.c. Referenced by FNAME_HASHSIZE(), REST_EXTENSION_LENGTH(), cppGetToken(), cppReader_parseEscape(), cppReader_parseExpression(), and cppReader_parseNumber(). 00269 {
00270 cppReader_error (pfile, cstring_copy (msg));
00271 }
|
|
|
Definition at line 329 of file cpperror.c. Referenced by cppGetToken(), and cppReader_pedwarnWithLine(). 00331 {
00332 cppBuffer *ip = cppReader_fileBuffer (pfile);
00333
00334 prepareMessage ();
00335 cppReader_printContainingFiles (pfile);
00336
00337 if (ip != NULL)
00338 cppReader_fileLineForMessage (ip->nominal_fname, line, column);
00339
00340 cppReader_message (pfile, 1, msg);
00341 closeMessage ();
00342 }
|
|
|
Definition at line 235 of file cpperror.c. 00236 {
00237 fprintf (stderr, "preprocessor: ");
00238 cppReader_message (pfile, 2, str);
00239 }
|
|
|
Definition at line 316 of file cpperror.c. Referenced by REST_EXTENSION_LENGTH(), cppReader_parseEscape(), cppReader_pedwarnLit(), and cppSkipHspace(). 00317 {
00318 if (CPPOPTIONS (pfile)->pedantic_errors)
00319 {
00320 cppReader_error (pfile, msg);
00321 }
00322 else
00323 {
00324 cppReader_warning (pfile, msg);
00325 }
00326 }
|
|
|
Definition at line 310 of file cpperror.c. Referenced by FNAME_HASHSIZE(), REST_EXTENSION_LENGTH(), cppReader_parseEscape(), and cppReader_parseExpression(). 00311 {
00312 cppReader_pedwarn (pfile, cstring_copy (msg));
00313 }
|
|
|
Definition at line 373 of file cpperror.c. 00375 {
00376 if (CPPOPTIONS (pfile)->pedantic_errors)
00377 {
00378 cppReader_errorWithLine (pfile, column, line, msg);
00379 }
00380 else
00381 {
00382 cppReader_warningWithLine (pfile, line, column, msg);
00383 }
00384 }
|
|
|
Definition at line 386 of file cpperror.c. Referenced by cppReader_pfatalWithName(). 00387 {
00388 cppReader_message (pfile, 1,
00389 message ("preprocessing: %s: %s",
00390 name, lldecodeerror (errno)));
00391 }
|
|
|
Definition at line 242 of file cpperror.c. Referenced by cppReader_startProcess(). 00243 {
00244 cppReader_perrorWithName (pfile, name);
00245 exit (FATAL_EXIT_CODE);
00246 }
|
|
|
Definition at line 292 of file cpperror.c. Referenced by REST_EXTENSION_LENGTH(), cppReader_pedwarn(), and cppReader_warningLit(). 00293 {
00294 if (CPPOPTIONS (pfile)->inhibit_warnings)
00295 return;
00296
00297 if (CPPOPTIONS (pfile)->warnings_are_errors)
00298 pfile->errors++;
00299
00300 prepareMessage ();
00301 cppReader_printContainingFiles (pfile);
00302 cppReader_printFileAndLine (pfile);
00303 cppReader_message (pfile, 0, msg);
00304 closeMessage ();
00305 }
|
|
|
Definition at line 286 of file cpperror.c. 00287 {
00288 cppReader_warning (pfile, cstring_copy (msg));
00289 }
|
1.2.3 written by Dimitri van Heesch,
© 1997-2000