diff options
author | sb <sb@openoffice.org> | 2010-04-22 10:19:10 +0200 |
---|---|---|
committer | sb <sb@openoffice.org> | 2010-04-22 10:19:10 +0200 |
commit | 2a856aa3a39e89a556bb25c9da8a7bb5a2863405 (patch) | |
tree | ee8d2408d2816a19c6e794d9950342293e4c95f5 /soltools/mkdepend/cppsetup.c | |
parent | 9d3ee6b808c66e292f1fa1bbed02c7605defdcae (diff) | |
parent | a0de0def4a49a63c6675a622123b793da8b4c78d (diff) |
sb121: merged in DEV300_m77
Diffstat (limited to 'soltools/mkdepend/cppsetup.c')
-rw-r--r-- | soltools/mkdepend/cppsetup.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/soltools/mkdepend/cppsetup.c b/soltools/mkdepend/cppsetup.c index b75a2ed5b26e..173798105a3c 100644 --- a/soltools/mkdepend/cppsetup.c +++ b/soltools/mkdepend/cppsetup.c @@ -143,6 +143,9 @@ _my_if_errors (ip, cp, expecting) } fprintf (stderr, "^--- expecting %s\n", expecting); #endif /* DEBUG_MKDEPEND */ + (void)ip; + (void)cp; + (void)expecting; return NULL; } @@ -150,13 +153,11 @@ _my_if_errors (ip, cp, expecting) #define MAXNAMELEN 256 char * -_lookup_variable (ip, var, len) - IfParser *ip; +_lookup_variable (var, len) const char *var; int len; { char tmpbuf[MAXNAMELEN + 1]; - struct _parse_data *pd = (struct _parse_data *) ip->data; if (len > MAXNAMELEN) return 0; @@ -173,7 +174,8 @@ _my_eval_defined (ip, var, len) const char *var; int len; { - if (_lookup_variable (ip, var, len)) + (void)ip; + if (_lookup_variable (var, len)) return 1; else return 0; @@ -189,14 +191,16 @@ _my_eval_variable (ip, var, len) { char *s; - s = _lookup_variable (ip, var, len); + (void)ip; + + s = _lookup_variable (var, len); if (!s) return 0; do { var = s; if (!isvarfirstletter(*var)) break; - s = _lookup_variable (ip, var, strlen(var)); + s = _lookup_variable (var, strlen(var)); } while (s); return atoi(var); |