#!/usr/bin/perl print "/*\n"; print " * Autogenerated by get-signals.pl from ../../doc/signals.txt,\n"; print " * do not edit.\n"; print " */\n\n"; print "static PERL_SIGNAL_ARGS_REC perl_signal_args[] =\n{\n"; while () { chomp; next if (!/^ "([^"]*)"(<.*>)?,\s*(.*)/); next if (/\.\.\./); next if (/\(/); $signal = $1; $_ = $3; s/GList \* of ([^,]*)/glistptr_\1/g; s/GSList of (\w+)s/gslist_\1/g; s/char \*[^,]*/string/g; s/ulong \*[^,]*/ulongptr/g; s/int \*[^,]*/intptr/g; s/int [^,]*/int/g; # core s/CHATNET_REC[^,]*/iobject/g; s/(?