Commit f0ccd685 authored by Robert Bradshaw's avatar Robert Bradshaw

Use angle brackes for libc includes.

parent 68582c27
# 7.5 Errors <errno.h> # 7.5 Errors <errno.h>
cdef extern from "errno.h" nogil: cdef extern from "<errno.h>" nogil:
enum: enum:
EPERM EPERM
ENOENT ENOENT
......
# 5.2.4.2.2 Characteristics of floating types <float.h> # 5.2.4.2.2 Characteristics of floating types <float.h>
cdef extern from "float.h": cdef extern from "<float.h>":
const float FLT_RADIX const float FLT_RADIX
......
# 5.2.4.2.1 Sizes of integer types <limits.h> # 5.2.4.2.1 Sizes of integer types <limits.h>
cdef extern from "limits.h": cdef extern from "<limits.h>":
enum: CHAR_BIT enum: CHAR_BIT
enum: MB_LEN_MAX enum: MB_LEN_MAX
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
from libc.string cimport const_char from libc.string cimport const_char
cdef extern from "locale.h" nogil: cdef extern from "<locale.h>" nogil:
struct lconv: struct lconv:
char *decimal_point char *decimal_point
......
cdef extern from "math.h" nogil: cdef extern from "<math.h>" nogil:
double M_E double M_E
double e "M_E" # as in Python's math module double e "M_E" # as in Python's math module
double M_LOG2E double M_LOG2E
......
cdef extern from "setjmp.h" nogil: cdef extern from "<setjmp.h>" nogil:
ctypedef struct jmp_buf: ctypedef struct jmp_buf:
pass pass
int setjmp(jmp_buf state) int setjmp(jmp_buf state)
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
ctypedef void (*sighandler_t)(int SIGNUM) nogil ctypedef void (*sighandler_t)(int SIGNUM) nogil
cdef extern from "signal.h" nogil: cdef extern from "<signal.h>" nogil:
ctypedef int sig_atomic_t ctypedef int sig_atomic_t
...@@ -21,7 +21,7 @@ cdef extern from "signal.h" nogil: ...@@ -21,7 +21,7 @@ cdef extern from "signal.h" nogil:
int raise_"raise" (int signum) int raise_"raise" (int signum)
cdef extern from "signal.h" nogil: cdef extern from "<signal.h>" nogil:
# Program Error # Program Error
enum: SIGFPE enum: SIGFPE
......
# 7.17 Common definitions <stddef.h> # 7.17 Common definitions <stddef.h>
cdef extern from "stddef.h": cdef extern from "<stddef.h>":
ctypedef signed int ptrdiff_t ctypedef signed int ptrdiff_t
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# Actual compile time size used for conversions. # Actual compile time size used for conversions.
# 7.18 Integer types <stdint.h> # 7.18 Integer types <stdint.h>
cdef extern from "stdint.h" nogil: cdef extern from "<stdint.h>" nogil:
# 7.18.1 Integer types # 7.18.1 Integer types
# 7.18.1.1 Exact-width integer types # 7.18.1.1 Exact-width integer types
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
from libc.string cimport const_char, const_void from libc.string cimport const_char, const_void
cdef extern from "stdio.h" nogil: cdef extern from "<stdio.h>" nogil:
ctypedef struct FILE ctypedef struct FILE
cdef FILE *stdin cdef FILE *stdin
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
from libc.string cimport const_char, const_void from libc.string cimport const_char, const_void
cdef extern from "stdlib.h" nogil: cdef extern from "<stdlib.h>" nogil:
# 7.20.1 Numeric conversion functions # 7.20.1 Numeric conversion functions
int atoi (const char *string) int atoi (const char *string)
......
...@@ -7,7 +7,7 @@ cdef extern from *: ...@@ -7,7 +7,7 @@ cdef extern from *:
ctypedef const unsigned char const_uchar "const unsigned char" ctypedef const unsigned char const_uchar "const unsigned char"
ctypedef const void const_void "const void" ctypedef const void const_void "const void"
cdef extern from "string.h" nogil: cdef extern from "<string.h>" nogil:
void *memcpy (void *pto, const void *pfrom, size_t size) void *memcpy (void *pto, const void *pfrom, size_t size)
void *memmove (void *pto, const void *pfrom, size_t size) void *memmove (void *pto, const void *pfrom, size_t size)
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
from libc.stddef cimport wchar_t from libc.stddef cimport wchar_t
cdef extern from "time.h" nogil: cdef extern from "<time.h>" nogil:
ctypedef long clock_t ctypedef long clock_t
ctypedef long time_t ctypedef long time_t
......
cdef extern from "limits" namespace "std" nogil: cdef extern from "<limits>" namespace "std" nogil:
enum float_round_style: enum float_round_style:
round_indeterminate = -1 round_indeterminate = -1
round_toward_zero = 0 round_toward_zero = 0
......
cdef extern from "omp.h": cdef extern from "<omp.h>":
ctypedef struct omp_lock_t: ctypedef struct omp_lock_t:
pass pass
ctypedef struct omp_nest_lock_t: ctypedef struct omp_nest_lock_t:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment