Main Page   Alphabetical List   Compound List   File List   Compound Members   File Members  

globals.c File Reference

#include "lclintMacros.nf"
#include "basic.h"

Go to the source code of this file.

Functions

void printCodePoint (void)

Variables

fileloc g_currentloc
symtable g_symtab
lsymbolSet g_currentImports = lsymbolSet_undefined
cstring g_codeFile = cstring_undefined
int g_codeLine = 0
cstring g_prevCodeFile = cstring_undefined
int g_prevCodeLine = 0
FILE* g_msgstream
char* g_localSpecPath = "."
cstring g_currentSpec
char* g_currentSpecName


Function Documentation

void printCodePoint ( void )
 

Definition at line 56 of file globals.c.

Referenced by lclbug(), lclfatalbug(), llbugaux(), llfatalbug(), and llquietbugaux().

00057 {
00058   static bool incode = FALSE;
00059 
00060   if (incode) {
00061     fprintf (stderr, "[[[ in code! ]]]\n");
00062   }
00063 
00064   incode = TRUE;
00065 
00066   if (cstring_isDefined (g_codeFile))
00067     {
00068       cstring temps = fileloc_unparseRaw (g_codeFile, g_codeLine);
00069 
00070       fprintf (stderr, "*** Last code point: %s\n", 
00071                cstring_toCharsSafe (temps));
00072 
00073       cstring_free (temps);
00074 
00075       if (cstring_isDefined (g_prevCodeFile))
00076         {
00077           temps = fileloc_unparseRaw (g_prevCodeFile, g_prevCodeLine);
00078           fprintf (stderr, "*** Previous code point: %s\n", 
00079                    cstring_toCharsSafe (temps));
00080 
00081           cstring_free (temps);
00082         }
00083     }
00084 
00085   incode = FALSE;
00086 }


Variable Documentation

cstring g_codeFile = cstring_undefined
 

Definition at line 38 of file globals.c.

int g_codeLine = 0
 

Definition at line 39 of file globals.c.

lsymbolSet g_currentImports = lsymbolSet_undefined
 

Definition at line 35 of file globals.c.

cstring g_currentSpec
 

Definition at line 52 of file globals.c.

char * g_currentSpecName
 

Definition at line 53 of file globals.c.

fileloc g_currentloc
 

Definition at line 31 of file globals.c.

char * g_localSpecPath = "."
 

Definition at line 49 of file globals.c.

FILE * g_msgstream
 

Definition at line 43 of file globals.c.

cstring g_prevCodeFile = cstring_undefined
 

Definition at line 41 of file globals.c.

int g_prevCodeLine = 0
 

Definition at line 42 of file globals.c.

symtable g_symtab
 

Definition at line 34 of file globals.c.


Generated at Fri Nov 3 18:57:59 2000 for LCLint by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000