Branch: Tag:

2016-01-29

2016-01-29 19:09:28 by Martin Nilsson <nilsson@fastmail.com>

add_function to ADD_FUNCTION rewrites.

650:    init_blobs_program();    init_linkfarm_program();    -  add_function( "do_query_or", f_do_query_or, -  "function(array(string),array(int),array(int),int" -  ",function(string,int,int:string):object)", -  0 ); +  ADD_FUNCTION( "do_query_or", f_do_query_or, +  tFunc( tArr(tStr) tArr(tInt) tArr(tInt) tInt +  tFunc(tStr tInt tInt, tStr), tObj), 0 );    -  add_function( "do_query_and", f_do_query_and, -  "function(array(string),array(int),array(int),int" -  ",function(string,int,int:string):object)", -  0 ); +  ADD_FUNCTION( "do_query_and", f_do_query_and, +  tFunc( tArr(tStr) tArr(tInt) tArr(tInt) tInt +  tFunc(tStr tInt tInt, tStr), tObj), 0 );    -  add_function( "do_query_phrase", f_do_query_phrase, -  "function(array(string),array(int)" -  ",function(string,int,int:string):object)", -  0 ); +  ADD_FUNCTION( "do_query_phrase", f_do_query_phrase, +  tFunc( tArr(tStr) tArr(tInt) tFunc(tStr tInt tInt, tStr), +  tObj ), 0 );   }      PIKE_MODULE_EXIT