convert macro `U()' to `IGNORE()'
This commit is contained in:
parent
80286e0032
commit
5412e4bfd2
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@
|
|||
# define __func__ __FUNCTION__ /* __func__ is C99, but MSC can't */
|
||||
#endif
|
||||
|
||||
#define U(x) (void)x
|
||||
|
||||
%}
|
||||
|
||||
%name-prefix="PP"
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue