Changeset d4927a7 for perlconfig.c
- Timestamp:
- Feb 11, 2011, 4:31:46 PM (14 years ago)
- Branches:
- master, release-1.10, release-1.8, release-1.9
- Children:
- 3472845
- Parents:
- ddbbcffa
- git-author:
- Anders Kaseorg <andersk@mit.edu> (08/27/09 00:55:10)
- git-committer:
- Anders Kaseorg <andersk@mit.edu> (02/11/11 16:31:46)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
perlconfig.c
rddbbcffa rd4927a7 148 148 type = owl_message_get_type(m); 149 149 if(!type || !*type) type = "generic"; 150 utype = owl_strdup(type);150 utype = g_strdup(type); 151 151 utype[0] = toupper(type[0]); 152 152 blessas = owl_sprintf("BarnOwl::Message::%s", utype); … … 214 214 owl_message_set_zwriteline(m, val); 215 215 } else if (!strcmp(key, "time")) { 216 m->timestr = owl_strdup(val);216 m->timestr = g_strdup(val); 217 217 strptime(val, "%a %b %d %T %Y", &tm); 218 218 m->time = mktime(&tm); … … 282 282 283 283 if (srv) { 284 out = owl_strdup(SvPV_nolen(srv));284 out = g_strdup(SvPV_nolen(srv)); 285 285 } else { 286 286 out = NULL; … … 335 335 336 336 if (srv) { 337 out = owl_strdup(SvPV_nolen(srv));337 out = g_strdup(SvPV_nolen(srv)); 338 338 } else { 339 339 out = NULL; … … 369 369 ret=perl_parse(p, owl_perl_xs_init, 2, (char **)args, NULL); 370 370 if (ret || SvTRUE(ERRSV)) { 371 err= owl_strdup(SvPV_nolen(ERRSV));371 err=g_strdup(SvPV_nolen(ERRSV)); 372 372 sv_setsv(ERRSV, &PL_sv_undef); /* and clear the error */ 373 373 return(err); … … 376 376 ret=perl_run(p); 377 377 if (ret || SvTRUE(ERRSV)) { 378 err= owl_strdup(SvPV_nolen(ERRSV));378 err=g_strdup(SvPV_nolen(ERRSV)); 379 379 sv_setsv(ERRSV, &PL_sv_undef); /* and clear the error */ 380 380 return(err); … … 412 412 413 413 if (SvTRUE(ERRSV)) { 414 err= owl_strdup(SvPV_nolen(ERRSV));414 err=g_strdup(SvPV_nolen(ERRSV)); 415 415 sv_setsv (ERRSV, &PL_sv_undef); /* and clear the error */ 416 416 return(err); … … 450 450 } 451 451 452 out = owl_strdup(SvPV(response, len));452 out = g_strdup(SvPV(response, len)); 453 453 FREETMPS; 454 454 LEAVE; … … 529 529 rv = POPs; 530 530 if(SvTRUE(rv)) { 531 ret = owl_strdup(SvPV_nolen(rv));531 ret = g_strdup(SvPV_nolen(rv)); 532 532 } 533 533 }
Note: See TracChangeset
for help on using the changeset viewer.