#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "lua.h"
#include "lauxlib.h"
#include "lualib.h"
Go to the source code of this file.
|
| static int | collectargs (char **argv, int *pi, int *pv, int *pe) |
| |
| static int | docall (lua_State *L, int narg, int clear) |
| |
| int | dofile (lua_State *L, const char *name) |
| |
| static int | dolibrary (lua_State *L, const char *name) |
| |
| int | dostring (lua_State *L, const char *s, const char *name) |
| |
| void | dotty (lua_State *L) |
| |
| static const char * | get_prompt (lua_State *L, int firstline) |
| |
| static int | getargs (lua_State *L, char **argv, int n) |
| |
| static int | handle_luainit (lua_State *L) |
| |
| static int | handle_script (lua_State *L, char **argv, int n) |
| |
| static int | incomplete (lua_State *L, int status) |
| |
| void | l_message (const char *pname, const char *msg) |
| |
| static void | laction (int i) |
| |
| static int | loadline (lua_State *L) |
| |
| static void | lstop (lua_State *L, lua_Debug *ar) |
| |
| int | main_args (lua_State *L, int argc, char **argv) |
| |
| static int | pmain (lua_State *L) |
| |
| static void | print_quit_info (void) |
| |
| static void | print_usage (void) |
| |
| static void | print_version (void) |
| |
| static int | pushline (lua_State *L, int firstline) |
| |
| static int | report (lua_State *L, int status) |
| |
| static int | runargs (lua_State *L, char **argv, int n) |
| |
| static int | traceback (lua_State *L) |
| |
| #define notail |
( |
|
x | ) |
{if ((x)[2] != '\0') return -1;} |
| #define RTTLUA_BOILER "OROCOS RTTLua" |
| #define RTTLUA_VERSION "1.0-beta5" |
| static int collectargs |
( |
char ** |
argv, |
|
|
int * |
pi, |
|
|
int * |
pv, |
|
|
int * |
pe |
|
) |
| |
|
static |
| static int docall |
( |
lua_State * |
L, |
|
|
int |
narg, |
|
|
int |
clear |
|
) |
| |
|
static |
| int dofile |
( |
lua_State * |
L, |
|
|
const char * |
name |
|
) |
| |
| static int dolibrary |
( |
lua_State * |
L, |
|
|
const char * |
name |
|
) |
| |
|
static |
| int dostring |
( |
lua_State * |
L, |
|
|
const char * |
s, |
|
|
const char * |
name |
|
) |
| |
| static const char* get_prompt |
( |
lua_State * |
L, |
|
|
int |
firstline |
|
) |
| |
|
static |
| static int getargs |
( |
lua_State * |
L, |
|
|
char ** |
argv, |
|
|
int |
n |
|
) |
| |
|
static |
| static int handle_script |
( |
lua_State * |
L, |
|
|
char ** |
argv, |
|
|
int |
n |
|
) |
| |
|
static |
| static int incomplete |
( |
lua_State * |
L, |
|
|
int |
status |
|
) |
| |
|
static |
| void l_message |
( |
const char * |
pname, |
|
|
const char * |
msg |
|
) |
| |
| static void laction |
( |
int |
i | ) |
|
|
static |
| int main_args |
( |
lua_State * |
L, |
|
|
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
| static void print_quit_info |
( |
void |
| ) |
|
|
static |
| static void print_usage |
( |
void |
| ) |
|
|
static |
| static void print_version |
( |
void |
| ) |
|
|
static |
| static int pushline |
( |
lua_State * |
L, |
|
|
int |
firstline |
|
) |
| |
|
static |
| static int report |
( |
lua_State * |
L, |
|
|
int |
status |
|
) |
| |
|
static |
| static int runargs |
( |
lua_State * |
L, |
|
|
char ** |
argv, |
|
|
int |
n |
|
) |
| |
|
static |
| const char* progname = LUA_PROGNAME |
|
static |