Kevin A. Foss wrote:
Hello, In my process of getting gpc to compile under OS/2, I've been trying some example code and Peter recommended trying stuff like writing longints to see if the new features in 971001 were working. Well, I tried the following: -=-=-=-=- program testlongint(output);
Var i : longint;
begin i := 1; writeln(i); end. =-=-=-=-= It compiles fine, but for output I get simply:
[C:\kevin\pascal\gpc-test]longint qd
Any ideas as to what might be going wrong? From looking through the new RTS code, 'qd' is the format that is used for longints, (RTS-WRTI.C) but I don't know what the 'q' is supposed to do as it isn't a standard printf() style format (AFAIK) and I don't see code to parse 'q' in vasprintf.c either -- which I believe is the function that eventually gets called.
I feared this would cause problems somewhere... obviously there isn't a portable way to write "long long"s in C. :-(
I'll see what I can do about it. In the worst case, I'll have to rewrite the output of integers completely which I planned to do (later) anyway...