Skip to content

Commit c168fa7

Browse files
committed
[GR-33574] Update HPy import (release 0.0.3).
PullRequest: graalpython/1962
2 parents 7db76ad + e15f231 commit c168fa7

File tree

102 files changed

+4954
-3154
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

102 files changed

+4954
-3154
lines changed

graalpython/com.oracle.graal.python.cext/hpy/hpy.c

Lines changed: 175 additions & 132 deletions
Large diffs are not rendered by default.

graalpython/com.oracle.graal.python.cext/hpy/hpynative.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,16 @@ typedef struct {
5050
void *jni_context;
5151

5252
/* embed HPy context */
53-
struct _HPyContext_s hpy_context;
53+
HPyContext hpy_context;
5454
} GraalHPyContext;
5555

5656
#define MUST_INLINE __attribute__((always_inline)) static inline
5757

58-
MUST_INLINE HPyContext graal_native_context_get_hpy_context(GraalHPyContext *native_context) {
58+
MUST_INLINE HPyContext *graal_native_context_get_hpy_context(GraalHPyContext *native_context) {
5959
return &(native_context->hpy_context);
6060
}
6161

62-
MUST_INLINE GraalHPyContext *graal_hpy_context_get_native_context(HPyContext hpy_context) {
62+
MUST_INLINE GraalHPyContext *graal_hpy_context_get_native_context(HPyContext *hpy_context) {
6363
return (GraalHPyContext *)(((void *)hpy_context) - offsetof(GraalHPyContext, hpy_context));
6464
}
6565

0 commit comments

Comments
 (0)