convert macro `U()' to `IGNORE()'

This commit is contained in:
rlar 2010-11-16 19:13:20 +00:00
parent 80286e0032
commit 5412e4bfd2
5 changed files with 15 additions and 9 deletions

View File

@ -1,3 +1,10 @@
2010-11-16 Robert Larice
* src/frontend/parse-bison.y ,
* src/spicelib/parser/inpptree-parser.y ,
* src/xspice/xspice.c ,
* src/xspice/cm/cmexport.c :
convert macro `U()' to `IGNORE()'
2010-11-16 Robert Larice
* src/**/* :
pour `IGNORE()' all over the source

View File

@ -30,7 +30,7 @@
# define __func__ __FUNCTION__ /* __func__ is C99, but MSC can't */
#endif
#define U(x) (void)x
%}
%name-prefix="PP"

View File

@ -12,7 +12,7 @@
# define __func__ __FUNCTION__ /* __func__ is C99, but MSC can't */
#endif
#define U(x) (void)x
%}
%name-prefix="PT"
@ -110,6 +110,9 @@ nonempty_arglist:
static void
PTerror (char **line, struct INPparseNode **retval, void *ckt, char const *s)
{
U(line); U(retval); U(ckt);
IGNORE(line);
IGNORE(retval);
IGNORE(ckt);
fprintf (stderr, "%s: %s\n", __func__, s);
}

View File

@ -3,8 +3,6 @@
#include <cm.h>
#include <dllitf.h>
#define U(x) (void)x
/*how annoying!, needed for structure below*/
static void *tcalloc(size_t a, size_t b) {
return tmalloc(a*b); /* FIXME, tcalloc must zero !?!? */
@ -12,7 +10,7 @@ static void *tcalloc(size_t a, size_t b) {
#ifdef HAVE_LIBGC
static void no_free(void *p) {
U(p);
IGNORE(p);
}
#endif

View File

@ -3,15 +3,13 @@
#include <cm.h>
#include <dllitf.h>
#define U(x) (void)x
/*how annoying!, needed for structure below*/
static void *tcalloc(size_t a, size_t b) {
return tmalloc(a*b); /* FIXME, tcalloc must zero !?!? */
}
static void no_free(void *p) {
U(p);
IGNORE(p);
}
static FILE * no_file(void) {