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

shift.c File Reference

#include "lclintMacros.nf"
#include "llbasic.h"
#include "shift.h"

Go to the source code of this file.

Defines

#define SHIFTMAX   200

Functions

void LSLGenShift (ltoken tok)
void LSLGenShiftOnly ( ltoken tok)
ltoken LSLGenTopPopShiftStack (void)
void LSLGenInit (bool LSLParse)


Define Documentation

#define SHIFTMAX   200
 

Definition at line 42 of file shift.c.


Function Documentation

void LSLGenInit ( bool LSLParse )
 

Definition at line 96 of file shift.c.

Referenced by LCLProcessInitFileInit(), and LSLProcessInitFileInit().

00097 {
00098   Parsing_LSLinit = LSLParse;
00099 }

void LSLGenShift ( ltoken tok )
 

Definition at line 55 of file shift.c.

00056 {
00057   if (shiftIndex < SHIFTMAX)
00058     {
00059       Shifts[shiftIndex] = ltoken_copy (tok);
00060       shiftIndex++;
00061     }
00062   else
00063     {
00064       llbuglit ("LSLGenShift: needs MoreMem ()");
00065     }
00066 }

void LSLGenShiftOnly ( ltoken tok )
 

Definition at line 69 of file shift.c.

00070 {
00071   if (shiftIndex < SHIFTMAX)
00072     {
00073       Shifts[shiftIndex] = tok;
00074       shiftIndex++;
00075     }
00076   else
00077     {
00078       llbugexitlit ("LSLGenShift: needs MoreMem ()");
00079     }
00080 }

ltoken LSLGenTopPopShiftStack ( void )
 

Definition at line 83 of file shift.c.

00084 {
00085   if (LSLGenIsEmptyShiftStack ())
00086     {
00087       lclfatalbug ("LSLGenTopPopShiftStack: Empty stack");
00088     }
00089 
00090   /*@-retalias@*/
00091   return Shifts[--shiftIndex];
00092   /*@=retalias@*/
00093 }


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