Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Tidy up formatting.
  • Loading branch information
markshannon committed Jan 5, 2023
commit c5ecb5f2c4a4da8277d4d04d7525f0d3caeb13d2
9 changes: 3 additions & 6 deletions Include/internal/pycore_intrinsics.h
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@


typedef PyObject *(*instrinsic_func1)(PyThreadState* tstate, PyObject *value);


#define INTRINSIC_PRINT 1
#define INTRINSIC_IMPORT_STAR 2
#define INTRINSIC_STOPITERATION_ERROR 3

extern instrinsic_func1
_PyIntrinsics_UnaryFunctions[];
typedef PyObject *(*instrinsic_func1)(PyThreadState* tstate, PyObject *value);

extern instrinsic_func1 _PyIntrinsics_UnaryFunctions[];
3 changes: 0 additions & 3 deletions Python/intrinsics.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,10 +180,7 @@ stopiteration_error(PyThreadState* tstate, PyObject *exc)

instrinsic_func1
_PyIntrinsics_UnaryFunctions[] = {

[INTRINSIC_PRINT] = print_expr,
[INTRINSIC_IMPORT_STAR] = import_star,
[INTRINSIC_STOPITERATION_ERROR] = stopiteration_error,
};