drop #include <frontend/variable.h>, (even for non MSC_VER)
This commit is contained in:
parent
a49d446826
commit
3942bc2ade
|
|
@ -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
|
2010-07-20 Robert Larice
|
||||||
* src/main.c :
|
* src/main.c :
|
||||||
fix an incorrect type, (&char versus &bool)
|
fix an incorrect type, (&char versus &bool)
|
||||||
|
|
@ -27,7 +31,7 @@
|
||||||
allow cp_getvar(,CP_BOOL,NULL) to avoid insane usage
|
allow cp_getvar(,CP_BOOL,NULL) to avoid insane usage
|
||||||
The third parameter is a pointer to the result value.
|
The third parameter is a pointer to the result value.
|
||||||
Frequently only the function return value is used,
|
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.
|
and the third parameter points to an unused variable.
|
||||||
Even worse, in several cases a dummy variable of incorrect type is used
|
Even worse, in several cases a dummy variable of incorrect type is used
|
||||||
for that purpose.
|
for that purpose.
|
||||||
|
|
|
||||||
|
|
@ -94,9 +94,7 @@ typedef pthread_t threadId_t;
|
||||||
#include <misc/ivars.h>
|
#include <misc/ivars.h>
|
||||||
#include <frontend/resource.h>
|
#include <frontend/resource.h>
|
||||||
#include <frontend/com_measure2.h>
|
#include <frontend/com_measure2.h>
|
||||||
#ifndef _MSC_VER /* avoid second definition of CP_BOOL */
|
#ifdef _MSC_VER
|
||||||
#include <frontend/variable.h>
|
|
||||||
#else
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#define snprintf _snprintf
|
#define snprintf _snprintf
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue