From f4203a777d2ec040b0e928363276f29c2b203bb7 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Fri, 10 Apr 2009 08:13:46 +0200 Subject: [PATCH] simplify nogil declarations in std*.pxd --- Cython/Includes/stdio.pxd | 14 +++++++------- Cython/Includes/stdlib.pxd | 12 ++++++------ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/Cython/Includes/stdio.pxd b/Cython/Includes/stdio.pxd index dd14790c..cc574105 100644 --- a/Cython/Includes/stdio.pxd +++ b/Cython/Includes/stdio.pxd @@ -1,9 +1,9 @@ -cdef extern from "stdio.h": +cdef extern from "stdio.h" nogil: ctypedef struct FILE - 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 + 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) cdef FILE *stdout - int scanf(char *format, ...) nogil + int scanf(char *format, ...) diff --git a/Cython/Includes/stdlib.pxd b/Cython/Includes/stdlib.pxd index bad37296..40192d13 100644 --- a/Cython/Includes/stdlib.pxd +++ b/Cython/Includes/stdlib.pxd @@ -1,7 +1,7 @@ -cdef extern from "stdlib.h": - 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 +cdef extern from "stdlib.h" nogil: + 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) -- 2.26.2