equal
deleted
inserted
replaced
31 #include <stdio.h> |
31 #include <stdio.h> |
32 |
32 |
33 #include "jni.h" |
33 #include "jni.h" |
34 #include "utf_md.h" |
34 #include "utf_md.h" |
35 |
35 |
|
36 /* Use THIS_FILE when it is available. */ |
|
37 #ifndef THIS_FILE |
|
38 #define THIS_FILE __FILE__ |
|
39 #endif |
|
40 |
36 /* Error and assert macros */ |
41 /* Error and assert macros */ |
37 #define UTF_ERROR(m) utfError(__FILE__, __LINE__, m) |
42 #define UTF_ERROR(m) utfError(THIS_FILE, __LINE__, m) |
38 #define UTF_ASSERT(x) ( (x)==0 ? UTF_ERROR("ASSERT ERROR " #x) : (void)0 ) |
43 #define UTF_ASSERT(x) ( (x)==0 ? UTF_ERROR("ASSERT ERROR " #x) : (void)0 ) |
39 |
44 |
40 void utfError(char *file, int line, char *message); |
45 void utfError(char *file, int line, char *message); |
41 |
46 |
42 struct UtfInst* JNICALL utfInitialize |
47 struct UtfInst* JNICALL utfInitialize |