diff --git a/ChangeLog b/ChangeLog index f8dbe106a..e00d8042b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2011-12-11 Robert Larice + * src/xspice/cmpp/pp_mod.c , + * src/xspice/cmpp/writ_ifs.c : + #2/4 #include --> #include "ngspice/..." + + printf strings + 2011-12-11 Robert Larice * **/* : #1/4 #include --> #include "ngspice/..." diff --git a/src/xspice/cmpp/pp_mod.c b/src/xspice/cmpp/pp_mod.c index a2d521407..847e2dc09 100755 --- a/src/xspice/cmpp/pp_mod.c +++ b/src/xspice/cmpp/pp_mod.c @@ -152,7 +152,7 @@ void preprocess_mod_file ( mod_num_errors = 0; fprintf (mod_yyout, "#line 1 \"%s\"\n", filename); - fprintf (mod_yyout, "#include \n"); + fprintf (mod_yyout, "#include \"ngspice/cm.h\"\n"); fprintf (mod_yyout, "extern void %s(Mif_Private_t *);\n", ifs_table.name.c_fcn_name); fprintf (mod_yyout, "#line 1 \"%s\"\n", filename); diff --git a/src/xspice/cmpp/writ_ifs.c b/src/xspice/cmpp/writ_ifs.c index 24fb2588e..2020db90e 100755 --- a/src/xspice/cmpp/writ_ifs.c +++ b/src/xspice/cmpp/writ_ifs.c @@ -209,15 +209,15 @@ static void write_includes( FILE *fp) /* File to write to */ { fprintf(fp, "\n"); - fprintf(fp, "#include \n"); -/* fprintf(fp, "#include \n");*/ + fprintf(fp, "#include \"ngspice/ngspice.h\"\n"); +/* fprintf(fp, "#include \"ngspice/prefix.h\"\n");*/ fprintf(fp, "#include \n"); - fprintf(fp, "#include \n"); - fprintf(fp, "#include \n"); - fprintf(fp, "#include \n"); - fprintf(fp, "#include \n"); - fprintf(fp, "#include \n"); -/* fprintf(fp, "#include \n");*/ + fprintf(fp, "#include \"ngspice/devdefs.h\"\n"); + fprintf(fp, "#include \"ngspice/ifsim.h\"\n"); + fprintf(fp, "#include \"ngspice/mifdefs.h\"\n"); + fprintf(fp, "#include \"ngspice/mifproto.h\"\n"); + fprintf(fp, "#include \"ngspice/mifparse.h\"\n"); +/* fprintf(fp, "#include \"ngspice/suffix.h\"\n");*/ fprintf(fp, "\n"); }