Hi!
23-Июн-2006 05:16 [EMAIL PROTECTED] (Blair Campbell) wrote to
[EMAIL PROTECTED]:
BC> +++ del.c 23 Jun 2006 05:16:36 -0000 1.5
BC> +#include "../include/lfnfuncs.h"
BC> +#ifdef FEATURE_LONG_FILENAMES
BC> +#define abspath( x, y ) abspath( getshortfilename( x ), y )
BC> +#endif
Blair, please, don't spread prototypes over separate source files!
Please, collect them all in one header (in given case, redefinition for
abspath() should be placed in lfnfuncs.h), even if there is only one
prototype used! We already see, that manual prototypes retyping _already_
introduces at least one bug, when you forgot to add (or remove) _cdecl
modifier!
> BC> - } while(++i < argc);
> BC> + } while(++i < argc && *arg[i]);/* arg[i] can be NULL with
> LFNS?? */
Argument may be _empty string_ (_not_ NULL) in any case! See:
>type test.c
#include <stdio.h>
void main (int argc, char **argv) {
while (--argc) printf ("=%s=\n", *++argv);
}
>test 1 "" 2
=1=
==
=2=
This is result after compiling by OpenWatcom. (BC' startup omits empty
arguments).
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Freedos-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freedos-devel