Skip to content
Snippets Groups Projects
Commit 55d23256 authored by Per Hedbor's avatar Per Hedbor
Browse files

We want side-effects for all GTK functions.. Otherwise we are in trouble. In...

We want side-effects for all GTK functions.. Otherwise we are in trouble. In the future this might be changed to set the correct flags for all functions (extra syntax in the source files needed to indicate that a function _can_ be optimizied, the default should be not to)

Rev: src/post_modules/GTK/build_pgtk.pike:1.35
parent 11bd0d15
No related branches found
No related tags found
No related merge requests found
......@@ -210,7 +210,8 @@ string emit_function_def( string fun, string cfun, string type, int opt )
type = function_type( type );
emit_nl( " quick_add_function((char*)_data+"+data_offset(fun)+","+
strlen(fun)+","+cfun+",(char*)_data+"+data_offset( type )+
","+strlen(type)+","+(fun=="create"?"ID_STATIC":"0")+",0);\n");
","+strlen(type)+","+(fun=="create"?"ID_STATIC":"0")+","
"OPT_SIDE_EFFECT|OPT_EXTERNAL_DEPEND);\n");
}
int _num_functions;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment