mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-29 17:22:56 +08:00
skip check align on win32
This commit is contained in:
parent
0273c638f1
commit
09203accd4
@ -97,7 +97,7 @@ int *re_fullmatch2(pcre *re, const char *s, int len, int *out_vec_number, int op
|
||||
|
||||
if (!vec)
|
||||
goto e_er;
|
||||
opt &= ~PCRE_MULTILINE;
|
||||
// opt &= ~PCRE_MULTILINE;
|
||||
match:
|
||||
rc = pcre_exec(re, NULL, s, len, start_offset, 0, vec, group_n);
|
||||
if (rc == PCRE_ERROR_NOMATCH)
|
||||
|
@ -329,9 +329,11 @@ int LibObj_saveLibraryFile(LibObj* self, char* output_file_name) {
|
||||
}
|
||||
|
||||
int LibObj_loadLibrary(LibObj* self, uint8_t* library_bytes) {
|
||||
if (0 != ((intptr_t)library_bytes & 0x03)) {
|
||||
#ifndef _WIN32
|
||||
if (0 != ((uintptr_t)library_bytes & 0x03)) {
|
||||
return PIKA_RES_ERR_UNALIGNED_PTR;
|
||||
}
|
||||
#endif
|
||||
|
||||
char* magic_code = (char*)library_bytes;
|
||||
|
||||
|
@ -1307,7 +1307,9 @@ PikaObj* Obj_linkLibraryFile(PikaObj* self, char* input_file_name) {
|
||||
PikaObj* obj_linkLibrary(PikaObj* self, uint8_t* library_bytes) {
|
||||
obj_newMetaObj(self, "@lib", New_LibObj);
|
||||
LibObj* lib = obj_getObj(self, "@lib");
|
||||
LibObj_loadLibrary(lib, library_bytes);
|
||||
if(0 != LibObj_loadLibrary(lib, library_bytes)){
|
||||
__platform_printf("VM Error: load bytecode library failed\r\n");
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
|
@ -2856,7 +2856,7 @@ void VMState_solveUnusedStack(VMState* vm) {
|
||||
} else if (type == ARG_TYPE_BYTES) {
|
||||
arg_printBytes(arg);
|
||||
} else if (ARG_TYPE_POINTER == type ||
|
||||
ARG_TYPE_METHOD_NATIVE_CONSTRUCTOR) {
|
||||
ARG_TYPE_METHOD_NATIVE_CONSTRUCTOR == type) {
|
||||
__platform_printf("%p\r\n", arg_getPtr(arg));
|
||||
}
|
||||
arg_deinit(arg);
|
||||
|
@ -480,7 +480,7 @@ char* args_print(Args* self, char* name) {
|
||||
}
|
||||
|
||||
if (argType_isObject(type) || ARG_TYPE_POINTER == type ||
|
||||
ARG_TYPE_METHOD_NATIVE_CONSTRUCTOR) {
|
||||
ARG_TYPE_METHOD_NATIVE_CONSTRUCTOR == type) {
|
||||
void* val = args_getPtr(self, name);
|
||||
res = getPrintStringFromPtr(self, name, val);
|
||||
goto exit;
|
||||
|
Loading…
x
Reference in New Issue
Block a user