From 5397d09e585a1938fb64bc9c5cd5daed1959eb90 Mon Sep 17 00:00:00 2001 From: Tatsuya Kinoshita Date: Wed, 4 May 2011 16:41:45 +0900 Subject: Adding upstream version 0.5.3 --- mktable.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'mktable.c') diff --git a/mktable.c b/mktable.c index 9cbe620..63a8c03 100644 --- a/mktable.c +++ b/mktable.c @@ -1,4 +1,4 @@ -/* $Id: mktable.c,v 1.15 2007/05/31 01:19:50 inu Exp $ */ +/* $Id: mktable.c,v 1.16 2010/12/15 10:50:24 htrb Exp $ */ #include #include #include "myctype.h" @@ -102,7 +102,7 @@ main(int argc, char *argv[], char **envp) } printf("static HashItem_si MyHashItem[] = {\n"); for (i = 0; i < j; i++) { - printf(" /* %d */ {\"%s\",%s,", i, + printf(" /* %d */ {\"%s\", %s, ", i, hashitems[i]->key, hashitems[i]->value); if (hashitems[i]->next == NULL) { printf("NULL},\n"); @@ -116,13 +116,13 @@ main(int argc, char *argv[], char **envp) for (i = 0; i < hash->size; i++) { if (hash->tab[i]) - printf(" &MyHashItem[%d],\n", + printf(" &MyHashItem[%d],\n", getHash_hss_i(rhash, hash->tab[i], -1)); else - printf(" NULL,\n"); + printf(" NULL,\n"); } printf("};\n\n"); - printf("Hash_si %s = {%d, MyHashItemTbl};\n", fbase->ptr, hash->size); + printf("Hash_si %s = { %d, MyHashItemTbl };\n", fbase->ptr, hash->size); exit(0); } -- cgit v1.2.3