For consistency, use "cdef extern" everywhere instead of "cdef import"
authorEvan Broder <broder@mit.edu>
Thu, 19 Nov 2009 17:03:31 +0000 (12:03 -0500)
committerEvan Broder <broder@mit.edu>
Thu, 19 Nov 2009 17:05:31 +0000 (12:05 -0500)
Signed-off-by: Evan Broder <broder@mit.edu>

afs/_acl.pyx
afs/_pts.pyx
afs/afs.pxd
afs/afs.pyx

index 3f34685..4090ff7 100644 (file)
@@ -1,7 +1,7 @@
 from afs cimport *
 from afs import pyafs_error
 
 from afs cimport *
 from afs import pyafs_error
 
-cdef import from "afs/prs_fs.h":
+cdef extern from "afs/prs_fs.h":
     enum:
         PRSFS_READ, PRSFS_WRITE, PRSFS_INSERT, PRSFS_LOOKUP,
         PRSFS_DELETE, PRSFS_LOCK, PRSFS_ADMINISTER,
     enum:
         PRSFS_READ, PRSFS_WRITE, PRSFS_INSERT, PRSFS_LOOKUP,
         PRSFS_DELETE, PRSFS_LOCK, PRSFS_ADMINISTER,
index c347037..420c739 100644 (file)
@@ -2,7 +2,7 @@ from afs cimport *
 from afs import pyafs_error
 import re
 
 from afs import pyafs_error
 import re
 
-cdef import from "afs/ptuser.h":
+cdef extern from "afs/ptuser.h":
     enum:
         PR_MAXNAMELEN
         PRGRP
     enum:
         PR_MAXNAMELEN
         PRGRP
@@ -68,11 +68,11 @@ cdef import from "afs/ptuser.h":
     int ubik_PR_ListEntries(ubik_client *, afs_int32, afs_int32, afs_int32, prentries *, afs_int32 *)
     int ubik_PR_SetFieldsEntry(ubik_client *, afs_int32, afs_int32, afs_int32, afs_int32, afs_int32, afs_int32, afs_int32, afs_int32)
 
     int ubik_PR_ListEntries(ubik_client *, afs_int32, afs_int32, afs_int32, prentries *, afs_int32 *)
     int ubik_PR_SetFieldsEntry(ubik_client *, afs_int32, afs_int32, afs_int32, afs_int32, afs_int32, afs_int32, afs_int32, afs_int32)
 
-cdef import from "afs/pterror.h":
+cdef extern from "afs/pterror.h":
     enum:
         PRNOENT
 
     enum:
         PRNOENT
 
-cdef import from "krb5/krb5.h":
+cdef extern from "krb5/krb5.h":
     struct _krb5_context:
         pass
     struct krb5_principal_data:
     struct _krb5_context:
         pass
     struct krb5_principal_data:
index b5180f5..aacba3b 100644 (file)
@@ -155,7 +155,7 @@ cdef extern from "afs/vice.h":
         unsigned short out_size
         unsigned short in_size
 
         unsigned short out_size
         unsigned short in_size
 
-cdef import from "afs/venus.h":
+cdef extern from "afs/venus.h":
     enum:
         # PIOCTLS to Venus that we use
         VIOCGETAL, VIOC_GETVCXSTATUS2, VIOCSETAL, VIOC_FILE_CELL_NAME
     enum:
         # PIOCTLS to Venus that we use
         VIOCGETAL, VIOC_GETVCXSTATUS2, VIOCSETAL, VIOC_FILE_CELL_NAME
index 4fe9e1c..f7f167b 100644 (file)
@@ -5,8 +5,8 @@ General PyAFS utilities, such as error handling
 import sys
 
 # otherwise certain headers are unhappy
 import sys
 
 # otherwise certain headers are unhappy
-cdef import from "netinet/in.h": pass
-cdef import from "afs/vice.h": pass
+cdef extern from "netinet/in.h": pass
+cdef extern from "afs/vice.h": pass
 
 cdef int _init = 0
 
 
 cdef int _init = 0