X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flibpspp%2Fstr.h;h=c8ab726797f8fbf82bdea0e336059d1ab1eec895;hb=107d72f63db8639c509f8cd92ac29b4641e5fbbc;hp=cf4888ed2896da9ca750463780a8f540a4f2601b;hpb=530906aaa19f6c209ca008c8187f7f750a0b1283;p=pspp diff --git a/src/libpspp/str.h b/src/libpspp/str.h index cf4888ed28..c8ab726797 100644 --- a/src/libpspp/str.h +++ b/src/libpspp/str.h @@ -231,6 +231,9 @@ void ds_put_format (struct string *, const char *, ...) PRINTF_FORMAT (2, 3); char *ds_put_uninit (struct string *st, size_t incr); +char *ds_splice_uninit (struct string *, size_t ofs, size_t old_len, + size_t new_len); + /* Other */ /* calls relocate from gnulib on ST */ void ds_relocate (struct string *st); @@ -240,7 +243,7 @@ void u8_buf_copy_rpad (uint8_t *dst, size_t dst_size, const uint8_t *src, size_t src_size, char pad); -struct substring +static inline struct substring ss_empty (void) { struct substring ss;