58 |
|
typedef enum {SDEnone=0, SDEmemory, SDEfile, SDEformat, SDEargument, |
59 |
|
SDEdata, SDEsupport, SDEinternal, SDEunknown} SDError; |
60 |
|
|
61 |
< |
/* English ASCII strings corresponding to ennumerated errors */ |
61 |
> |
/* English strings corresponding to ennumerated errors */ |
62 |
|
extern const char *SDerrorEnglish[]; |
63 |
|
|
64 |
< |
/* Additional information on last error (ASCII English) */ |
64 |
> |
/* Pointer to error list in preferred language */ |
65 |
> |
extern const char **SDerrorList; |
66 |
> |
|
67 |
> |
/* Additional information on last error (generally in English) */ |
68 |
|
extern char SDerrorDetail[]; |
69 |
|
|
70 |
|
/* Holder for BSDF value and spectral color */ |
155 |
|
|
156 |
|
#define SDisLoaded(sd) ((sd)->rLambFront.spec.flags != 0) |
157 |
|
|
158 |
< |
/* Report an error to the indicated stream (in English) */ |
159 |
< |
extern SDError SDreportEnglish(SDError ec, FILE *fp); |
158 |
> |
/* Report an error to the indicated stream */ |
159 |
> |
extern SDError SDreportError(SDError ec, FILE *fp); |
160 |
|
|
161 |
|
/* Shorten file path to useable BSDF name, removing suffix */ |
162 |
|
extern void SDclipName(char res[SDnameLn], const char *fname); |
204 |
|
*/ |
205 |
|
|
206 |
|
/* Get BSDF from cache (or load and cache it on first call) */ |
207 |
< |
/* Report any problems to stderr (in English), return NULL on failure */ |
207 |
> |
/* Report any problems to stderr, return NULL on failure */ |
208 |
|
extern const SDData *SDcacheFile(const char *fname); |
209 |
|
|
210 |
|
/* Free a BSDF from our cache (clear all if sd==NULL) */ |