Jspice3
error.c File Reference
#include "spice.h"
#include "ftedefs.h"
Include dependency graph for error.c:

Go to the source code of this file.

Functions

void fperror (char *mess, code)
 
void ft_sperror (code, char *mess)
 
void fatal ()
 
 internalerror (char *message)
 
 externalerror (char *message)
 

Variables

char ErrorMessage [1024]
 

Function Documentation

externalerror ( char *  message)

Definition at line 100 of file error.c.

102 {
103 
104  fprintf(stderr, "external error: %s\n", message);
105 
106 }
static void message(char *instr, char *outstr)
Definition: hcopy.c:13
void fatal ( )

Definition at line 76 of file error.c.

77 {
78  cp_ccon(false);
79 #ifdef HAVE_SIGNAL
80 #ifdef FTEDEBUG
81 #ifdef SIGQUIT
82  (void) signal(SIGQUIT, SIG_DFL);
83  (void) kill(getpid(), SIGQUIT);
84 #endif
85 #endif
86 #endif
87  exit(EXIT_BAD);
88 }
int getpid()
Definition: libfuncs.c:137
#define EXIT_BAD
Definition: misc.h:26
void cp_ccon()
void fperror ( char *  mess,
code   
)

Definition at line 56 of file error.c.

58 {
59  fprintf(cp_err, "%s: floating point exception.\n", mess);
60  return;
61 }
FILE * cp_err
Definition: help.c:101
void ft_sperror ( code  ,
char *  mess 
)

Definition at line 68 of file error.c.

70 {
71  fprintf(cp_err, "%s: %s\n", mess, if_errstring(code));
72  return;
73 }
char * if_errstring(code)
Definition: main.c:237
FILE * cp_err
Definition: help.c:101
internalerror ( char *  message)

Definition at line 91 of file error.c.

93 {
94 
95  fprintf(stderr, "internal error: %s\n", message);
96 
97 }
static void message(char *instr, char *outstr)
Definition: hcopy.c:13

Variable Documentation

char ErrorMessage[1024]

Definition at line 20 of file error.c.