mirror of
https://git.code.sf.net/p/ngspice/ngspice
synced 2026-09-08 06:07:32 +02:00
#includes modified
This commit is contained in:
@@ -7,9 +7,12 @@
|
||||
#ifndef ngspice_CIDERSUPT_H
|
||||
#define ngspice_CIDERSUPT_H
|
||||
|
||||
#include "ngspice/numglobs.h"
|
||||
#include "ngspice/material.h"
|
||||
#include <stdio.h>
|
||||
|
||||
#include "ngspice/bool.h"
|
||||
#include "ngspice/gendev.h"
|
||||
#include "ngspice/material.h"
|
||||
#include "ngspice/numglobs.h"
|
||||
#include "ngspice/profile.h"
|
||||
|
||||
/* externals for database.c */
|
||||
@@ -60,21 +63,21 @@ extern void printMaterialInfo(MaterialInfo * );
|
||||
|
||||
/* externals for mobil.c */
|
||||
extern void MOBdefaults(MaterialInfo *, int, int, int, int );
|
||||
extern void MOBtempDep (MaterialInfo *, double );
|
||||
extern void MOBconcDep (MaterialInfo *, double, double *, double *);
|
||||
extern void MOBfieldDep (MaterialInfo *, int, double, double *, double * );
|
||||
extern void MOBtempDep(MaterialInfo *, double );
|
||||
extern void MOBconcDep(MaterialInfo *, double, double *, double *);
|
||||
extern void MOBfieldDep(MaterialInfo *, int, double, double *, double * );
|
||||
|
||||
/* externals for recomb.c */
|
||||
extern void recomb (double, double, double, double, double, double,
|
||||
extern void recomb(double, double, double, double, double, double,
|
||||
double, double *, double *, double * );
|
||||
|
||||
/* externals for suprem.c */
|
||||
extern void readAsciiData( char *, int, DOPtable ** );
|
||||
extern void readSupremData( char *, int, int, DOPtable ** );
|
||||
extern int readAsciiData(const char *, int, DOPtable **);
|
||||
extern int readSupremData(const char *, int, int, DOPtable ** );
|
||||
|
||||
/* externals for suprmitf.c */
|
||||
extern void SUPbinRead( char *, float *, float *, int *, int * );
|
||||
extern void SUPascRead( char *, float *, float *, int *, int * );
|
||||
extern int SUPbinRead(const char *, float *, float *, int *, int *);
|
||||
extern int SUPascRead(const char *, float *, float *, int *, int *);
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -116,4 +116,13 @@ void free_pj(const void *ptr);
|
||||
|
||||
FILE *fopen_with_path(const char *path, const char *mode);
|
||||
|
||||
#ifdef __GNUC__
|
||||
int cm_message_printf(const char *fmt, ...)
|
||||
__attribute__ ((format (__printf__, 1, 2)));
|
||||
#else
|
||||
int cm_message_printf(const char *fmt, ...);
|
||||
#endif
|
||||
|
||||
#define CM_IGNORE(x) (void) (x)
|
||||
|
||||
#endif /* include guard */
|
||||
|
||||
@@ -69,17 +69,17 @@ typedef struct {
|
||||
#endif
|
||||
|
||||
/* Some defines used mainly in cmath.c. */
|
||||
#define cph(c) (atan2(imagpart(c), (realpart(c))))
|
||||
#define cmag(c) (hypot(realpart(c), imagpart(c)))
|
||||
#define cph(c) (atan2(imagpart(c), (realpart(c))))
|
||||
#define cmag(c) (hypot(realpart(c), imagpart(c)))
|
||||
#define radtodeg(c) (cx_degrees ? ((c) * (180 / M_PI)) : (c))
|
||||
#define degtorad(c) (cx_degrees ? ((c) * (M_PI / 180)) : (c))
|
||||
#define rcheck(cond, name) if (!(cond)) { \
|
||||
fprintf(cp_err, "Error: argument out of range for %s\n", name); \
|
||||
return (NULL); }
|
||||
#define rcheckn(cond, name, clean) if (!(cond)) { \
|
||||
fprintf(cp_err, "Error: argument out of range for %s\n", name); \
|
||||
tfree(clean); \
|
||||
return (NULL); }
|
||||
#define rcheck(cond, name)\
|
||||
if (!(cond)) {\
|
||||
(void) fprintf(cp_err, "Error: argument out of range for %s\n",\
|
||||
name);\
|
||||
xrc = -1;\
|
||||
goto EXITPOINT;\
|
||||
}
|
||||
|
||||
#define cdiv(r1, i1, r2, i2, r3, i3) \
|
||||
{ \
|
||||
|
||||
@@ -41,7 +41,7 @@ struct comm {
|
||||
int co_maxargs;
|
||||
|
||||
/* The fn that prompts the user. */
|
||||
void (*co_argfn) (const wordlist *wl, const struct comm *command);
|
||||
void (*co_argfn)(const wordlist *wl, const struct comm *command);
|
||||
|
||||
/* When these are printed, printf(string, av[0]) .. */
|
||||
char *co_help;
|
||||
|
||||
@@ -26,7 +26,6 @@ Author: 1986 Wayne A. Christopher, U. C. Berkeley CAD Group
|
||||
|
||||
/* Externs defined in std.c */
|
||||
|
||||
extern char *tildexpand(const char *string);
|
||||
extern void printnum(char *buf, double num);
|
||||
int printnum_ds(DSTRING *p_ds, double num);
|
||||
extern int cp_numdgt;
|
||||
|
||||
@@ -55,15 +55,15 @@ typedef struct SPICEdev {
|
||||
/* routine to input a paramater to a model */
|
||||
int (*DEVload)(GENmodel*,CKTcircuit*);
|
||||
/* routine to load the device into the matrix */
|
||||
int (*DEVsetup)(SMPmatrix*,GENmodel*,CKTcircuit*,int*);
|
||||
int (*DEVsetup)(SMPmatrix *, GENmodel *, CKTcircuit *, int *);
|
||||
/* setup routine to preprocess devices once before soloution begins */
|
||||
int (*DEVunsetup)(GENmodel*,CKTcircuit*);
|
||||
/* clean up before running again */
|
||||
int (*DEVpzSetup)(SMPmatrix*,GENmodel*,CKTcircuit*,int*);
|
||||
int (*DEVpzSetup)(SMPmatrix *, GENmodel *, CKTcircuit *, int *);
|
||||
/* setup routine to process devices specially for pz analysis */
|
||||
int (*DEVtemperature)(GENmodel*,CKTcircuit*);
|
||||
int (*DEVtemperature)(GENmodel*,CKTcircuit*);
|
||||
/* subroutine to do temperature dependent setup processing */
|
||||
int (*DEVtrunc)(GENmodel*,CKTcircuit*,double*);
|
||||
int (*DEVtrunc)(GENmodel*,CKTcircuit*,double*);
|
||||
/* subroutine to perform truncation error calc. */
|
||||
int (*DEVfindBranch)(CKTcircuit*,GENmodel*,IFuid);
|
||||
/* subroutine to search for device branch eq.s */
|
||||
|
||||
@@ -10,6 +10,9 @@ Author: 1987 Jeffrey M. Hsu
|
||||
#ifndef ngspice_FTEDEV_H
|
||||
#define ngspice_FTEDEV_H
|
||||
|
||||
#include "ngspice/bool.h"
|
||||
#include "ngspice/typedefs.h"
|
||||
|
||||
struct graph;
|
||||
struct request;
|
||||
struct response;
|
||||
@@ -20,11 +23,11 @@ typedef int disp_fn_Close_t (void);
|
||||
typedef int disp_fn_Clear_t (void);
|
||||
typedef int disp_fn_DrawLine_t (int x1, int y1, int x2, int y2, bool isgrid);
|
||||
typedef int disp_fn_Arc_t (int x0, int y0, int radius, double theta, double delta_theta);
|
||||
typedef int disp_fn_Text_t (char *text, int x, int y, int angle);
|
||||
typedef int disp_fn_Text_t (const char *text, int x, int y, int angle);
|
||||
typedef int disp_fn_DefineColor_t (int colorid, double red, double green, double blue);
|
||||
typedef int disp_fn_DefineLinestyle_t (int linestyleid, int mask);
|
||||
typedef int disp_fn_SetLinestyle_t (int linestyleid);
|
||||
typedef int disp_fn_SetColor_t (int colorid, GRAPH *graf);
|
||||
typedef int disp_fn_SetColor_t (int colorid);
|
||||
typedef int disp_fn_Update_t (void);
|
||||
typedef int disp_fn_Track_t (void);
|
||||
typedef int disp_fn_MakeMenu_t (void);
|
||||
|
||||
@@ -155,4 +155,8 @@ extern Mif_Cntl_Src_Type_t MIFget_cntl_src_type(
|
||||
extern char *MIFcopy(char *);
|
||||
|
||||
|
||||
#ifndef CM_IGNORE
|
||||
#define CM_IGNORE(x) (void) (x)
|
||||
#endif
|
||||
|
||||
#endif /* include guard */
|
||||
|
||||
Reference in New Issue
Block a user