#if defined(_AI_LIB_) #include "AIUseCPA.h" #include "specif/AIOption.h" #include "AIMacros.h" #include "AI_Erm.h" #include "Convert.h" #include "EnumAct.h" #if defined(OPTIMIZED_COMMAND) #include "ProtAct.h" #endif #else #include #include "specif/AIOption.h" #include "ConvCst.h" #include "EnumAct.h" #include "ConvAct.h" #endif /* _AI_LIB_ */ #define C_MAX_SIZE_META_ACTION_SCRIPT_NAME 37 #define C_MAX_SIZE_META_ACTION_EDITOR_NAME 80 #define C_MAX_NB_META_ACTION_PARAM C_MAX_NB_PARAM typedef struct tdstMetaActionEntry_ { #if defined(ACTIVE_EDITOR) /* metaaction string used in editor*/ char szMetaActionEditorName[C_MAX_SIZE_META_ACTION_EDITOR_NAME+1]; char szMetaActionEditorName_En[C_MAX_SIZE_META_ACTION_EDITOR_NAME+1]; #endif /* ACTIVE_EDITOR*/ #if defined (AI_USE_SCRIPT) /* metaaction string used in script*/ char szMetaActionScriptName[C_MAX_SIZE_META_ACTION_SCRIPT_NAME+1]; #endif /* AI_USE_SCRIPT */ #if defined(_AI_LIB_) /* pointer on metaaction INIT function*/ tdp_fn_p_stMetaActionInitFunctionPtr p_fn_p_stMetaActionInitFunction; /* pointer on metaaction NEXT function*/ tdp_fn_ucMetaActionFunctionPtr p_fn_ucMetaActionFunction; #endif /* _AI_LIB_*/ /* list of metaaction parameters (taken from szAutorizedTypeParam)*/ char szMetaActionTypeParam[C_MAX_NB_META_ACTION_PARAM+1]; } tdstMetaActionEntry; tdstMetaActionEntry a_stMetaActionTable[eNbMetaAction] #if defined(OPTIMIZED_COMMAND) = { /* Procedure initialisation*/ #if defined (AI_USE_SCRIPT) #if defined(_AI_LIB_) #if defined(ACTIVE_EDITOR) #define M_DEFINE_METAACTION(a,b,english,c,d,e,f) { b,english,c,d,e,f }, #else #define M_DEFINE_METAACTION(a,b,english,c,d,e,f) { c,d,e,f }, #endif /* ACTIVE_EDITOR*/ #else #if defined(ACTIVE_EDITOR) #define M_DEFINE_METAACTION(a,b,english,c,d,e,f) { b,english,c,f }, #else #define M_DEFINE_METAACTION(a,b,english,c,d,e,f) { c,f }, #endif /* ACTIVE_EDITOR*/ #endif /* _AI_LIB_*/ #else /* AI_USE_SCRIPT */ #if defined(_AI_LIB_) #if defined(ACTIVE_EDITOR) #define M_DEFINE_METAACTION(a,b,english,c,d,e,f) { b,english,d,e,f }, #else #define M_DEFINE_METAACTION(a,b,english,c,d,e,f) { d,e,f }, #endif /* ACTIVE_EDITOR*/ #else #if defined(ACTIVE_EDITOR) #define M_DEFINE_METAACTION(a,b,english,c,d,e,f) { b,english,f }, #else #define M_DEFINE_METAACTION(a,b,english,c,d,e,f) { f }, #endif /* ACTIVE_EDITOR*/ #endif /* _AI_LIB_*/ #endif /* AI_USE_SCRIPT */ #include "DefAct.h" #undef M_DEFINE_METAACTION } #endif /* OPTIMIZED_COMMAND*/ ; #ifndef _FIRE_DEADCODE_U64_ /* Added by RUC */ enum tdeMetaActionId_ fn_eGetNbMetaAction() { return(eNbMetaAction); } #endif /* _FIRE_DEADCODE_U64_ */ /* Added by RUC */ char *szGetMetaActionTypeInParamFromId(enum tdeMetaActionId_ eMetaActionId) { return( a_stMetaActionTable[eMetaActionId].szMetaActionTypeParam); } #if defined(ACTIVE_EDITOR) char *szGetMetaActionTypeOutParamFromId(enum tdeMetaActionId_ eMetaActionId) { eMetaActionId=eMetaActionId; /* for lint*/ return(USE_NO_PARAM); } char *szGetMetaActionTypeParamFromId(enum tdeMetaActionId_ eMetaActionId) { return( a_stMetaActionTable[eMetaActionId].szMetaActionTypeParam); } enum tdeMetaActionId_ fn_eFindMetaActionIdFromEditorName(char *szMetaAction) { short wActionEntry; for(wActionEntry=0;wActionEntrylMaxLengthScriptName) { lMaxLengthScriptName=lLen; } #if defined(ACTIVE_EDITOR) if ((lLen=strlen(a_stMetaActionTable[wActionEntry].szMetaActionEditorName))>lMaxLengthEditorName) { lMaxLengthEditorName=lLen; } #endif /* ACTIVE_EDITOR*/ if ((lLen=strlen(a_stMetaActionTable[wActionEntry].szMetaActionTypeParam))>lMaxLengthParam) { lMaxLengthParam=lLen; } } #if !defined(U64) { if (lMaxLengthScriptName