/[global]/global/htags/fileindex.c
ViewVC logotype

Diff of /global/htags/fileindex.c

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

revision 1.36 by shigio, Thu Apr 7 10:20:07 2005 UTC revision 1.37 by shigio, Thu Apr 7 12:33:32 2005 UTC
# Line 517  encode(url) Line 517  encode(url)
517   */   */
518  static char *  static char *
519  extract_lastname(image, is_php)  extract_lastname(image, is_php)
520          char *image;          const char *image;
521          int is_php;          int is_php;
522  {  {
523          static char buf[MAXBUFLEN];          static char buf[MAXBUFLEN];
524          char *p;          const char *p;
525          char *q;          char *q;
526          int sep;          int sep;
527    
# Line 588  extract_lastname(image, is_php) Line 588  extract_lastname(image, is_php)
588                  *q++ = *p++;                  *q++ = *p++;
589          *q = '\0';          *q = '\0';
590          if (*p == sep) {          if (*p == sep) {
591                  p = locatestring(buf, "/", MATCH_LAST);                  q = locatestring(buf, "/", MATCH_LAST);
592                  if (p)                  if (q)
593                          p++;                          q++;
594                  else                  else
595                          p = buf;                          q = buf;
596                  return p;                  return q;
597          }          }
598          return NULL;          return NULL;
599  }  }

Legend:
Removed from v.1.36  
changed lines
  Added in v.1.37

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