VTK
vtkParse.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkParse.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 
16 /*
17  This is the header file for vtkParse.tab.c, which is generated
18  from vtkParse.y with the "yacc" compiler-compiler.
19 */
20 
21 #ifndef vtkParse_h
22 #define vtkParse_h
23 
24 #include "vtkParseType.h"
25 #include "vtkParseData.h"
26 #include <stdio.h>
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
35 void vtkParse_DefineMacro(const char *name, const char *definition);
36 
40 void vtkParse_UndefineMacro(const char *name);
41 
45 void vtkParse_IncludeDirectory(const char *dirname);
46 
50 const char *vtkParse_FindIncludeFile(const char *filename);
51 
55 void vtkParse_SetIgnoreBTX(int option);
56 
60 void vtkParse_SetCommandName(const char *name);
61 
66  const char *filename, FILE *ifile, FILE *errfile);
67 
71 int vtkParse_ReadHints(FileInfo *data, FILE *hfile, FILE *errfile);
72 
77 
78 #ifdef __cplusplus
79 } /* extern "C" */
80 #endif
81 
82 #endif
void vtkParse_IncludeDirectory(const char *dirname)
Add an include directory, for use with the "-I" option.
FileInfo * vtkParse_ParseFile(const char *filename, FILE *ifile, FILE *errfile)
Parse a header file and return a FileInfo struct.
FileInfo is for header files.
Definition: vtkParseData.h:222
int vtkParse_ReadHints(FileInfo *data, FILE *hfile, FILE *errfile)
Read a hints file and update the FileInfo.
void vtkParse_SetCommandName(const char *name)
Set the command name, for error reporting and diagnostics.
void vtkParse_UndefineMacro(const char *name)
Undefine a preprocessor macro.
void vtkParse_SetIgnoreBTX(int option)
Ignore BTX/ETX markers.
void vtkParse_DefineMacro(const char *name, const char *definition)
Define a preprocessor macro.
const char * vtkParse_FindIncludeFile(const char *filename)
Return the full path to a header file.
void vtkParse_Free(FileInfo *data)
Free the FileInfo struct returned by vtkParse_ParseFile()