On Sep 6, 2011, at 10:21 PM, Martin S. Weber wrote:
> When adding a "-std=c89" to the generated Makefile with gcc as the compiler,
> I end up getting (ignoring the C++ style comment at line 87)
BTW, this code is guarded by #ifdef GCC, so I will build on C89-only compilers
(except for the C++-st
On Tue, Sep 06, 2011 at 05:19:23PM -0400, Ron Wilson wrote:
> On Tue, Sep 6, 2011 at 4:21 PM, Martin S. Weber wrote:
> > (and many, many, many, many more lines like that). This seems to be because
> > of the calls to asm() ... I don't know how to fix that. FYI, after
> > preprocessing, the first i
2011/9/7 Lluís Batlle i Rossell
> On Tue, Sep 06, 2011 at 06:16:23PM -0400, Ron Wilson wrote:
> > 2. Does C89 support inline functions?
>
> Not in the C code. Up to the compiler whether to make it inline or not.
> Declaring it static will give more chances to get it inline, I think.
>
c89 doesn'
On Sep 7, 2011, at 12:16 AM, Ron Wilson wrote:
> I guess I'm too used to dealing with dumb compilers.
>
> 1. Does it work with the C89 restrictions turned on?
Yes.
>
> 2. Does C89 support inline functions?
No. Plus, modern compilers ignore 'inline' keywords, and decide on their own
inlining
On Tue, Sep 06, 2011 at 06:16:23PM -0400, Ron Wilson wrote:
> I guess I'm too used to dealing with dumb compilers.
>
> 1. Does it work with the C89 restrictions turned on?
The code looks plain c89 to me.
> 2. Does C89 support inline functions?
Not in the C code. Up to the compiler whether to ma
I guess I'm too used to dealing with dumb compilers.
1. Does it work with the C89 restrictions turned on?
2. Does C89 support inline functions?
3. If not, will it handle the folowing correctly?
#define rotateLeft(x,n) { unsigned int t; t = x >> (SIZEOFINT -
n); x = (x << n) | t; } /* bitw
On Sep 6, 2011, at 11:19 PM, Ron Wilson wrote:
>
> The asm() calls are being used to invoke the rotate instructions. C
> does not have operators for peforming bitwise rotation of an operand
> and emulating a rotate using shifts is messy and very ineficient:
>
> unsigned int rotateLeft(unsigned in
On 09/06/11 17:19, Ron Wilson wrote:
On Tue, Sep 6, 2011 at 4:21 PM, Martin S. Weber wrote:
(and many, many, many, many more lines like that). This seems to be because
of the calls to asm() ... I don't know how to fix that. FYI, after
preprocessing, the first instruction of line 104 looks like:
On Tue, Sep 6, 2011 at 4:21 PM, Martin S. Weber wrote:
> (and many, many, many, many more lines like that). This seems to be because
> of the calls to asm() ... I don't know how to fix that. FYI, after
> preprocessing, the first instruction of line 104 looks like:
>
> qq[4]+=((qq[1]&(qq[2]^qq[3])
On Tue, Sep 06, 2011 at 04:21:43PM -0400, Martin S. Weber wrote:
> When adding a "-std=c89" to the generated Makefile with gcc as the
> compiler, I end up getting (ignoring the C++ style comment at line
> 87)
That was part of
http://fossil-scm.org/index.html/info/f2ede7da6d70851
I don't get that
Hi,
fossil currently does not build in a ANSI C-89 environment - a requirement of
the coding style guidelines ([1], point 16). There's an obvious build error in
http_ssl.c (C++ style comments), but there's something more in sha1.c...
When adding a "-std=c89" to the generated Makefile with gcc a
11 matches
Mail list logo