Nobuaki Sukegawa | 11da87e | 2016-09-10 14:02:19 +0900 | [diff] [blame] | 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_COMMON_H |
| 21 | #define T_COMMON_H |
| 22 | |
dtmuller | 052abc3 | 2016-07-26 11:58:28 +0200 | [diff] [blame] | 23 | #include "thrift/parse/t_type.h" |
Nobuaki Sukegawa | 11da87e | 2016-09-10 14:02:19 +0900 | [diff] [blame] | 24 | |
| 25 | /** |
| 26 | * Global types for the parser to be able to reference |
| 27 | */ |
| 28 | |
| 29 | extern t_type* g_type_void; |
| 30 | extern t_type* g_type_string; |
| 31 | extern t_type* g_type_binary; |
| 32 | extern t_type* g_type_slist; |
| 33 | extern t_type* g_type_bool; |
| 34 | extern t_type* g_type_i8; |
| 35 | extern t_type* g_type_i16; |
| 36 | extern t_type* g_type_i32; |
| 37 | extern t_type* g_type_i64; |
| 38 | extern t_type* g_type_double; |
| 39 | |
| 40 | void initGlobals(); |
| 41 | void clearGlobals(); |
| 42 | |
| 43 | #endif |