|
Oolite
|
#include "OOConstToJSString.h"#include "OOCompassMode.tbl"#include "OOEntityStatus.tbl"#include "OOGalacticHyperspaceBehaviour.tbl"#include "OOGUIScreenID.tbl"#include "OOScanClass.tbl"#include "OOViewID.tbl"#include "OOShipDamageType.tbl"#include "OOLegalStatusReason.tbl"#include "OOLongRangeChartMode.tbl"Go to the source code of this file.
Classes | |
| struct | TableEntry |
| struct | ConstTable |
Macros | |
| #define | TABLE(entries) |
| #define | ENTRY(label, val) |
| #define | GALACTIC_HYPERSPACE_ENTRY(label, val) |
| #define | DIFF_STRING_ENTRY(label, string) |
Typedefs | |
| typedef struct ConstTable | ConstTable |
Functions | |
| static void | InitTable (JSContext *context, ConstTable *table) |
| void | OOConstToJSStringInit (JSContext *context) |
| void | OOConstToJSStringDestroy (void) |
| static int | CompareEntries (const void *a, const void *b) |
| JSValue | OOJSValueFromConstantPRIVATE (JSContext *context, NSInteger value, struct ConstTable *table) |
| NSUInteger | OOConstantFromJSValuePRIVATE (JSContext *context, JSValueConst value, struct ConstTable *table, NSInteger defaultValue) |
| #define DIFF_STRING_ENTRY | ( | label, | |
| string ) |
Definition at line 74 of file OOConstToJSString.m.
| #define ENTRY | ( | label, | |
| val ) |
Definition at line 72 of file OOConstToJSString.m.
| #define GALACTIC_HYPERSPACE_ENTRY | ( | label, | |
| val ) |
Definition at line 73 of file OOConstToJSString.m.
| #define TABLE | ( | entries | ) |
Definition at line 58 of file OOConstToJSString.m.
| typedef struct ConstTable ConstTable |
|
static |
Definition at line 162 of file OOConstToJSString.m.
References TableEntry::value.
|
static |
Definition at line 174 of file OOConstToJSString.m.
References TableEntry::atom, CompareEntries(), ConstTable::count, TableEntry::cString, and ConstTable::entries.
| NSUInteger OOConstantFromJSValuePRIVATE | ( | JSContext * | context, |
| JSValueConst | value, | ||
| struct ConstTable * | table, | ||
| NSInteger | defaultValue ) |
Definition at line 212 of file OOConstToJSString.m.
References TableEntry::atom, ConstTable::count, count, ConstTable::entries, EXPECT_NOT, sInited, and TableEntry::value.
| void OOConstToJSStringDestroy | ( | void | ) |
Definition at line 155 of file OOConstToJSString.m.
References sInited.
Referenced by OOJavaScriptEngine(Private)::destroyMainThreadContext.
| void OOConstToJSStringInit | ( | JSContext * | context | ) |
Definition at line 130 of file OOConstToJSString.m.
References gOOCompassModeConstTable, gOOEntityStatusConstTable, gOOGalacticHyperspaceBehaviourConstTable, gOOGUIScreenIDConstTable, gOOLegalStatusReasonConstTable, gOOLongRangeChartModeConstTable, gOOScanClassConstTable, gOOShipDamageTypeConstTable, gOOViewIDConstTable, InitTable(), JS_IsInRequest, sAtomsInterned, sInited, sUndefinedAtom, and sUndefinedString.
Referenced by OOJavaScriptEngine(Private)::createMainThreadContext.
| JSValue OOJSValueFromConstantPRIVATE | ( | JSContext * | context, |
| NSInteger | value, | ||
| struct ConstTable * | table ) |
Definition at line 188 of file OOConstToJSString.m.
References TableEntry::atom, ConstTable::count, ConstTable::entries, sInited, sUndefinedAtom, and TableEntry::value.
Referenced by OOJSValueFromCompassMode(), OOJSValueFromEntityStatus(), OOJSValueFromGalacticHyperspaceBehaviour(), OOJSValueFromGUIScreenID(), OOJSValueFromLegalStatusReason(), OOJSValueFromScanClass(), OOJSValueFromShipDamageType(), and OOJSValueFromViewID().
| ConstTable gOOCompassModeConstTable = TABLE(sOOCompassModeTableEntries) |
Definition at line 116 of file OOConstToJSString.m.
| ConstTable gOOEntityStatusConstTable = TABLE(sOOEntityStatusTableEntries) |
Definition at line 117 of file OOConstToJSString.m.
| ConstTable gOOGalacticHyperspaceBehaviourConstTable = TABLE(sOOGalacticHyperspaceBehaviourTableEntries) |
Definition at line 118 of file OOConstToJSString.m.
| ConstTable gOOGUIScreenIDConstTable = TABLE(sOOGUIScreenIDTableEntries) |
Definition at line 119 of file OOConstToJSString.m.
| ConstTable gOOLegalStatusReasonConstTable = TABLE(sOOLegalStatusReasonTableEntries) |
Definition at line 123 of file OOConstToJSString.m.
| ConstTable gOOLongRangeChartModeConstTable = TABLE(sOOLongRangeChartModeTableEntries) |
Definition at line 124 of file OOConstToJSString.m.
| ConstTable gOOScanClassConstTable = TABLE(sOOScanClassTableEntries) |
Definition at line 120 of file OOConstToJSString.m.
| ConstTable gOOShipDamageTypeConstTable = TABLE(sOOShipDamageTypeTableEntries) |
Definition at line 122 of file OOConstToJSString.m.
| ConstTable gOOViewIDConstTable = TABLE(sOOViewIDTableEntries) |
Definition at line 121 of file OOConstToJSString.m.
|
static |
Definition at line 61 of file OOConstToJSString.m.
Referenced by OOConstToJSStringInit().
|
static |
Definition at line 60 of file OOConstToJSString.m.
|
static |
Definition at line 76 of file OOConstToJSString.m.
|
static |
Definition at line 80 of file OOConstToJSString.m.
|
static |
Definition at line 84 of file OOConstToJSString.m.
|
static |
Definition at line 88 of file OOConstToJSString.m.
|
static |
Definition at line 104 of file OOConstToJSString.m.
|
static |
Definition at line 108 of file OOConstToJSString.m.
|
static |
Definition at line 92 of file OOConstToJSString.m.
|
static |
Definition at line 100 of file OOConstToJSString.m.
|
static |
Definition at line 96 of file OOConstToJSString.m.
|
static |
Definition at line 67 of file OOConstToJSString.m.
Referenced by OOConstToJSStringInit(), and OOJSValueFromConstantPRIVATE().