From 8aff70036af92ebb7367d02062da3263ea86686e Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Sat, 28 Oct 2017 15:20:40 +0200 Subject: [PATCH] Put variable wantevtdata into the right place, also available for standard executable, to be modified in sharedspice.c only. --- src/main.c | 4 ++++ src/sharedspice.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index a7110aeea..b6064cab9 100644 --- a/src/main.c +++ b/src/main.c @@ -87,6 +87,10 @@ bool ft_intrpt = FALSE; /* Set by the (void) signal handlers. TRUE = we've b bool ft_setflag = FALSE; /* TRUE = Don't abort simulation after an interrupt. */ char *ft_rawfile = "rawspice.raw"; +#ifdef XSPICE +bool wantevtdata = FALSE; +#endif + #ifdef HAS_WINGUI extern void winmessage(char *new_msg); /* display a message box (defined in winmain.c)*/ extern void SetSource(char *Name); /* display the source file name in the source window */ diff --git a/src/sharedspice.c b/src/sharedspice.c index 0e76abb3e..28ec986a8 100644 --- a/src/sharedspice.c +++ b/src/sharedspice.c @@ -175,6 +175,7 @@ extern void create_circbyline(char *line); #ifdef XSPICE extern struct evt_shared_data *EVTshareddata(char *node_name); extern char** EVTallnodes(void); +extern bool wantevtdata; #endif @@ -231,7 +232,6 @@ static bool immediate = FALSE; static bool coquit = FALSE; static jmp_buf errbufm, errbufc; static int intermj = 1; -bool wantevtdata = FALSE; static SendInitEvtData* sendinitevt; static SendEvtData* sendevt; static void* euserptr;