Oolite 1.91.0.7644-241112-7f5034b
|
import "OOCocoa.h"
import "OOLegacyScriptWhitelist.h"
import "OOStringParsing.h"
import "ResourceManager.h"
import "OOCollectionExtractors.h"
import "PlayerEntityLegacyScriptEngine.h"
import "NSDictionaryOOExtensions.h"
import "OODeepCopy.h"
Go to the source code of this file.
Classes | |
struct | SanStackElement |
Macros | |
#define | INCLUDE_RAW_STRING OOLITE_DEBUG |
Typedefs | |
typedef struct SanStackElement | SanStackElement |
Functions | |
static NSArray * | OOSanitizeLegacyScriptInternal (NSArray *script, SanStackElement *stack, BOOL allowAIMethods) |
static NSArray * | OOSanitizeLegacyScriptConditionsInternal (NSArray *conditions, SanStackElement *stack) |
static NSArray * | SanitizeCondition (NSString *condition, SanStackElement *stack) |
static NSArray * | SanitizeConditionalStatement (NSDictionary *statement, SanStackElement *stack, BOOL allowAIMethods) |
static NSArray * | SanitizeActionStatement (NSString *statement, SanStackElement *stack, BOOL allowAIMethods) |
static OOOperationType | ClassifyLHSConditionSelector (NSString *selectorString, NSString **outSanitizedMethod, SanStackElement *stack) |
static NSString * | SanitizeQueryMethod (NSString *selectorString) |
static NSString * | SanitizeActionMethod (NSString *selectorString, BOOL allowAIMethods) |
static NSArray * | AlwaysFalseConditions (void) |
static BOOL | IsAlwaysFalseConditions (NSArray *conditions) |
static NSString * | StringFromStack (SanStackElement *topOfStack) |
NSArray * | OOSanitizeLegacyScript (NSArray *script, NSString *context, BOOL allowAIMethods) |
NSArray * | OOSanitizeLegacyScriptConditions (NSArray *conditions, NSString *context) |
BOOL | OOLegacyConditionsAreSanitized (NSArray *conditions) |
static NSMutableString * | StringFromStackInternal (SanStackElement *topOfStack) |
#define INCLUDE_RAW_STRING OOLITE_DEBUG |
Definition at line 36 of file OOLegacyScriptWhitelist.m.
typedef struct SanStackElement SanStackElement |
Definition at line 39 of file OOLegacyScriptWhitelist.m.
|
static |
Definition at line 515 of file OOLegacyScriptWhitelist.m.
References nil.
Referenced by OOSanitizeLegacyScriptConditionsInternal().
|
static |
Definition at line 417 of file OOLegacyScriptWhitelist.m.
References nil, OOLog, OP_BOOL, OP_INVALID, OP_LOCAL_VAR, OP_MISSION_VAR, OP_NUMBER, OP_STRING, and SanitizeQueryMethod().
Referenced by SanitizeCondition().
|
static |
Definition at line 528 of file OOLegacyScriptWhitelist.m.
References OP_FALSE.
Referenced by SanitizeConditionalStatement().
BOOL OOLegacyConditionsAreSanitized | ( | NSArray * | conditions | ) |
Definition at line 170 of file OOLegacyScriptWhitelist.m.
References count.
Referenced by OOSanitizeLegacyScriptConditionsInternal().
NSArray * OOSanitizeLegacyScript | ( | NSArray * | script, |
NSString * | context, | ||
BOOL | allowAIMethods ) |
Definition at line 63 of file OOLegacyScriptWhitelist.m.
References OOSanitizeLegacyScriptInternal().
NSArray * OOSanitizeLegacyScriptConditions | ( | NSArray * | conditions, |
NSString * | context ) |
Definition at line 117 of file OOLegacyScriptWhitelist.m.
References nil, and OOSanitizeLegacyScriptConditionsInternal().
|
static |
Definition at line 126 of file OOLegacyScriptWhitelist.m.
References AlwaysFalseConditions(), SanStackElement::index, nil, OOLegacyConditionsAreSanitized(), OOLog, SanitizeCondition(), and StringFromStack().
Referenced by OOSanitizeLegacyScriptConditions(), and SanitizeConditionalStatement().
|
static |
Definition at line 71 of file OOLegacyScriptWhitelist.m.
References SanStackElement::index, nil, OOLog, SanitizeActionStatement(), SanitizeConditionalStatement(), and StringFromStack().
Referenced by OOSanitizeLegacyScript(), and SanitizeConditionalStatement().
|
static |
Definition at line 466 of file OOLegacyScriptWhitelist.m.
References nil, and ResourceManager::whitelistDictionary.
Referenced by SanitizeActionStatement().
|
static |
Definition at line 372 of file OOLegacyScriptWhitelist.m.
References nil, OOLog, SanitizeActionMethod(), ScanTokensFromString(), and StringFromStack().
Referenced by OOSanitizeLegacyScriptInternal().
|
static |
Definition at line 177 of file OOLegacyScriptWhitelist.m.
References ClassifyLHSConditionSelector(), COMPARISON_EQUAL, COMPARISON_GREATERTHAN, COMPARISON_LESSTHAN, COMPARISON_NOTEQUAL, COMPARISON_ONEOF, COMPARISON_UNDEFINED, nil, OOComparisonTypeToString(), OOLog, OP_BOOL, OP_INVALID, OP_NUMBER, SanitizeQueryMethod(), ScanTokensFromString(), and StringFromStack().
Referenced by OOSanitizeLegacyScriptConditionsInternal().
|
static |
Definition at line 323 of file OOLegacyScriptWhitelist.m.
References count, IsAlwaysFalseConditions(), SanStackElement::key, nil, OOLog, OOSanitizeLegacyScriptConditionsInternal(), OOSanitizeLegacyScriptInternal(), and StringFromStack().
Referenced by OOSanitizeLegacyScriptInternal().
|
static |
Definition at line 445 of file OOLegacyScriptWhitelist.m.
References nil, and ResourceManager::whitelistDictionary.
Referenced by ClassifyLHSConditionSelector(), and SanitizeCondition().
|
static |
Definition at line 551 of file OOLegacyScriptWhitelist.m.
References StringFromStackInternal().
Referenced by OOSanitizeLegacyScriptConditionsInternal(), OOSanitizeLegacyScriptInternal(), SanitizeActionStatement(), SanitizeCondition(), and SanitizeConditionalStatement().
|
static |
Definition at line 534 of file OOLegacyScriptWhitelist.m.
References SanStackElement::back, SanStackElement::key, nil, and StringFromStackInternal().
Referenced by StringFromStack(), and StringFromStackInternal().