Changes in perlconfig.c [f6b319c:ad15610]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
perlconfig.c
rf6b319c rad15610 137 137 char *key,*val; 138 138 HV * hash; 139 struct tm tm; 139 140 140 141 hash = (HV*)SvRV(msg); … … 162 163 } else if (!strcmp(key, "time")) { 163 164 m->timestr = owl_strdup(val); 164 struct tm tm;165 165 strptime(val, "%a %b %d %T %Y", &tm); 166 166 m->time = mktime(&tm); … … 445 445 int i, count; 446 446 char * ret = NULL; 447 SV *rv; 447 448 STRLEN n_a; 448 449 dSP; … … 467 468 if(count != 1) 468 469 croak("Perl command %s returned more than one value!", cmd->name); 469 SV *rv = POPs;470 rv = POPs; 470 471 if(SvTRUE(rv)) { 471 472 ret = owl_strdup(SvPV(rv, n_a)); … … 488 489 SV *cb = (SV*)(e->cbdata); 489 490 unsigned int n_a; 491 dSP; 492 490 493 if(cb == NULL) { 491 494 owl_function_error("Perl callback is NULL!"); 492 495 } 493 494 dSP;495 496 496 497 ENTER; … … 516 517 void owl_perlconfig_mainloop() 517 518 { 519 dSP; 518 520 if (!owl_perlconfig_is_function("BarnOwl::Hooks::_mainloop_hook")) 519 521 return; 520 dSP ;521 522 PUSHMARK(SP) ; 522 523 call_pv("BarnOwl::Hooks::_mainloop_hook", G_DISCARD|G_EVAL);
Note: See TracChangeset
for help on using the changeset viewer.