… | |
… | |
56 | |
56 | |
57 | typedef char *octet_string; |
57 | typedef char *octet_string; |
58 | typedef char *utf8_string; |
58 | typedef char *utf8_string; |
59 | typedef const char *const_octet_string; |
59 | typedef const char *const_octet_string; |
60 | typedef const char *const_utf8_string; |
60 | typedef const char *const_utf8_string; |
|
|
61 | |
|
|
62 | typedef std::string std__string; |
61 | |
63 | |
62 | #if IVSIZE >= 8 |
64 | #if IVSIZE >= 8 |
63 | typedef IV val64; |
65 | typedef IV val64; |
64 | # define newSVval64 newSViv |
66 | # define newSVval64 newSViv |
65 | # define SvVAL64 SvIV |
67 | # define SvVAL64 SvIV |
… | |
… | |
356 | inline SV *to_sv (living * v) { return newSVptr (v, stash_cf_living_wrap); } |
358 | inline SV *to_sv (living * v) { return newSVptr (v, stash_cf_living_wrap); } |
357 | |
359 | |
358 | inline SV *to_sv (object & v) { return to_sv (&v); } |
360 | inline SV *to_sv (object & v) { return to_sv (&v); } |
359 | inline SV *to_sv (living & v) { return to_sv (&v); } |
361 | inline SV *to_sv (living & v) { return to_sv (&v); } |
360 | |
362 | |
361 | //inline SV *to_sv (faceinfo * v) { return to_sv (v->name); } |
|
|
362 | inline SV *to_sv (treasurelist * v) { return to_sv (v->name); } |
|
|
363 | inline SV *to_sv (std::string & v) { return newSVpvn (v.data (), v.size ()); } |
363 | inline SV *to_sv (const std::string & v) { return newSVpvn (v.data (), v.size ()); } |
|
|
364 | inline SV *to_sv (const treasurelist *v) { return to_sv (v->name); } |
364 | |
365 | |
365 | inline SV *to_sv (UUID v) |
366 | inline SV *to_sv (UUID v) |
366 | { |
367 | { |
367 | char buf[128]; |
368 | char buf[128]; |
368 | snprintf (buf, 128, "<1.%" PRIx64 ">", v.seq); |
369 | snprintf (buf, 128, "<1.%" PRIx64 ">", v.seq); |