2 * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
3 * See the copyright notice in the ACK home directory, in the file "Copyright".
5 * Author: Ceriel J.H. Jacobs
8 /* M I S C E L L A N E O U S R O U T I N E S */
10 /* $Id: misc.c,v 1.15 1994/06/24 12:41:41 ceriel Exp $ */
23 register t_idf *id1, *id2;
25 /* Check that identifiers id1 and id2 are equal. If they
26 are not, check that we did'nt generate them in the
27 first place, and if not, give an error message
29 if (id1 != id2 && !is_anon_idf(id1) && !is_anon_idf(id2)) {
30 error("name \"%s\" does not match block name \"%s\"",
40 /* A new idf is created out of nowhere, to serve as an
44 char *s = Malloc(strlen(FileName)+50);
47 sprint(s, "#%d in %s, line %u",
48 ++name_cnt, FileName, LineNumber);
49 s = Realloc(s, strlen(s)+1);
53 not_declared(what, id, where)
57 /* The identifier "id" is not declared. If it is not generated,
60 if (!is_anon_idf(id->nd_IDF)) {
62 "%s \"%s\" not declared%s",