Browse Source

drop #include <frontend/variable.h>, (even for non MSC_VER)

pre-master-46
rlar 16 years ago
parent
commit
3942bc2ade
  1. 6
      ChangeLog
  2. 4
      src/tclspice.c

6
ChangeLog

@ -1,3 +1,7 @@
2010-07-20 Robert Larice
* src/tclspice.c :
drop #include <frontend/variable.h>, (even for non MSC_VER)
2010-07-20 Robert Larice
* src/main.c :
fix an incorrect type, (&char versus &bool)
@ -27,7 +31,7 @@
allow cp_getvar(,CP_BOOL,NULL) to avoid insane usage
The third parameter is a pointer to the result value.
Frequently only the function return value is used,
(presence of nonpresence of the variable)
(presence or nonpresence of the variable)
and the third parameter points to an unused variable.
Even worse, in several cases a dummy variable of incorrect type is used
for that purpose.

4
src/tclspice.c

@ -94,9 +94,7 @@ typedef pthread_t threadId_t;
#include <misc/ivars.h>
#include <frontend/resource.h>
#include <frontend/com_measure2.h>
#ifndef _MSC_VER /* avoid second definition of CP_BOOL */
#include <frontend/variable.h>
#else
#ifdef _MSC_VER
#include <stdio.h>
#define snprintf _snprintf
#endif

Loading…
Cancel
Save