python-on-a-chip online compiler

Dependencies:   mbed TSI

Embed: (wiki syntax)

« Back to documentation index

PmVmGlobal_s Struct Reference

PmVmGlobal_s Struct Reference

This struct contains ALL of PyMite's globals. More...

#include <global.h>

Data Fields

pPmObj_t pnone
 Global none obj (none)
pPmInt_t pzero
 Global integer 0 obj.
pPmInt_t pone
 Global integer 1 obj.
pPmInt_t pnegone
 Global integer -1 obj.
pPmInt_t pfalse
 Global boolean False obj.
pPmInt_t ptrue
 Global boolean True obj.
pPmString_t pcodeStr
 The string "code", used in interp.c RAISE_VARARGS.
pPmDict_t builtins
 Dict for builtins.
PmImgPaths_t imgPaths
 Paths to available images.
PmNativeFrame_t nativeframe
 The single native frame.
uint8_t errVmRelease
 PyMite release value for when an error occurs.
uint8_t errFileId
 PyMite source file ID number for when an error occurs.
uint16_t errLineNum
 Line number for when an error occurs.
pPmList_t threadList
 Thread list.
pPmThread_t pthread
 Ptr to current thread.
pPmString_t pinitStr
 The string "__init__", used in interp.c CALL_FUNCTION.
pPmString_t pgenStr
 The string "Generator", used in interp.c CALL_FUNCTION.
pPmString_t pnextStr
 The string "next", used in interp.c FOR_ITER.
pPmString_t pexnStr
 The string "Exception", used in RAISE_VARARGS.
pPmString_t pbaStr
 The global string "bytearray".
pPmString_t pmdStr
 The global string "__md".
uint8_t needSoftSpace
 Remembers when a space is needed before printing the next object.
uint8_t somethingPrinted
 Remembers when something has printed since the last newline.
uint8_t reschedule
 Flag to trigger rescheduling.

Detailed Description

This struct contains ALL of PyMite's globals.

Definition at line 74 of file global.h.


Field Documentation

Dict for builtins.

Definition at line 98 of file global.h.

uint8_t errFileId

PyMite source file ID number for when an error occurs.

Definition at line 110 of file global.h.

uint16_t errLineNum

Line number for when an error occurs.

Definition at line 113 of file global.h.

uint8_t errVmRelease

PyMite release value for when an error occurs.

Definition at line 107 of file global.h.

PmImgPaths_t imgPaths

Paths to available images.

Definition at line 101 of file global.h.

The single native frame.

Static alloc so it won't be GC'd

Definition at line 104 of file global.h.

uint8_t needSoftSpace

Remembers when a space is needed before printing the next object.

Definition at line 149 of file global.h.

The global string "bytearray".

Definition at line 141 of file global.h.

The string "code", used in interp.c RAISE_VARARGS.

Definition at line 95 of file global.h.

The string "Exception", used in RAISE_VARARGS.

Definition at line 136 of file global.h.

Global boolean False obj.

Definition at line 89 of file global.h.

The string "Generator", used in interp.c CALL_FUNCTION.

Definition at line 129 of file global.h.

The string "__init__", used in interp.c CALL_FUNCTION.

Definition at line 124 of file global.h.

The global string "__md".

Definition at line 145 of file global.h.

Global integer -1 obj.

Definition at line 86 of file global.h.

The string "next", used in interp.c FOR_ITER.

Definition at line 131 of file global.h.

Global none obj (none)

Definition at line 77 of file global.h.

Global integer 1 obj.

Definition at line 83 of file global.h.

Ptr to current thread.

Definition at line 119 of file global.h.

Global boolean True obj.

Definition at line 92 of file global.h.

Global integer 0 obj.

Definition at line 80 of file global.h.

uint8_t reschedule

Flag to trigger rescheduling.

Definition at line 155 of file global.h.

Remembers when something has printed since the last newline.

Definition at line 151 of file global.h.

Thread list.

Definition at line 116 of file global.h.