digiKam
tparserprivate.c File Reference

Functions

int panoScriptDataReset (void)
 
void panoScriptParserClose (void)
 
void panoScriptParserError (char const *errorstring,...)
 
int panoScriptParserInit (const char *const filename)
 
void * panoScriptReAlloc (void **ptr, size_t size, int *count)
 
int panoScriptScannerGetNextChar (char *b, int maxBuffer)
 
int panoScriptScannerGetNextLine (void)
 
void panoScriptScannerTokenBegin (char *t)
 
void yyerror (char const *st)
 

Variables

int g_debug = 0
 
char * yytext
 

Function Documentation

◆ panoScriptDataReset()

int panoScriptDataReset ( void  )

Referenced by panoScriptParserReset().

◆ panoScriptParserClose()

void panoScriptParserClose ( void  )

Referenced by panoScriptParse().

◆ panoScriptParserError()

void panoScriptParserError ( char const *  errorstring,
  ... 
)

Display parsing error, including the current line and a pointer to the error token

Referenced by yyerror().

◆ panoScriptParserInit()

int panoScriptParserInit ( const char *const  filename)

Referenced by panoScriptParse().

◆ panoScriptReAlloc()

void* panoScriptReAlloc ( void **  ptr,
size_t  size,
int *  count 
)

Reallocs ptr by size, count is the variable with the current number of records allocated actual data is in 1000 array located at 20 contains 1000 ptr has value 20 *ptr is 1000

References yyerror().

◆ panoScriptScannerGetNextChar()

int panoScriptScannerGetNextChar ( char *  b,
int  maxBuffer 
)

This is the function that lex will use to read the next character

◆ panoScriptScannerGetNextLine()

int panoScriptScannerGetNextLine ( void  )

◆ panoScriptScannerTokenBegin()

void panoScriptScannerTokenBegin ( char *  t)

◆ yyerror()

void yyerror ( char const *  st)

References panoScriptParserError().

Referenced by panoScriptReAlloc().

Variable Documentation

◆ g_debug

int g_debug = 0

◆ yytext

char* yytext
extern