#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.
Classes | |
struct | Smain |
Defines | |
#define | lua_c |
#define | notail(x) {if ((x)[2] != '\0') return -1;} |
#define | RTTLUA_BOILER "OROCOS RTTLua" |
#define | RTTLUA_VERSION "1.0-beta3" |
#define | STR(x) #x |
#define | XSTR(x) STR(x) |
Functions | |
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) |
Variables | |
static lua_State * | globalL = NULL |
static const char * | progname = LUA_PROGNAME |
#define lua_c |
Definition at line 18 of file lua-repl.c.
#define notail | ( | x | ) | {if ((x)[2] != '\0') return -1;} |
Definition at line 264 of file lua-repl.c.
#define RTTLUA_BOILER "OROCOS RTTLua" |
Definition at line 25 of file lua-repl.c.
#define RTTLUA_VERSION "1.0-beta3" |
Definition at line 26 of file lua-repl.c.
#define STR | ( | x | ) | #x |
Definition at line 28 of file lua-repl.c.
#define XSTR | ( | x | ) | STR(x) |
Definition at line 27 of file lua-repl.c.
static int collectargs | ( | char ** | argv, | |
int * | pi, | |||
int * | pv, | |||
int * | pe | |||
) | [static] |
Definition at line 267 of file lua-repl.c.
static int docall | ( | lua_State * | L, | |
int | narg, | |||
int | clear | |||
) | [static] |
Definition at line 102 of file lua-repl.c.
int dofile | ( | lua_State * | L, | |
const char * | name | |||
) |
Definition at line 142 of file lua-repl.c.
static int dolibrary | ( | lua_State * | L, | |
const char * | name | |||
) | [static] |
Definition at line 153 of file lua-repl.c.
int dostring | ( | lua_State * | L, | |
const char * | s, | |||
const char * | name | |||
) |
Definition at line 148 of file lua-repl.c.
void dotty | ( | lua_State * | L | ) |
Definition at line 222 of file lua-repl.c.
static const char* get_prompt | ( | lua_State * | L, | |
int | firstline | |||
) | [static] |
Definition at line 159 of file lua-repl.c.
static int getargs | ( | lua_State * | L, | |
char ** | argv, | |||
int | n | |||
) | [static] |
Definition at line 124 of file lua-repl.c.
static int handle_luainit | ( | lua_State * | L | ) | [static] |
Definition at line 329 of file lua-repl.c.
static int handle_script | ( | lua_State * | L, | |
char ** | argv, | |||
int | n | |||
) | [static] |
Definition at line 245 of file lua-repl.c.
static int incomplete | ( | lua_State * | L, | |
int | status | |||
) | [static] |
Definition at line 169 of file lua-repl.c.
void l_message | ( | const char * | pname, | |
const char * | msg | |||
) |
Definition at line 64 of file lua-repl.c.
static void laction | ( | int | i | ) | [static] |
Definition at line 43 of file lua-repl.c.
static int loadline | ( | lua_State * | L | ) | [static] |
Definition at line 202 of file lua-repl.c.
Definition at line 36 of file lua-repl.c.
int main_args | ( | lua_State * | L, | |
int | argc, | |||
char ** | argv | |||
) |
Definition at line 401 of file lua-repl.c.
static int pmain | ( | lua_State * | L | ) | [static] |
Definition at line 346 of file lua-repl.c.
static void print_quit_info | ( | void | ) | [static] |
Definition at line 120 of file lua-repl.c.
static void print_usage | ( | void | ) | [static] |
Definition at line 49 of file lua-repl.c.
static void print_version | ( | void | ) | [static] |
Definition at line 116 of file lua-repl.c.
static int pushline | ( | lua_State * | L, | |
int | firstline | |||
) | [static] |
Definition at line 183 of file lua-repl.c.
static int report | ( | lua_State * | L, | |
int | status | |||
) | [static] |
Definition at line 71 of file lua-repl.c.
static int runargs | ( | lua_State * | L, | |
char ** | argv, | |||
int | n | |||
) | [static] |
Definition at line 300 of file lua-repl.c.
static int traceback | ( | lua_State * | L | ) | [static] |
Definition at line 82 of file lua-repl.c.
Definition at line 30 of file lua-repl.c.
const char* progname = LUA_PROGNAME [static] |
Definition at line 32 of file lua-repl.c.