py: Make gc.enable/disable just control auto-GC; alloc is still allowed.

gc.enable/disable are now the same as CPython: they just control whether
automatic garbage collection is enabled or not.  If disabled, you can
still allocate heap memory, and initiate a manual collection.
This commit is contained in:
Damien George
2014-10-31 21:30:46 +00:00
parent 4029f51842
commit 109c1de015
10 changed files with 42 additions and 19 deletions

View File

@@ -27,6 +27,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include "mpconfig.h"
#include "misc.h"