1 |
#include <stdio.h> |
#include <stdio.h> |
2 |
#include <stdarg.h> |
#include <stdarg.h> |
3 |
|
#include "settings.h" |
4 |
|
|
5 |
void |
void |
6 |
err_assert_fail(const char *expr, const char *file, int line) |
err_assert_fail(const char *expr, const char *file, int line) |
49 |
} |
} |
50 |
|
|
51 |
|
|
52 |
|
struct error; |
53 |
|
|
54 |
void |
void |
55 |
err_vmsg (const struct error *e, const char *format, va_list args) |
err_vmsg (const struct error *e, const char *format, va_list args) |
56 |
{ |
{ |
86 |
{ |
{ |
87 |
return 2000 - 69; |
return 2000 - 69; |
88 |
} |
} |
89 |
|
|
90 |
|
|
91 |
|
static struct set_cust_currency set_cc[5]; |
92 |
|
|
93 |
|
const struct set_cust_currency * |
94 |
|
get_cc(int i) |
95 |
|
{ |
96 |
|
return &set_cc[i]; |
97 |
|
} |
98 |
|
|
99 |
|
|
100 |
|
|
101 |
|
/* Puts the current file and line number in *FN and *LN, respectively, |
102 |
|
or NULL and -1 if none. */ |
103 |
|
void |
104 |
|
getl_location (const char **fn, int *ln) |
105 |
|
{ |
106 |
|
if (fn != NULL) |
107 |
|
*fn = 0; |
108 |
|
if (ln != NULL) |
109 |
|
*ln = 0; |
110 |
|
} |