version 1.42 | | version 1.43 |
---|
| | |
#line 2 "loader.l" | | #line 2 "loader.l" |
/* | | /* |
* static char *rcsid_object_c = | | * static char *rcsid_object_c = |
* "$Id: loader.c,v 1.42 2003/06/26 11:27:43 gros Exp $"; | | * "$Id: loader.c,v 1.43 2003/06/30 11:21:29 gros Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
} | | } |
for(etmp=op->events;etmp!=NULL;etmp=etmp->next) | | for(etmp=op->events;etmp!=NULL;etmp=etmp->next) |
{ | | { |
if (etmp2=find_event(op2,etmp->type)) | | /* First we find the event for the reference object */ |
{ | | etmp2=find_event(op2, etmp->type); |
if ((etmp->hook != NULL) && | | |
(etmp2->hook != NULL) && | | if ((etmp->hook != NULL) && ((etmp2 == NULL) || (etmp2->hook == NULL) || (strcmp(etmp2->hook,etmp->hook)))) |
(strcmp(etmp->hook, etmp2->hook))) | | /* Either there's no matching event in the reference object, |
| | * or the hook is different */ |
{ | | { |
sprintf(buf2, "%s %s\n", evtnames[etmp->type],etmp->hook); | | sprintf(buf2, "%s %s\n", evtnames[etmp->type],etmp->hook); |
strcat(buf,buf2); | | strcat(buf,buf2); |
} | | } |
if ((etmp->plugin != NULL) && | | if ((etmp->plugin != NULL) && ((etmp2 == NULL) || (etmp2->hook == NULL) || (strcmp(etmp2->plugin,etmp->plugin)))) |
(etmp2->plugin != NULL) && | | |
(strcmp(etmp->plugin, etmp2->plugin))) | | |
{ | | { |
sprintf(buf2, "%s_plugin %s\n", evtnames[etmp->type],etmp->plugin); | | sprintf(buf2, "%s_plugin %s\n", evtnames[etmp->type],etmp->plugin); |
strcat(buf,buf2); | | strcat(buf,buf2); |
} | | } |
if ((etmp->options != NULL) && | | if ((etmp->options != NULL) && ((etmp2 == NULL) || (etmp2->hook == NULL) || (strcmp(etmp2->options,etmp->options)))) |
(etmp2->options != NULL) && | | |
(strcmp(etmp->options, etmp2->options))) | | |
{ | | { |
sprintf(buf2, "%s_options %s\n", evtnames[etmp->type],etmp->options); | | sprintf(buf2, "%s_options %s\n", evtnames[etmp->type],etmp->options); |
strcat(buf,buf2); | | strcat(buf,buf2); |
} | | } |
} | | } |
} | | |
if (op->animation_id != op2->animation_id) { | | if (op->animation_id != op2->animation_id) { |
if (op->animation_id) { | | if (op->animation_id) { |
sprintf(buf2,"animation %s\n", animations[GET_ANIM_ID(op)].name); | | sprintf(buf2,"animation %s\n", animations[GET_ANIM_ID(op)].name); |