Update for sdb 2.0.1

This commit is contained in:
pancake 2024-08-31 17:20:34 +02:00 committed by pancake
parent bf9540ab1e
commit e44da847db
3 changed files with 13 additions and 1 deletions

View File

@ -6,7 +6,7 @@ INCDIR=${PREFIX}/include
VAPIDIR=${DATADIR}/vala/vapi/
MANDIR=${DATADIR}/man/man1
SDBVER=2.0.0
SDBVER=2.0.1
BUILD_MEMCACHE=0

View File

@ -280,6 +280,16 @@ static char *escape(const char *b, int ch) {
*c++ = '\\';
*c++ = 'n';
break;
case '\t':
*c++ = '\\';
*c++ = 't';
break;
#if 0
case ' ':
*c++ = '\\';
*c++ = 's';
break;
#endif
default:
*c = *b;
break;

View File

@ -288,6 +288,8 @@ static void load_process_line(LoadCtx *ctx) {
static inline char unescape_raw_char(char c) {
switch (c) {
case 's':
return ' ';
case 'n':
return '\n';
case 'r':