ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/plugins/cfperl/cfperl.xs
(Generate patch)

Comparing deliantra/server/plugins/cfperl/cfperl.xs (file contents):
Revision 1.2 by root, Fri Feb 3 07:51:14 2006 UTC vs.
Revision 1.3 by root, Fri Feb 3 16:26:15 2006 UTC

281 char *propname; 281 char *propname;
282 int i; 282 int i;
283 va_start (args, type); 283 va_start (args, type);
284 propname = va_arg (args, char *); 284 propname = va_arg (args, char *);
285 //printf ("Property name: %s\n", propname); 285 //printf ("Property name: %s\n", propname);
286 286
287 if (!strcmp (propname, "command?")) 287 if (!strcmp (propname, "command?"))
288 { 288 {
289 if (!perl)
290 return NULL;
291
289 const char *cmdname = va_arg (args, const char *); 292 const char *cmdname = va_arg (args, const char *);
290 HV *hv = get_hv ("cf::COMMAND", 1); 293 HV *hv = get_hv ("cf::COMMAND", 1);
291 SV **svp = hv_fetch (hv, cmdname, strlen (cmdname) + 1, 0); 294 SV **svp = hv_fetch (hv, cmdname, strlen (cmdname) + 1, 0);
292 295
293 va_end (args); 296 va_end (args);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines