~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/_dirstate_helpers_c.pyx

  • Committer: John Arbash Meinel
  • Date: 2007-08-02 21:00:51 UTC
  • mto: This revision was merged to the branch mainline in revision 2670.
  • Revision ID: john@arbash-meinel.com-20070802210051-lqpg4mgbeyl3h2ld
(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):