/[global]/global/libutil/gtagsop.c
ViewVC logotype

Diff of /global/libutil/gtagsop.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.62 by shigio, Tue May 10 05:17:52 2005 UTC revision 1.63 by h-iwamoto, Sat Jun 18 16:22:56 2005 UTC
# Line 187  formatcheck(line, format) Line 187  formatcheck(line, format)
187                  die("too small number of parts.\n'%s'", line);                  die("too small number of parts.\n'%s'", line);
188          }          }
189          for (p = ptable.part[1].start; *p; p++) {          for (p = ptable.part[1].start; *p; p++) {
190                  if (!isdigit(*p)) {                  if (!isdigit((unsigned char)*p)) {
191                          recover(&ptable);                          recover(&ptable);
192                          die("line number includes other than digit.\n'%s'", line);                          die("line number includes other than digit.\n'%s'", line);
193                  }                  }
# Line 204  formatcheck(line, format) Line 204  formatcheck(line, format)
204          }          }
205          if (format & GTAGS_PATHINDEX) {          if (format & GTAGS_PATHINDEX) {
206                  for (p = ptable.part[2].start; *p; p++)                  for (p = ptable.part[2].start; *p; p++)
207                          if (!isdigit(*p)) {                          if (!isdigit((unsigned char)*p)) {
208                                  recover(&ptable);                                  recover(&ptable);
209                                  die("file number includes other than digit.\n'%s'", line);                                  die("file number includes other than digit.\n'%s'", line);
210                          }                          }
# Line 309  gtags_open(dbpath, root, db, mode, flags Line 309  gtags_open(dbpath, root, db, mode, flags
309                  const char *p;                  const char *p;
310    
311                  if ((p = dbop_get(gtop->dbop, VERSIONKEY)) != NULL) {                  if ((p = dbop_get(gtop->dbop, VERSIONKEY)) != NULL) {
312                          for (p += strlen(VERSIONKEY); *p && isspace(*p); p++)                          for (p += strlen(VERSIONKEY); *p && isspace((unsigned char)*p); p++)
313                                  ;                                  ;
314                          gtop->format_version = atoi(p);                          gtop->format_version = atoi(p);
315                  }                  }

Legend:
Removed from v.1.62  
changed lines
  Added in v.1.63

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26