Hi!
I'm going through my programs and was puzzled by this one:
listerG.p: In function `Report': (irrelevant error)
It turns out that the code is:
procedure report( ...
So gpc is calling this a function when it is really a procedure. Is this unavoidable or can it be made smarter?
Of course I am still having trouble with the capitalization that gpc insists on because it prevents me from doing cut and paste to search. No other compiler has ever done this of the 4 or more others I've worked with.
Thanks!
Tom
Dr. Thomas D. Schneider National Cancer Institute Laboratory of Experimental and Computational Biology Frederick, Maryland 21702-1201 toms@ncifcrf.gov permanent email: toms@alum.mit.edu http://www.lecb.ncifcrf.gov/~toms/
Hello!
Tom Schneider wrote:
So gpc is calling this a function when it is really a procedure. Is this unavoidable or can it be made smarter?
I just noticed that there is a hook in the GCC code to make this smarter: In `../toplev.c', function `default_print_error_function' is responsible for generating this error message, and it can be overridden by frontends.
I will do that when I find time for this. If someone else wants to do that in the mean time (or pay me in order to free some time;-) I will not object.
Of course I am still having trouble with the capitalization that gpc insists on because it prevents me from doing cut and paste to search.
It is usually not a good idea to do a case-sensitive search in Pascal source, since Pascal is case-insensitive by the standard definitions.
Anyway, this problem will be addressed together with qualified identifiers. (It would be possible to do this first step separately, but again other things are scheduled with higher priority.)
Greetings,
Peter