$search
#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-beta5" |
#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 268 of file lua-repl.c.
#define RTTLUA_BOILER "OROCOS RTTLua" |
Definition at line 28 of file lua-repl.c.
#define RTTLUA_VERSION "1.0-beta5" |
Definition at line 30 of file lua-repl.c.
#define STR | ( | x | ) | #x |
Definition at line 32 of file lua-repl.c.
#define XSTR | ( | x | ) | STR(x) |
Definition at line 31 of file lua-repl.c.
static int collectargs | ( | char ** | argv, | |
int * | pi, | |||
int * | pv, | |||
int * | pe | |||
) | [static] |
Definition at line 271 of file lua-repl.c.
static int docall | ( | lua_State * | L, | |
int | narg, | |||
int | clear | |||
) | [static] |
Definition at line 106 of file lua-repl.c.
int dofile | ( | lua_State * | L, | |
const char * | name | |||
) |
Definition at line 146 of file lua-repl.c.
static int dolibrary | ( | lua_State * | L, | |
const char * | name | |||
) | [static] |
Definition at line 157 of file lua-repl.c.
int dostring | ( | lua_State * | L, | |
const char * | s, | |||
const char * | name | |||
) |
Definition at line 152 of file lua-repl.c.
void dotty | ( | lua_State * | L | ) |
Definition at line 226 of file lua-repl.c.
static const char* get_prompt | ( | lua_State * | L, | |
int | firstline | |||
) | [static] |
Definition at line 163 of file lua-repl.c.
static int getargs | ( | lua_State * | L, | |
char ** | argv, | |||
int | n | |||
) | [static] |
Definition at line 128 of file lua-repl.c.
static int handle_luainit | ( | lua_State * | L | ) | [static] |
Definition at line 333 of file lua-repl.c.
static int handle_script | ( | lua_State * | L, | |
char ** | argv, | |||
int | n | |||
) | [static] |
Definition at line 249 of file lua-repl.c.
static int incomplete | ( | lua_State * | L, | |
int | status | |||
) | [static] |
Definition at line 173 of file lua-repl.c.
void l_message | ( | const char * | pname, | |
const char * | msg | |||
) |
Definition at line 68 of file lua-repl.c.
static void laction | ( | int | i | ) | [static] |
Definition at line 47 of file lua-repl.c.
static int loadline | ( | lua_State * | L | ) | [static] |
Definition at line 206 of file lua-repl.c.
Definition at line 40 of file lua-repl.c.
int main_args | ( | lua_State * | L, | |
int | argc, | |||
char ** | argv | |||
) |
Definition at line 405 of file lua-repl.c.
static int pmain | ( | lua_State * | L | ) | [static] |
Definition at line 350 of file lua-repl.c.
static void print_quit_info | ( | void | ) | [static] |
Definition at line 124 of file lua-repl.c.
static void print_usage | ( | void | ) | [static] |
Definition at line 53 of file lua-repl.c.
static void print_version | ( | void | ) | [static] |
Definition at line 120 of file lua-repl.c.
static int pushline | ( | lua_State * | L, | |
int | firstline | |||
) | [static] |
Definition at line 187 of file lua-repl.c.
static int report | ( | lua_State * | L, | |
int | status | |||
) | [static] |
Definition at line 75 of file lua-repl.c.
static int runargs | ( | lua_State * | L, | |
char ** | argv, | |||
int | n | |||
) | [static] |
Definition at line 304 of file lua-repl.c.
static int traceback | ( | lua_State * | L | ) | [static] |
Definition at line 86 of file lua-repl.c.
Definition at line 34 of file lua-repl.c.
const char* progname = LUA_PROGNAME [static] |
Definition at line 36 of file lua-repl.c.