mirror of
https://github.com/reactos/reactos.git
synced 2025-08-08 09:33:02 +00:00
update SVN properties
svn path=/trunk/; revision=17143
This commit is contained in:
parent
100b8232d0
commit
4f8cc9596c
69 changed files with 14676 additions and 14676 deletions
|
@ -1,65 +1,65 @@
|
|||
////////////////////////////////////////////////
|
||||
//
|
||||
// package.hpp
|
||||
// Header for the script stuff
|
||||
////////////////////////////////////////////////
|
||||
|
||||
#include <vector>
|
||||
#include <string>
|
||||
|
||||
using namespace std;
|
||||
|
||||
|
||||
/* Structs */
|
||||
|
||||
typedef struct
|
||||
{
|
||||
string name;
|
||||
int start, end;
|
||||
|
||||
} SUB;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
vector<string> code;
|
||||
vector<SUB> 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
|
||||
////////////////////////////////////////////////
|
||||
//
|
||||
// package.hpp
|
||||
// Header for the script stuff
|
||||
////////////////////////////////////////////////
|
||||
|
||||
#include <vector>
|
||||
#include <string>
|
||||
|
||||
using namespace std;
|
||||
|
||||
|
||||
/* Structs */
|
||||
|
||||
typedef struct
|
||||
{
|
||||
string name;
|
||||
int start, end;
|
||||
|
||||
} SUB;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
vector<string> code;
|
||||
vector<SUB> 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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue