[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[leafnode-list] Re: Bug in texpire

Joerg Dietrich schrieb:

> On Sat, Apr 08, 2000 at 11:36:02AM +0200, Andreas Ferber wrote:
> In addition to what Curly wrote (I agree with him) I would like
> to make some comments to your code.
> > +                int exp = atol( value );
> There are still many compilers out there that don't like
> definitions of the form
> type variable = function();
> C99 allows this AFAIK but it is forbidden in ANSI C. This code
> won't compile on the OSF1 I use for example.

Are you sure about that? I don't think that this is forbidden for
automatic variables, only for static and global variables.
Leafnode already uses such initializations, e.g. in line 586 of

    int len = strlen(pattern);


leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list