~ubuntu-branches/ubuntu/quantal/vice/quantal

« back to all changes in this revision

Viewing changes to src/arch/riscos/archdep.c

  • Committer: Bazaar Package Importer
  • Author(s): Zed Pobre
  • Date: 2006-07-30 19:15:59 UTC
  • mto: (9.1.1 lenny) (1.1.6 upstream)
  • mto: This revision was merged to the branch mainline in revision 9.
  • Revision ID: james.westby@ubuntu.com-20060730191559-g31ymd2mk102kzff
Tags: upstream-1.19
ImportĀ upstreamĀ versionĀ 1.19

Show diffs side-by-side

added added

removed removed

Lines of Context:
271
271
  b = path; leaf = b; dir = b;
272
272
  while (*b != '\0')
273
273
  {
274
 
    if ((*b == '.') || (*b == ':'))
 
274
    if ((*b == FSDEV_DIR_SEP_CHR) || (*b == ':'))
275
275
    {
276
276
      dir = leaf; leaf = b + 1;
277
277
    }
290
290
    {
291
291
        size_t l = strlen(name);
292
292
 
293
 
        if ((l < 4 || strcasecmp(name + l - 3, "/gz"))
294
 
            && (l < 3 || strcasecmp(name + l - 2, "/z"))
295
 
            && (l < 4 || toupper(name[l - 1]) != 'Z' || name[l - 4] != '/'))
 
293
        if ((l < 4 || strcasecmp(name + l - 3, FSDEV_EXT_SEP_STR "gz"))
 
294
            && (l < 3 || strcasecmp(name + l - 2, FSDEV_EXT_SEP_STR "z"))
 
295
            && (l < 4 || toupper(name[l - 1]) != 'Z' || name[l - 4] != FSDEV_EXT_SEP_CHR))
296
296
            return 0;
297
297
    }
298
298
    return 1;