Mercurial > dovecot > original-hg > dovecot-1.2
diff src/plugins/fts-squat/squat-trie.c @ 7226:e6693a0ec8e1 HEAD
Renamed T_FRAME_BEGIN/END to T_BEGIN/END. Removed T_FRAME() macro and
replaced them with T_BEGIN/END calls. T_FRAME() made it difficult to debug
code with gdb.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 11 Feb 2008 20:17:00 +0200 |
parents | d5116fa2c88f |
children | 599a9c679ee2 |
line wrap: on
line diff
--- a/src/plugins/fts-squat/squat-trie.c Mon Feb 11 19:58:43 2008 +0200 +++ b/src/plugins/fts-squat/squat-trie.c Mon Feb 11 20:17:00 2008 +0200 @@ -653,18 +653,18 @@ if (data_len != str_len) { /* different lengths, can't match */ - T_FRAME( + T_BEGIN { node_split_string(ctx, node); - ); + } T_END; return FALSE; } for (i = 0; i < data_len; i++) { if (data[i] != str[i]) { /* non-match */ - T_FRAME( + T_BEGIN { node_split_string(ctx, node); - ); + } T_END; return FALSE; } } @@ -909,9 +909,9 @@ { int ret; - T_FRAME( + T_BEGIN { ret = squat_trie_build_more_real(ctx, uid, type, input, size); - ); + } T_END; return ret; } @@ -977,10 +977,10 @@ children = NODE_CHILDREN_NODES(node); node_offsets = t_new(uoff_t, child_count); for (i = 0; i < child_count; i++) { - T_FRAME( + T_BEGIN { ret = squat_write_node(ctx, &children[i], &node_offsets[i], level + 1); - ); + } T_END; if (ret < 0) return -1; } @@ -999,9 +999,9 @@ if (ctx->trie->root.next_uid == 0) return 0; - T_FRAME( + T_BEGIN { ret = squat_write_node(ctx, &ctx->trie->root, &node_offset, 0); - ); + } T_END; if (ret < 0) return -1; @@ -1937,10 +1937,10 @@ { int ret; - T_FRAME( + T_BEGIN { ret = squat_trie_lookup_real(trie, str, type, definite_uids, maybe_uids); - ); + } T_END; return ret; }