write_encoded(FILE * fbin, ucell * c, int num)
{
assert(sizeof(cell) <= 4); /* code must be adjusted for larger cells */
- assert(fbin != NULL);
+ assert(!!fbin);
while (num-- > 0)
{
if (sc_compress)
* already have been set (in order for static globals to be found).
*/
sym = findglb(name);
- assert(sym != NULL);
+ assert(!!sym);
assert(sym->ident == iFUNCTN || sym->ident == iREFFUNC);
assert(sym->vclass == sGLOBAL);
if (fbin)
{
- assert(lbltab != NULL);
+ assert(!!lbltab);
p = lbltab[i];
write_encoded(fbin, (ucell *) & opcode, 1);
write_encoded(fbin, &p, 1);
if (fbin)
{
- assert(lbltab != NULL);
+ assert(!!lbltab);
p = lbltab[i];
write_encoded(fbin, (ucell *) & opcode, 1);
write_encoded(fbin, &p, 1);
if (fbin)
{
- assert(lbltab != NULL);
+ assert(!!lbltab);
p = lbltab[i];
write_encoded(fbin, &v, 1);
write_encoded(fbin, &p, 1);
while (low < high)
{
mid = (low + high) / 2;
- assert(opcodelist[mid].name != NULL);
+ assert(!!opcodelist[mid].name);
cmp = strcasecmp(str, opcodelist[mid].name);
if (cmp > 0)
low = mid + 1;
/* verify that the opcode list is sorted (skip entry 1; it is reserved
* for a non-existant opcode)
*/
- assert(opcodelist[1].name != NULL);
+ assert(!!opcodelist[1].name);
for (i = 2; i < (sizeof opcodelist / sizeof opcodelist[0]); i++)
{
- assert(opcodelist[i].name != NULL);
+ assert(!!opcodelist[i].name);
assert(strcasecmp(opcodelist[i].name, opcodelist[i - 1].name) > 0);
} /* for */
#endif
char alias[sNAMEMAX + 1];
sym = nativelist[i];
- assert(sym != NULL);
+ assert(!!sym);
if (!lookup_alias(alias, sym->name))
{
assert(strlen(sym->name) <= sNAMEMAX);
/* nothing */ ;
assert(params > instr);
i = findopcode(instr, (int)(params - instr));
- assert(opcodelist[i].name != NULL);
+ assert(!!opcodelist[i].name);
if (opcodelist[i].segment == pass)
opcodelist[i].func(fout, skipwhitespace(params),
opcodelist[i].opcode);