/[ascend]/trunk/ascend/general/ospath.c
ViewVC logotype

Diff of /trunk/ascend/general/ospath.c

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

revision 2545 by jpye, Thu Jan 26 20:17:03 2012 UTC revision 2546 by jpye, Mon Jan 30 20:08:37 2012 UTC
# Line 602  struct FilePath *ospath_getparent(struct Line 602  struct FilePath *ospath_getparent(struct
602      int offset;      int offset;
603      char *pos;      char *pos;
604      ptrdiff_t len1;      ptrdiff_t len1;
605    #ifdef OSPATH_DEBUG
606      int len2;      int len2;
607    #endif
608      char sub[PATH_MAX];      char sub[PATH_MAX];
609      struct FilePath *fp1, *fp2;      struct FilePath *fp1, *fp2;
610    
# Line 638  struct FilePath *ospath_getparent(struct Line 640  struct FilePath *ospath_getparent(struct
640  #endif  #endif
641      }      }
642    
643      len1 = pos - (fp->path); len2 = (int)len1;      len1 = pos - (fp->path);
644    #ifdef OSPATH_DEBUG
645        len2 = (int)len1;
646      V(len2);      V(len2);
647    #endif
648      /*fprintf(stderr,"POS = %d\n",len2);*/      /*fprintf(stderr,"POS = %d\n",len2);*/
649    
650      if(*pos==PATH_SEPARATOR_CHAR){      if(*pos==PATH_SEPARATOR_CHAR){

Legend:
Removed from v.2545  
changed lines
  Added in v.2546

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22