|
KallistiOS git master
Independent SDK for the Sega Dreamcast
|
#include <stdio.h>#include <stdlib.h>#include <string.h>#include "lua.h"#include "lauxlib.h"#include "lualib.h"#include <kos/dbgio.h>#include <dc/maple.h>#include <dc/maple/keyboard.h>#include <dc/maple/controller.h>Macros | |
| #define | lua_c |
| #define | lua_readline(L, b, p) |
| #define | lua_saveline(L, idx) |
| #define | lua_freeline(L, b) |
| #define | lua_stdin_is_tty() |
| #define | LUA_PROMPT "> " |
| #define | LUA_PROMPT2 ">> " |
| #define | LUA_PROGNAME "lua" |
| #define | LUA_MAXINPUT 512 |
| #define | LUA_INIT_VAR "LUA_INIT" |
| #define | LUA_INITVARVERSION LUA_INIT_VAR "_" LUA_VERSION_MAJOR "_" LUA_VERSION_MINOR |
| #define | EOFMARK "<eof>" |
| #define | marklen (sizeof(EOFMARK)/sizeof(char) - 1) |
Functions | |
| void | cont_cb (uint8_t addr, uint32_t btns) |
| static int | kbd_readline (char *buf, int len) |
| static void | l_message (const char *pname, const char *msg) |
| static int | report (lua_State *L, int status) |
| static int | msghandler (lua_State *L) |
| static int | docall (lua_State *L, int narg, int nres) |
| static void | print_version (void) |
| static const char * | get_prompt (lua_State *L, int firstline) |
| static int | incomplete (lua_State *L, int status) |
| static int | pushline (lua_State *L, int firstline) |
| static int | addreturn (lua_State *L) |
| static int | multiline (lua_State *L) |
| static int | loadline (lua_State *L) |
| static void | l_print (lua_State *L) |
| static void | doREPL (lua_State *L) |
| static int | pmain (lua_State *L) |
| int | main (int argc, char **argv) |
Variables | |
| static lua_State * | globalL = NULL |
| static const char * | progname = LUA_PROGNAME |
| #define EOFMARK "<eof>" |
Referenced by incomplete().
| #define lua_c |
| #define lua_freeline | ( | L, | |
| b ) |
Referenced by pushline().
| #define LUA_INIT_VAR "LUA_INIT" |
| #define LUA_INITVARVERSION LUA_INIT_VAR "_" LUA_VERSION_MAJOR "_" LUA_VERSION_MINOR |
| #define LUA_MAXINPUT 512 |
Referenced by pushline().
| #define LUA_PROGNAME "lua" |
| #define LUA_PROMPT "> " |
Referenced by get_prompt().
| #define LUA_PROMPT2 ">> " |
Referenced by get_prompt().
| #define lua_readline | ( | L, | |
| b, | |||
| p ) |
Referenced by pushline().
| #define lua_saveline | ( | L, | |
| idx ) |
Referenced by loadline().
| #define lua_stdin_is_tty | ( | ) |
| #define marklen (sizeof(EOFMARK)/sizeof(char) - 1) |
Referenced by incomplete().
|
static |
Referenced by loadline().
|
static |
References globalL, and msghandler().
Referenced by doREPL().
|
static |
|
static |
References LUA_PROMPT, LUA_PROMPT2, and NULL.
Referenced by pushline().
|
static |
References EOFMARK, and marklen.
Referenced by multiline().
|
static |
References fflush, kbd_queue_pop(), maple_enum_type(), MAPLE_FUNC_KEYBOARD, pos, and printf.
|
static |
|
static |
References l_message(), and progname.
Referenced by doREPL().
|
static |
References addreturn(), lua_saveline, multiline(), and pushline().
Referenced by doREPL().
| int main | ( | int | argc, |
| char ** | argv ) |
References cont_btn_callback(), cont_cb(), CONT_START, dbgio_dev_select(), l_message(), NULL, pmain(), and report().
|
static |
References incomplete(), and pushline().
Referenced by loadline().
|
static |
References doREPL(), and print_version().
Referenced by main().
|
static |
Referenced by pmain().
|
static |
References buffer, get_prompt(), l, lua_freeline, LUA_MAXINPUT, and lua_readline.
Referenced by loadline(), and multiline().
|
static |
References l_message(), and progname.
|
static |