From 5154fd3fd7bc155a908e4fbc49247f4e12c96777 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Fri, 22 Dec 2023 17:14:22 +0100 Subject: [PATCH] Allways export function ngCM_Input_Path, independently from XSPICE Update comment --- src/sharedspice.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/sharedspice.c b/src/sharedspice.c index 523f1c2bf..54bdc5b90 100644 --- a/src/sharedspice.c +++ b/src/sharedspice.c @@ -1102,13 +1102,15 @@ int ngSpice_Command(char* comexec) return 1; } -#ifdef XSPICE -/* Set the input path for files loaded by code models. +/* Set the input path for files loaded by code models + like d_state, file_source, d_source. + Useful when netlist is sent by ngSpice_Circ and therefore + Infile_Path cannot be retrieved automatically. If NULL is sent, return the current Infile_Path. */ IMPEXP char *ngCM_Input_Path(const char* path) { - /* delete existing command memory */ + /* override existing path */ if (path) { txfree(Infile_Path); Infile_Path = copy(path); @@ -1116,7 +1118,6 @@ char *ngCM_Input_Path(const char* path) fprintf(stdout, "Note: Codel model file loading path is %s\n", Infile_Path); return Infile_Path; } -#endif /* Return information about a vector to the caller */ IMPEXP @@ -1357,6 +1358,7 @@ int ngSpice_UnlockRealloc(void) return 1; } + /* add the preliminary breakpoints to the list. called from dctran.c */ int