Internal header. More...
Go to the source code of this file.
Data Structures | |
struct | ParsedFormatSpec |
struct | BreakpointEntry |
struct | DebuggerState |
Enumerations | |
enum | KrkSpecialMethods { METHOD__MAX } |
Index numbers for always-available interned strings representing important method and member names. More... | |
Functions | |
void | _createAndBind_numericClasses (void) |
void | _createAndBind_strClass (void) |
void | _createAndBind_listClass (void) |
void | _createAndBind_tupleClass (void) |
void | _createAndBind_bytesClass (void) |
void | _createAndBind_dictClass (void) |
void | _createAndBind_functionClass (void) |
void | _createAndBind_rangeClass (void) |
void | _createAndBind_setClass (void) |
void | _createAndBind_generatorClass (void) |
void | _createAndBind_sliceClass (void) |
void | _createAndBind_builtins (void) |
void | _createAndBind_type (void) |
void | _createAndBind_exceptions (void) |
Bind native methods and classes for exceptions. More... | |
void | _createAndBind_longClass (void) |
void | _createAndBind_compilerClass (void) |
Detailed Description
Internal header.
These functions are not part of the public API for Kuroko. They are used internally by the interpreter library.
Definition in file private.h.
Enumeration Type Documentation
◆ KrkSpecialMethods
enum KrkSpecialMethods |
Index numbers for always-available interned strings representing important method and member names.
The VM must look up many methods and members by fixed names. To avoid continuously having to box and unbox these from C strings to the appropriate interned KrkString
, we keep an array of the KrkString
pointers in the global VM state.
These values are the offsets into that index for each of the relevant function names (generally with extra underscores removed). For example METHOD_INIT
is the offset for the string value for "__init__"
.
Function Documentation
◆ _createAndBind_exceptions()
void _createAndBind_exceptions | ( | void | ) |
Bind native methods and classes for exceptions.
Called on VM initialization to create the base classes for exception types and bind the native methods for exception objects.
Definition at line 184 of file exceptions.c.