From 3ca51e47b22cbdc0b9e138988e33b7cfb515ef27 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Sat, 7 Dec 2024 23:17:44 +0100 Subject: [PATCH] Unify to type bool --- src/include/ngspice/sharedspice.h | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/include/ngspice/sharedspice.h b/src/include/ngspice/sharedspice.h index ec2f8d2d5..038116b90 100644 --- a/src/include/ngspice/sharedspice.h +++ b/src/include/ngspice/sharedspice.h @@ -167,15 +167,8 @@ struct ngcomplex { typedef struct ngcomplex ngcomplex_t; #endif -/* NG_BOOL is the boolean variable at the ngspice interface. - When ompiling ngspice shared module, typedef to _BOOL, which is boolean in C, - when used externally, keep it to be of type bool, - as has been available in the past. */ -#ifndef SHARED_MODULE +/* NG_BOOL is the boolean variable at the ngspice interface.*/ typedef bool NG_BOOL; -#else -typedef _Bool NG_BOOL; -#endif /* vector info obtained from any vector in ngspice.dll. Allows direct access to the ngspice internal vector structure,