Browse Source

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

pre-master-46
rlar 16 years ago
parent
commit
5412e4bfd2
  1. 7
      ChangeLog
  2. 2
      src/frontend/parse-bison.y
  3. 7
      src/spicelib/parser/inpptree-parser.y
  4. 4
      src/xspice/cm/cmexport.c
  5. 4
      src/xspice/xspice.c

7
ChangeLog

@ -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

2
src/frontend/parse-bison.y

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

7
src/spicelib/parser/inpptree-parser.y

@ -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);
}

4
src/xspice/cm/cmexport.c

@ -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

4
src/xspice/xspice.c

@ -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…
Cancel
Save