这是一个开放源代码的与WINNT/WIN2K/WIN2003兼容的操作系统

源代码在线查看: script.h

软件大小: 23539 K
上传用户: hwyzy
关键词: WIN WINNT 2003 开放源代码
下载地址: 免注册下载 普通下载 VIP

相关代码

				////////////////////////////////////////////////
				//
				// package.hpp
				//				   Header for the script stuff
				////////////////////////////////////////////////
				
				#include 
				#include 
				
				using namespace std;
				
				
				/* Structs */
				
				typedef struct
				{
				  string name;
				  int start, end;
				
				} SUB;
				
				typedef struct
				{
				  vector code;
				  vector subs;
				
				} SCRIPT;
				
				
				/* Prototypes */
				
				int RPS_Load (SCRIPT** script, const char* path);
				int RPS_Execute (SCRIPT* script, const char* function);
				int RPS_getVar (const char* name);
				void RPS_Clear (SCRIPT* script);
				
				
				/* Callbacks */
				
				typedef int (*FUNC_PROC)(int, char**); // function callback
				
				
				/* Function table */
				
				typedef struct
				{
				  char* name;
				  FUNC_PROC function;
				} FUNC_TABLE;
				
				// very function is listed in there 
				extern const FUNC_TABLE FuncTable[];
				
				// count of functions
				#define FUNC_COUNT 3
				
				
				/* For the helper-funtions */
				
				#define STR_NO    0x1;
				#define STR_ONLY  0x0;
				#define STR_YES   0x2;
				
				// ^^ I would write down here that they 
				// mean but I don't know anymore myself :O
							

相关资源