=================================================================== RCS file: /home/cvs/OpenXM/src/util/oxgentexi.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -p -r1.4 -r1.5 --- OpenXM/src/util/oxgentexi.c 2005/04/05 13:12:06 1.4 +++ OpenXM/src/util/oxgentexi.c 2005/04/06 05:08:11 1.5 @@ -1,4 +1,4 @@ -/* $OpenXM: OpenXM/src/util/oxgentexi.c,v 1.3 2005/04/04 12:38:32 takayama Exp $ */ +/* $OpenXM: OpenXM/src/util/oxgentexi.c,v 1.4 2005/04/05 13:12:06 takayama Exp $ */ #include int Debug = 0; @@ -379,8 +379,11 @@ struct item *getItem() { do { pOld = p; p = nextToken(key,LIMIT); - /* printf("%s\n",key); */ - if (key[strlen(key)-1] == ':') break; /* Next keyword. */ + /* printf("key=%s\n",key); */ + if (key[strlen(key)-1] == ':') { + pOld = p-strlen(key); + break; /* Next keyword. */ + } }while (p >= 0); if (strcmp(key2,"description:") == 0) { it->description = str2(&(S[pp]),pOld-pp); @@ -512,7 +515,7 @@ printTexi_common(FILE *fp,struct item *it) { printTexi0(FILE *fp, struct item *it) { int i; - fprintf(fp,"@c DO NOT EDIT THIS FILE. Generated by gentexi0.\n"); + fprintf(fp,"@c DO NOT EDIT THIS FILE. Generated by gentexi for asir function item.\n"); if (it == NULL) { fprintf(fp,"@c item is NULL.\n"); return ; @@ -586,7 +589,7 @@ printTexi1(FILE *fp, struct item *it) { int i; /* For it->type == 1 */ - fprintf(fp,"@c DO NOT EDIT THIS FILE. Generated by gentexi1.\n"); + fprintf(fp,"@c DO NOT EDIT THIS FILE. Generated by gentexi for verbose item.\n"); if (it == NULL) { fprintf(fp,"@c item is NULL.\n"); return ;