Browse Source

fix dprint space for { that without name

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@534 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
3.0
Xuefer 14 years ago
parent
commit
025a73977b
  1. 2
      processor/hashtable.m4
  2. 2
      processor/processor.m4
  3. 6
      processor/struct.m4

2
processor/hashtable.m4

@ -122,7 +122,7 @@ define(`DEF_HASH_TABLE_FUNC', `
INDENT()
fprintf(stderr, "$2:\"");
xc_dprint_str_len(BUCKET_KEY_S(b), BUCKET_KEY_SIZE(b));
fprintf(stderr, "\" %d:h=%lu", BUCKET_KEY_SIZE(b), b->h);
fprintf(stderr, "\" %d:h=%lu ", BUCKET_KEY_SIZE(b), b->h);
')
if (sizeof(void *) == sizeof($2)) {
IFCOPY(`pnew->pData = &pnew->pDataPtr;')

2
processor/processor.m4

@ -210,7 +210,7 @@ DEF_STRUCT_P_FUNC(`zval_ptr', , `dnl {{{
IFCOPY(`
dnl fprintf(stderr, "copy from %p to %p\n", src[0], dst[0]);
')
IFDPRINT(`INDENT()`'fprintf(stderr, "[%p]", src[0]);')
IFDPRINT(`INDENT()`'fprintf(stderr, "[%p] ", src[0]);')
STRUCT_P_EX(zval, dst[0], src[0], `[0]', `', ` ')
FIXPOINTER_EX(zval, dst[0])
} while (0);

6
processor/struct.m4

@ -59,7 +59,7 @@ DECL_STRUCT_P_FUNC(`$1', `$2', 1)
')')
IFDPRINT(`
fprintf(stderr, "%s", " {\n");
fprintf(stderr, "%s", "{\n");
indent ++;
')
$3`'
@ -145,7 +145,7 @@ dnl {{{ STRUCT_P(1:type, 2:elm, 3:name=type)
define(`STRUCT_P', `
DBG(`$0($*)')
if (src->$2) {
IFDPRINT(`INDENT()`'fprintf(stderr, "$1:$2");')
IFDPRINT(`INDENT()`'fprintf(stderr, "$1:$2 ");')
STRUCT_P_EX(`$1', `dst->$2', `src->$2', `$2', `$3')
}
else {
@ -159,7 +159,7 @@ dnl {{{ STRUCT(1:type, 2:elm, 3:name=type)
define(`STRUCT', `
DBG(`$0($*)')
assert(sizeof($1) == sizeof(src->$2));
IFDPRINT(`INDENT()`'fprintf(stderr, "$1:$2");')
IFDPRINT(`INDENT()`'fprintf(stderr, "$1:$2 ");')
STRUCT_P_EX(`$1', `dst->$2', `src->$2', `$2', `$3', `&')
DONE(`$2')
')

Loading…
Cancel
Save