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 2010-11-16 Robert Larice
* src/**/* : * src/**/* :
pour `IGNORE()' all over the source 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 */ # define __func__ __FUNCTION__ /* __func__ is C99, but MSC can't */
#endif #endif
#define U(x) (void)x
%} %}
%name-prefix="PP" %name-prefix="PP"

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

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

4
src/xspice/cm/cmexport.c

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

4
src/xspice/xspice.c

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

Loading…
Cancel
Save