digiKam
tparserprivate.h
Go to the documentation of this file.
1 /*============================================================
2  *
3  * This file is a part of digiKam project
4  * https://www.digikam.org
5  *
6  * Description : Helper functions for the Hugin API
7  *
8  * Copyright (C) 2007 by Daniel M German <dmgerman at uvic doooot ca>
9  * Copyright (C) 2012 by Benjamin Girault <benjamin dot girault at gmail dot com>
10  *
11  * This program is free software; you can redistribute it and/or
12  * modify it under the terms of the GNU General Public License as
13  * published by the Free Software Foundation; either version 2 of
14  * the License, or (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  * GNU General Public License for more details.
20  *
21  * You should have received a copy of the GNU General Public License
22  * along with this program. If not, see <https://www.gnu.org/licenses/>.
23  *
24  * ============================================================ */
25 
26 #ifndef DIGIKAM_T_PARSER_PRIVATE_H
27 #define DIGIKAM_T_PARSER_PRIVATE_H
28 
29 // C includes
30 
31 #include <ctype.h>
32 #include <stdlib.h>
33 
34 // Local includes
35 
36 #include "tparser.h"
37 
38 /*
39 void TokenBegin(char *t);
40 */
41 
42 int panoScriptDataReset(void);
43 int panoScriptParserInit(const char* const filename);
44 void panoScriptParserClose(void);
45 
46 int panoScriptScannerGetNextChar(char* b, int maxBuffer);
47 void panoScriptScannerTokenBegin(char* t);
48 
49 #ifndef _MSC_VER // krazy:exclude=cpp
50 
51 void panoScriptParserError(char const* errorstring, ...) __attribute__ ((format (printf, 1, 2)));
52 
53 #else
54 
55 void panoScriptParserError(char const* errorstring, ...);
56 
57 #endif
58 
59 void yyerror(char const* st);
60 void* panoScriptReAlloc(void** ptr, size_t size, int* count);
61 
62 #endif /* DIGIKAM_T_PARSER_PRIVATE_H */
void panoScriptParserError(char const *errorstring,...) __attribute__((format(printf
void panoScriptScannerTokenBegin(char *t)
Definition: tparserprivate.c:175
int panoScriptDataReset(void)
Definition: tparserprivate.c:86
void * panoScriptReAlloc(void **ptr, size_t size, int *count)
Definition: tparserprivate.c:251
int panoScriptScannerGetNextChar(char *b, int maxBuffer)
Definition: tparserprivate.c:137
int panoScriptParserInit(const char *const filename)
Definition: tparserprivate.c:98
void void yyerror(char const *st)
Definition: tparserprivate.c:239
void panoScriptParserClose(void)
Definition: tparserprivate.c:125