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

Added comment regarging type parsing (and generation of ADD_FUNCTION() instead...

Added comment regarging type parsing (and generation of ADD_FUNCTION() instead of add_function(), would speed things up somewhat, since there is more than 3000 functions added. :-)

Rev: src/post_modules/GTK/build_pgtk.pike:1.3
parent 09a8e4bf
No related branches found
No related tags found
No related merge requests found
......@@ -132,18 +132,21 @@ void emit_program_block(mapping block, string cl)
foreach(sort(indices(block)), string f)
{
_num_functions++;
// TODO: Add real type parser here, and generade ADD_FUNCTION instead
// of add function
if( search( block[f], "()" ) != -1 ||
search( block[f], "(:" ) != -1 ||
search( block[f], ":)" ) != -1 ||
search( block[f], " " ) != -1 ||
sizeof(block[f]/")") != sizeof( block[f] / "(" ) ||
(sizeof(block[f]/")") != sizeof( block[f] / "(" )) ||
((sizeof(block[f]/")") != sizeof( block[f] / ":" )+
sizeof(block[f]/"array")-1) &&
(sizeof(block[f]/")") != sizeof( block[f] / ":" )) ) ||
search( block[f], "function" ) == -1)
{
if( block[f] != "\"function(array:object)\"" )
werror(lines[cl+f]+": Warning: suspicious type "+block[f]+"\n");
}
switch(f)
{
case "union":
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment