From: nishi Date: Sun, 26 May 2024 11:10:56 +0000 (+0000) Subject: rename files X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=b75ea3070c911ade14ca2badd7f85a6ff9b2570d;p=dataworks.git rename files git-svn-id: file:///raid/svn-main/nishi-dataworks/trunk@120 d4a5a174-5a4a-5b4b-b672-37683c10d7d5 --- diff --git a/Library/Makefile b/Library/Makefile index 2d87f99..f20e665 100644 --- a/Library/Makefile +++ b/Library/Makefile @@ -3,7 +3,7 @@ .PHONY: all clean .SUFFIXES: .c .o -OBJS = parser.o database.o util.o dataworks.o database_table.o database_exec.o database_db.o +OBJS = parser.o database.o util.o dataworks.o database_table.o database_db.o exec.o all: $(LIB_PREFIX)dataworks$(LIB_SUFFIX) $(STATICLIB_PREFIX)dataworks$(STATICLIB_SUFFIX) diff --git a/Library/dw_util.h b/Library/dw_util.h index 65f2757..b40b24c 100644 --- a/Library/dw_util.h +++ b/Library/dw_util.h @@ -75,24 +75,7 @@ bool __dw_unlockfile(FILE* fp); } /* Converts BE to NE */ -#define __dw_native_endian(arg, type, exec) \ - { \ - type __original = arg; \ - signed char* __ptr = (signed char*)&__original; \ - type __converted; \ - signed char* __converted_ptr = (signed char*)&__converted; \ - int __i; \ - int __endian_check = 1; \ - char __endian = (1 == *(volatile char*)&__endian_check) ? 'L' : 'B'; \ - for(__i = 0; __i < sizeof(type); __i++) { \ - if(__endian == 'L') { \ - __converted_ptr[sizeof(type) - __i - 1] = __ptr[__i]; \ - } else { \ - __converted_ptr[__i] = __ptr[__i]; \ - } \ - } \ - exec; \ - } +#define __dw_native_endian __dw_big_endian #ifdef __cplusplus } diff --git a/Library/database_exec.c b/Library/exec.c similarity index 100% rename from Library/database_exec.c rename to Library/exec.c