/* Tags file maker to go with GNU Emacs
- Copyright (C) 1984, 87, 88, 89, 93, 94, 95
+ Copyright (C) 1984, 87, 88, 89, 93, 94, 95, 98
Free Software Foundation, Inc. and Ken Arnold
This file is not considered part of GNU Emacs.
&& (isalpha (*cp) || isdigit (*cp) || (*cp == '_') || (*cp == '$')));
cp++)
continue;
- pfnote ((CTAGS) ? savenstr (dbp, cp-dbp) : NULL, TRUE,
+ pfnote (savenstr (dbp, cp-dbp), TRUE,
lb.buffer, cp - lb.buffer + 1, lineno, linecharno);
}
if (tail ("procedure"))
getit (inf);
continue;
+ case 'b':
+ if (tail ("blockdata") || tail ("block data"))
+ {
+ while (isspace (*dbp))
+ dbp++;
+ if (*dbp == '\0') /* assume un-named */
+ pfnote (savestr ("blockdata"), TRUE, lb.buffer,
+ dbp - lb.buffer, lineno, linecharno);
+ else
+ getit (inf); /* look for name */
+ }
+ continue;
}
}
}
if (*cp == ':' || isspace (*cp))
{
/* Found end of label, so copy it and add it to the table. */
- pfnote ((CTAGS) ? savenstr(lb.buffer, cp-lb.buffer) : NULL, TRUE,
+ pfnote (savenstr(lb.buffer, cp-lb.buffer), TRUE,
lb.buffer, cp - lb.buffer + 1, lineno, linecharno);
}
}
cp++;
while (*cp && ! isspace (*cp) && *cp != '{')
cp++;
- pfnote ((CTAGS) ? savenstr (lb.buffer, cp-lb.buffer) : NULL, TRUE,
+ pfnote (savenstr (lb.buffer, cp-lb.buffer), TRUE,
lb.buffer, cp - lb.buffer + 1, lineno, linecharno);
}
}
for (cp = dbp; isalnum (*cp) || *cp == '-'; cp++)
continue;
if (*cp++ == '.')
- pfnote ((CTAGS) ? savenstr (dbp, cp-dbp) : NULL, TRUE,
+ pfnote (savenstr (dbp, cp-dbp), TRUE,
lb.buffer, cp - lb.buffer + 1, lineno, linecharno);
}
}
/* grab block name */
for (cp = dbp + 1; *cp != '\0' && !endtoken (*cp); cp++)
continue;
- namebuf = (CTAGS) ? savenstr (dbp, cp-dbp) : NULL;
+ namebuf = savenstr (dbp, cp-dbp);
dbp = cp; /* set dbp to e-o-token */
save_len = dbp - lb.buffer + 1;
get_tagname = FALSE;
*cp != '\0' && *cp != ' ' && *cp != '{';
cp++)
continue;
- pfnote ((CTAGS) ? savenstr (dbp, cp-dbp) : NULL, TRUE,
+ pfnote (savenstr (dbp, cp-dbp), TRUE,
lb.buffer, cp - lb.buffer + 1, lineno, linecharno);
}
}
|| len != strlen (last)
|| !strneq (s, last, len))
{
- pfnote ((CTAGS) ? savenstr (s, len) : NULL, TRUE,
+ pfnote (savenstr (s, len), TRUE,
s, pos, lineno, linecharno);
return len;
}
|| len != strlen (last)
|| !strneq (s, last, len)))
{
- pfnote ((CTAGS) ? savenstr (s, len) : NULL, TRUE,
+ pfnote (savenstr (s, len), TRUE,
s, pos, lineno, linecharno);
return len;
}
{
pos += eat_white (s, pos);
if (len = erlang_atom (s, pos))
- pfnote ((CTAGS) ? savenstr (& s[pos], len) : NULL, TRUE,
+ pfnote (savenstr (& s[pos], len), TRUE,
s, pos + len, lineno, linecharno);
}
}