1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-02-04 17:15:50 +00:00

Mark global functions and/or variables in m4(1) static where possible.

This allows compilers and static analyzers to more thorough analysis.
This commit is contained in:
Ed Schouten 2011-11-06 18:49:48 +00:00
parent 86350df6fe
commit df6dd6933d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=227241
2 changed files with 2 additions and 2 deletions

View File

@ -60,7 +60,7 @@ int mimic_gnu = 0;
* Then M4PATH env variable
*/
struct path_entry {
static struct path_entry {
char *name;
struct path_entry *next;
} *first, *last;

View File

@ -99,7 +99,7 @@ char scommt[MAXCCHARS+1] = {SCOMMT}; /* start character for comment */
char ecommt[MAXCCHARS+1] = {ECOMMT}; /* end character for comment */
int synccpp; /* Line synchronisation for C preprocessor */
struct keyblk keywrds[] = { /* m4 keywords to be installed */
static const struct keyblk keywrds[] = { /* m4 keywords to be installed */
{ "include", INCLTYPE },
{ "sinclude", SINCTYPE },
{ "define", DEFITYPE },