OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
main.h
Go to the documentation of this file.
1 /*
2  * Licensed to the Apache Software Foundation (ASF) under one
3  * or more contributor license agreements. See the NOTICE file
4  * distributed with this work for additional information
5  * regarding copyright ownership. The ASF licenses this file
6  * to you under the Apache License, Version 2.0 (the
7  * "License"); you may not use this file except in compliance
8  * with the License. You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing,
13  * software distributed under the License is distributed on an
14  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15  * KIND, either express or implied. See the License for the
16  * specific language governing permissions and limitations
17  * under the License.
18  */
19 
20 #ifndef T_MAIN_H
21 #define T_MAIN_H
22 
23 #include <string>
24 #include "parse/t_const.h"
25 #include "parse/t_field.h"
26 
31 int yylex(void);
32 
33 int yyparse(void);
34 
38 void yyerror(const char* fmt, ...);
39 
43 void pdebug(const char* fmt, ...);
44 
48 void pwarning(int level, const char* fmt, ...);
49 
53 void failure(const char* fmt, ...);
54 
59 
64 
68 bool validate_throws(t_struct* throws);
69 
73 std::string program_name(std::string filename);
74 
78 std::string directory_name(std::string filename);
79 
83 std::string include_file(std::string filename);
84 
88 void clear_doctext();
89 
93 char* clean_up_doctext(char* doctext);
94 
99 extern int yylineno;
100 extern char yytext[];
101 extern FILE* yyin;
102 
103 #endif
void validate_field_value(t_field *field, t_const_value *cv)
char yytext[]
void failure(const char *fmt,...)
void pdebug(const char *fmt,...)
string program_name(string filename)
int yylineno
void yyerror(const char *fmt,...)
void pwarning(int level, const char *fmt,...)
string include_file(string filename)
char * clean_up_doctext(char *doctext)
int yylex(void)
FILE * yyin
int yyparse(void)
bool validate_throws(t_struct *throws)
string directory_name(string filename)
void validate_const_type(t_const *c)