Browse Source

out_printf() is not supposed to be a preprocessor macro

rlar 14 years ago
parent
commit
67132108ad
  1. 4
      src/include/ngspice/cpextern.h
  2. 2
      src/ngsconvert.c

4
src/include/ngspice/cpextern.h

@ -119,15 +119,13 @@ extern void cp_init(void);
extern bool out_moremode;
extern bool out_isatty;
extern void out_init(void);
#ifndef out_printf
/* don't want to declare it if we have #define'ed it */
#ifdef __GNUC__
extern void out_printf(char *fmt, ...) __attribute__ ((format (__printf__, 1, 2)));
#else
extern void out_printf(char *fmt, ...);
#endif
#endif
extern void out_send(char *string);
/* quote.c */

2
src/ngsconvert.c

@ -435,9 +435,7 @@ void cp_usrvars(struct variable **v1, struct variable **v2) { *v1 = NULL; *v2 =
int cp_evloop(char *s) { NG_IGNORE(s); return (0); }
void cp_ccon(bool o) { NG_IGNORE(o); }
char*if_errstring(int c) { NG_IGNORE(c); return ("error"); }
#ifndef out_printf
void out_printf(char *fmt, ...) { NG_IGNORE(fmt); }
#endif
void out_send(char *string) { NG_IGNORE(string); }
struct variable * cp_enqvar(char *word) { NG_IGNORE(word); return (NULL); }
struct dvec *vec_get(const char *word) { NG_IGNORE(word); return (NULL); }

Loading…
Cancel
Save