summaryrefslogtreecommitdiff
path: root/parse.c
Commit message (Collapse)AuthorAgeFilesLines
* Make more things static that aren't needed in more than one fileAlan Coopersmith2023-01-011-1/+23
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Call strrchr() instead of hand coding a custom versionAlan Coopersmith2023-01-011-2/+2
| | | | | | Also correct comments on hand-coded custom strcmp() replacements Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Make malloc error checking/reporting more consistentAlan Coopersmith2023-01-011-0/+4
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Handle some implicit conversion warnings from clangAlan Coopersmith2023-01-011-4/+4
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Use reallocarray() on systems that provide itAlan Coopersmith2023-01-011-5/+4
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* find_includes: rename variables to avoid shadowing globalAlan Coopersmith2023-01-011-4/+4
| | | | | | | | | | | | | | | Clears gcc warning: parse.c: In function ‘find_includes’: parse.c:620:29: warning: declaration of ‘inclistp’ shadows a global declaration [-Wshadow] struct inclist *inclistp = inclistnext; ^~~~~~~~ In file included from parse.c:27:0: def.h:171:26: note: shadowed declaration is here extern struct inclist *inclistp; ^~~~~~~~ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Variable scope reduction as suggested by cppcheckAlan Coopersmith2023-01-011-15/+21
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Remove register keyword from variable declarationsAlan Coopersmith2022-12-121-14/+14
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Reformat code into X.Org standard coding styleAlan Coopersmith2022-12-121-554/+530
| | | | | | Make indentation and formatting much more consistent across this project Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Constify a pair of local string pointersAlan Coopersmith2013-08-021-2/+2
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Bug 56091 - Unsafe use of strcpy() in makedependAlan Coopersmith2013-02-151-1/+1
| | | | | | | | Use memmove for potentially overlapping copies. Reported-by: Laurence Jupp <laurence@narya.org> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Matthieu Herrb <matthieu.herrb@laas.fr>
* Remove unnecessary casts from malloc/realloc callsAlan Coopersmith2013-01-051-7/+4
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* define(): Avoid assigning constant string to non-const char *Alan Coopersmith2011-10-071-2/+3
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Call strdup directly, instead of via copy macroAlan Coopersmith2011-10-071-3/+3
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Add const attributes to fix gcc -Wwrite-strings warningsAlan Coopersmith2011-10-071-9/+9
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Move extern variable declarations to common header (def.h)Alan Coopersmith2011-10-071-7/+0
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Strip trailing whitespaceAlan Coopersmith2011-10-071-13/+13
| | | | | | | Performed with: find * -type f | xargs perl -i -p -e 's{[ \t]+$}{}' git diff -w & git diff -b show no diffs from this change Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
* Remove CVS/RCS version tagsAlan Coopersmith2009-10-101-2/+0
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
* Fix gcc, sparse & lint warningsAlan Coopersmith2009-03-241-5/+5
| | | | | | | | | | | | | | | | | | | | | | cppsetup.c:74:9: warning: Using plain integer as NULL pointer parse.c: In function `gobble': parse.c:94: warning: int format, long int arg (arg 2) parse.c: In function `find_includes': parse.c:641: warning: int format, long int arg (arg 2) parse.c:664: warning: int format, long int arg (arg 2) parse.c:677: warning: int format, long int arg (arg 2) parse.c:684: warning: int format, long int arg (arg 2) pr.c: In function `add_include': pr.c:57: warning: int format, long int arg (arg 4) pr.c:59: warning: int format, long int arg (arg 3) declared global, could be static sig_act main.c(142) predefs main.c:imakemdep.h(51) Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
* Increased constificationAlan Coopersmith2009-03-241-4/+4
| | | | Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
* Coverity #925: Pointer "file" dereferenced before NULL checkmakedepend-1.0.1Alan Coopersmith2006-06-021-2/+7
|
* Merging XORG-CURRENT into trunkXACE-SELINUX-MERGEEgbert Eich2004-04-231-163/+68
|
* Importing vendor version xf86-4_4_99_1 on Sun Mar 14 00:26:39 PST 2004xf86-4_4_99_1Egbert Eich2004-03-141-68/+163
|
* Importing vendor version xf86-4_4_0 on Wed Mar 3 04:09:24 PST 2004xf86-4_4_0STSF-CURRENTEgbert Eich2004-03-031-1/+1
|
* readding XFree86's cvs IDsxf86-4_3_99_903Egbert Eich2004-02-261-1/+1
|
* Importing vendor version xf86-4_3_99_903 on Wed Feb 26 01:21:00 PST 2004Egbert Eich2004-02-261-1/+1
|
* XFree86 4.3.0.1xf86-4_3_0_1PRE_xf86-4_3_0_1Kaleb Keithley2003-11-141-75/+108
|
* R6.6 is the Xorg base-lineXORG-MAINXORG-STABLEKaleb Keithley2003-11-141-0/+653