- | SIGNAL TOKEN sigtype type TOKEN '(' funcargs ')' onerror ';' {
- int sigtype = SIGNAL_LAST_METHOD;
- if(strcmp($<id>2,"first")==0)
- sigtype = SIGNAL_FIRST_METHOD;
- else if(strcmp($<id>2,"last")==0)
- sigtype = SIGNAL_LAST_METHOD;
- else {
- yyerror(_("signal must be 'first' or 'last'"));
- g_free($<id>2);
- YYERROR;
- }
- g_free($<id>2);
- if(!has_this) {
- yyerror(_("signal without 'this' as "
- "first parameter"));
- YYERROR;
- }
- push_function(sigtype, NULL,
- $<id>5, $<id>9, NULL,$<line>1,0);
- }
- | SIGNAL sigtype type TOKEN '(' funcargs ')' onerror '{' CCODE {
- if(!has_this) {
- yyerror(_("signal without 'this' as "
+ | SIGNAL sigtype type TOKEN '(' funcargs ')' onerror codenocode {
+ if(!has_self) {
+ yyerror(_("signal without 'self' as "