From: Stefan Behnel Date: Tue, 7 Apr 2009 08:58:56 +0000 (+0200) Subject: declare standard C functions 'nogil' X-Git-Tag: 0.11.1.beta~10 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a1cbd37f035f3dd6c46d9ac84179e8b912481c96;p=cython.git declare standard C functions 'nogil' --- diff --git a/Cython/Includes/stdio.pxd b/Cython/Includes/stdio.pxd index ad4d971a..dd14790c 100644 --- a/Cython/Includes/stdio.pxd +++ b/Cython/Includes/stdio.pxd @@ -1,9 +1,9 @@ cdef extern from "stdio.h": ctypedef struct FILE - int printf(char *format, ...) - int fprintf(FILE *stream, char *format, ...) - int sprintf(char *str, char *format, ...) - FILE *fopen(char *path, char *mode) - int fclose(FILE *strea) + int printf(char *format, ...) nogil + int fprintf(FILE *stream, char *format, ...) nogil + int sprintf(char *str, char *format, ...) nogil + FILE *fopen(char *path, char *mode) nogil + int fclose(FILE *strea) nogil cdef FILE *stdout - int scanf(char *format, ...) + int scanf(char *format, ...) nogil diff --git a/Cython/Includes/stdlib.pxd b/Cython/Includes/stdlib.pxd index 6653b748..bad37296 100644 --- a/Cython/Includes/stdlib.pxd +++ b/Cython/Includes/stdlib.pxd @@ -1,7 +1,7 @@ cdef extern from "stdlib.h": - void free(void *ptr) - void *malloc(size_t size) - void *realloc(void *ptr, size_t size) - size_t strlen(char *s) - char *strcpy(char *dest, char *src) + void free(void *ptr) nogil + void *malloc(size_t size) nogil + void *realloc(void *ptr, size_t size) nogil + size_t strlen(char *s) nogil + char *strcpy(char *dest, char *src) nogil