Damien George
3593d8e10c
py/nlrx64.S: Prefix mp_thread_get_state with an underscore on Mac.
8 years ago
Damien George
27cc07721b
py: Add basic _thread module, with ability to start a new thread.
9 years ago
stijn
bf1570cb25
nlr: Use single preprocessor symbol to check if building on Windows
9 years ago
Damien George
5b7aa294e0
py: Fix nlr mp_state_ctx symbol error for Mac.
10 years ago
Damien George
b4b10fd350
py: Put all global state together in state structures.
This patch consolidates all global variables in py/ core into one place,
in a global structure. Root pointers are all located together to make
GC tracing easier and more efficient.
10 years ago
Damien George
8a2347723e
py: Move global variable nlr_top to one place, in a .c file.
This reduces dependency on assembler, and allows to consolidate global
variables in the future.
10 years ago
Damien George
133b083b89
py: Clean up nlr*.S to make it easier to read; fix clang .bss error.
It seems that newer versions of clang don't like the .bss directive, so
we don't use it for OSX.
Addressing issues #865 and #875 .
10 years ago
Antonin ENFRUN
6caae0bcb1
unix: Create __bss_start and _end symbols for Mach-O targets.
It's a hack, but can't find a cleaner way to do it.
11 years ago
Damien George
04b9147e15
Add license header to (almost) all files.
Blanket wide to all .c and .h files. Some files originating from ST are
difficult to deal with (license wise) so it was left out of those.
Also merged modpyb.h, modos.h, modstm.h and modtime.h in stmhal/.
11 years ago
Paul Sokolovsky
b1ce37d32e
py: If setjmp NLR implementation is forced, omit native versions.
11 years ago
Damien George
26cf55ae05
Add a check for NULL nlr_top in nlr_jump.
If no nlr_buf has been pushed, and an nlr_jump is called, then control
is transferred to nlr_jump_fail (which should bail out with a fatal
error).
11 years ago
Damien George
4b34c76fd6
Changes to get unix/ port compiling on Cygwin.
11 years ago
xbe
606821007a
Fix OS X detection.
Switch to checking for the __APPLE__ and __MACH__ macros.
11 years ago
Paul Sokolovsky
0a25aba046
Typo fix in comment.
11 years ago
Mikael Eiman
d67091371d
OSX: fixes to make nlrx64.S with Apple's clang (switched to Apple-specific define instead of __llvm__)
11 years ago
Mikael Eiman
f53cdd947c
OSX: fixes to make nlrx64.S with Apple's clang (forgot a few places)
11 years ago
Mikael Eiman
5d02e2d6fa
OSX: fixes to make nlrx64.S with Apple's clang
11 years ago
Paul Sokolovsky
e85c38992d
Make "unix" target be crossplatform and support x86, x64, ARM hosts.
11 years ago
Damien
ce89a21ea4
Implement basic exception framework, and simple for loop.
11 years ago