Re: [PATCH 7] Allow more than one command line include file.

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

 



Christopher Li wrote:
> --- sparse.orig/lib.c	2006-12-05 16:17:39.000000000 -0800
> +++ sparse/lib.c	2006-12-22 01:51:00.000000000 -0800
> @@ -192,7 +192,10 @@ int Wdo_while = 1;
>  int Wuninitialized = 1;
>  int preprocess_only;
>  char *include;
> -int include_fd = -1;
> +
> +#define CMDLINE_INCLUDE 20
> +int cmdline_include_nr = 0;
> +struct cmdline_include cmdline_include[CMDLINE_INCLUDE];
[...]

I've accepted this patch for now, since a larger finite limit will solve the
current problem.  I'd really like to see something which handles an arbitrary
number of include files, though.  Also, ideally Sparse could read each
filename, parse that include file, and close it, rather than keeping all the
include files open; doing something like that might even avoid the need to
keep them around in an array.

- Josh Triplett

Attachment: signature.asc
Description: OpenPGP digital signature


[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux