[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-smalltalk] Not able to compile 2.0.2 (snprintfv)
From: |
Markus Fritsche |
Subject: |
Re: [Help-smalltalk] Not able to compile 2.0.2 (snprintfv) |
Date: |
Thu, 11 Jul 2002 21:36:10 +0100 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.0) Gecko/20020530 |
Markus Fritsche wrote:
When I want to compile 2.0.2 under linux, the headerfiles aren't
generated properly.
I found out that it was a mawk vs. gawk-issue. However, now the error is
(under linux):
format.c: In function `print_float':
format.c:604: parse error before `char'
format.c:623: `q' undeclared (first use in this function)
format.c:623: (Each undeclared identifier is reported only once
format.c:623: for each function it appears in.)
format.c:629: `x' undeclared (first use in this function)
make[5]: *** [format.lo] Error 1
make[5]: Leaving directory
`/home/mfritsche/smalltalk-2.0.2/snprintfv/snprintfv'
make[4]: *** [all] Error 2
make[4]: Leaving directory
`/home/mfritsche/smalltalk-2.0.2/snprintfv/snprintfv'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/mfritsche/smalltalk-2.0.2/snprintfv'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/mfritsche/smalltalk-2.0.2/snprintfv'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/mfritsche/smalltalk-2.0.2'
make: *** [all] Error 2
the lines 509- 636 of format.c
/* Print the exponent now. */
if (!fixed_format)
{
*p++ = exp_char;
*p++base_exp--;
*p++char x[10], *q = x;
*p++if (base_exp < 0)
{
*p++ = '-';
base_exp = -base_exp;
base_exp}
else_exp}
else_exp{
else_exp *p++ = '+';
else }
if (base_exp < 10)
{
/* At least two digits in the exponent please. */
*p++ = '0';
*p++ = '}
do
{ do
*q++ = base_exp % 10 + '0';
base_exp /= 10;
base_exp}
while (base_exp != 0);
/* Copy to the main buffer in reverse order */
while (q > x)
{
*p++ = *--q;
*p++}
}
return p - buf;
}