error ("skipping inclusion of %s in self.", file);
return;
}
- if ((compr = get_compressor_from_suffix (file, &ext)) == NULL)
+ compr = get_compressor_from_suffix (file, &ext);
+ if (compr)
{
- compressed_name = NULL;
- real_name = uncompressed_name = savestr (file);
+ real_name = compressed_name = savestr (file);
+ uncompressed_name = savenstr (file, ext - file);
}
else
{
- real_name = compressed_name = savestr (file);
- uncompressed_name = savenstr (file, ext - file);
+ compressed_name = NULL;
+ real_name = uncompressed_name = savestr (file);
}
/* If the canonicalized uncompressed name
cp++;
if (cp == sp)
continue; /* nothing found */
- if ((pos = strchr (sp, ':')) != NULL
- && pos < cp && pos[1] == ':')
+ pos = strchr (sp, ':');
+ if (pos && pos < cp && pos[1] == ':')
/* The name is already qualified. */
make_tag (sp, cp - sp, true,
lb.buffer, cp - lb.buffer + 1, lineno, linecharno);
env = concat (env, defenv, "");
/* Allocate a token table */
- for (len = 1, p = env; p;)
- if ((p = strchr (p, ':')) && *++p != '\0')
+ for (len = 1, p = env; (p = strchr (p, ':')); )
+ if (*++p)
len++;
TEX_toktab = xnew (len, linebuffer);