diff options
| author | 2022-09-25 09:07:43 +0200 | |
|---|---|---|
| committer | 2022-09-25 09:07:43 +0200 | |
| commit | 4f328eec1f428d4e87adeb4c4eaf1e81afe26913 (patch) | |
| tree | a3636038d0347efb593f1bf580fbe67d3ab0bed1 /xs.h | |
| parent | Process 'Create' messages (untested). (diff) | |
| download | snac2-4f328eec1f428d4e87adeb4c4eaf1e81afe26913.tar.gz snac2-4f328eec1f428d4e87adeb4c4eaf1e81afe26913.tar.xz snac2-4f328eec1f428d4e87adeb4c4eaf1e81afe26913.zip | |
Some fixes to timeline_add().
Diffstat (limited to 'xs.h')
| -rw-r--r-- | xs.h | 8 |
1 files changed, 8 insertions, 0 deletions
| @@ -41,6 +41,7 @@ void _xs_destroy(char **var); | |||
| 41 | #define xs_debug() kill(getpid(), 5) | 41 | #define xs_debug() kill(getpid(), 5) |
| 42 | xstype xs_type(const char *data); | 42 | xstype xs_type(const char *data); |
| 43 | int xs_size(const char *data); | 43 | int xs_size(const char *data); |
| 44 | int xs_is_null(char *data); | ||
| 44 | d_char *xs_dup(const char *data); | 45 | d_char *xs_dup(const char *data); |
| 45 | d_char *xs_expand(d_char *data, int offset, int size); | 46 | d_char *xs_expand(d_char *data, int offset, int size); |
| 46 | d_char *xs_collapse(d_char *data, int offset, int size); | 47 | d_char *xs_collapse(d_char *data, int offset, int size); |
| @@ -185,6 +186,13 @@ int xs_size(const char *data) | |||
| 185 | } | 186 | } |
| 186 | 187 | ||
| 187 | 188 | ||
| 189 | int xs_is_null(char *data) | ||
| 190 | /* checks for null */ | ||
| 191 | { | ||
| 192 | return !!(data == NULL || xs_type(data) == XSTYPE_NULL); | ||
| 193 | } | ||
| 194 | |||
| 195 | |||
| 188 | d_char *xs_dup(const char *data) | 196 | d_char *xs_dup(const char *data) |
| 189 | /* creates a duplicate of data */ | 197 | /* creates a duplicate of data */ |
| 190 | { | 198 | { |