~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/_dirstate_helpers_c.pyx

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-08-02 22:13:38 UTC
  • mfrom: (2668.1.1 jam-integration)
  • Revision ID: pqm@pqm.ubuntu.com-20070802221338-9333q05a8caaciwo
(Lukáš Lalinský) Add a special header for intptr_t for MSVC which doesn't have it in the standard place

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
cdef extern from *:
33
33
    ctypedef unsigned long size_t
34
34
 
35
 
cdef extern from "stdint.h":
 
35
cdef extern from "_dirstate_helpers_c.h":
36
36
    ctypedef int intptr_t
37
37
 
38
38
 
108
108
    found = _my_memrchr(_s, _c[0], length)
109
109
    if found == NULL:
110
110
        return None
111
 
    return found - _s
 
111
    return <char*>found - <char*>_s
112
112
 
113
113
 
114
114
cdef int _is_aligned(void *ptr):