Change code and naming style, fix several bugs, removed math types.
After a while I felt that putting underscores between words was not the best solution, so I changed the underscores to capital letters. Fixed consistency bug between POSIX/Win32 platform in BH_FileOpen. Removed definitions for math types (vector, matrix, etc.) due to potential aliasing issues.
This commit is contained in:
@@ -17,8 +17,9 @@
|
||||
#define BH_PTR2INT(x) ((intptr_t)(x))
|
||||
#define BH_INT2PTR(x) ((void*)(x))
|
||||
|
||||
typedef int (*bh_equal_cb_t)(const void *, const void *);
|
||||
typedef size_t (*bh_hash_cb_t)(const void *);
|
||||
|
||||
typedef int (*BH_EqualCallback)(const void *, const void *);
|
||||
typedef size_t (*BH_HashCallback)(const void *);
|
||||
|
||||
#endif /* BH_COMMON_H */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user