summaryrefslogtreecommitdiff
path: root/src/lib/eolian_cxx
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2017-12-15 17:00:36 +0100
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2017-12-15 17:11:11 +0100
commit18e18ca74c5456e0ecb7f03065959fb9fb7b58f4 (patch)
treeeda220d83a70bdec5b2b14227fa1bac8d3381b3c /src/lib/eolian_cxx
parentd624464ab4c61140ed3d46a2bbc183b8cb500d2b (diff)
eolian: remove remaining global state (+ modify APIs accordingly)
Diffstat (limited to 'src/lib/eolian_cxx')
-rw-r--r--src/lib/eolian_cxx/grammar/klass_def.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/eolian_cxx/grammar/klass_def.hpp b/src/lib/eolian_cxx/grammar/klass_def.hpp
index e7a32ad396..d1fce8f6d9 100644
--- a/src/lib/eolian_cxx/grammar/klass_def.hpp
+++ b/src/lib/eolian_cxx/grammar/klass_def.hpp
@@ -259,7 +259,7 @@ type_def const void_ {attributes::regular_type_def{"void", {qualifier_info::is_n
259 259
260inline void type_def::set(Eolian_Type const* eolian_type, Eolian_Unit const* unit, Eolian_C_Type_Type ctype) 260inline void type_def::set(Eolian_Type const* eolian_type, Eolian_Unit const* unit, Eolian_C_Type_Type ctype)
261{ 261{
262 c_type = ::eolian_type_c_type_get(eolian_type, ctype); 262 c_type = ::eolian_type_c_type_get(unit, eolian_type, ctype);
263 // ::eina_stringshare_del(stringshare); // this crashes 263 // ::eina_stringshare_del(stringshare); // this crashes
264 Eolian_Type const* stp = eolian_type_base_type_get(eolian_type); 264 Eolian_Type const* stp = eolian_type_base_type_get(eolian_type);
265 has_own = !!::eolian_type_is_owned(eolian_type); 265 has_own = !!::eolian_type_is_owned(eolian_type);
@@ -273,7 +273,7 @@ inline void type_def::set(Eolian_Type const* eolian_type, Eolian_Unit const* uni
273 if (!stp) 273 if (!stp)
274 { 274 {
275 bool is_undefined = false; 275 bool is_undefined = false;
276 Eolian_Typedecl const* decl = eolian_type_typedecl_get(eolian_type); 276 Eolian_Typedecl const* decl = eolian_type_typedecl_get(unit, eolian_type);
277 bool is_function_ptr = decl && eolian_typedecl_type_get(decl) == EOLIAN_TYPEDECL_FUNCTION_POINTER; 277 bool is_function_ptr = decl && eolian_typedecl_type_get(decl) == EOLIAN_TYPEDECL_FUNCTION_POINTER;
278 if(decl && eolian_typedecl_type_get(decl) == EOLIAN_TYPEDECL_ALIAS) 278 if(decl && eolian_typedecl_type_get(decl) == EOLIAN_TYPEDECL_ALIAS)
279 { 279 {