Macros | Functions | Variables
lua.c File Reference
#include "lprefix.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <signal.h>
#include "lua.h"
#include "lauxlib.h"
#include "lualib.h"
Include dependency graph for lua.c:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define EOFMARK   "<eof>"
 
#define has_e   8 /* -e */
 
#define has_E   16 /* -E */
 
#define has_error   1 /* bad option */
 
#define has_i   2 /* -i */
 
#define has_v   4 /* -v */
 
#define lua_c
 
#define lua_freeline(L, b)   { (void)L; (void)b; }
 
#define LUA_INIT_VAR   "LUA_INIT"
 
#define lua_initreadline(L)   ((void)L)
 
#define LUA_INITVARVERSION   LUA_INIT_VAR LUA_VERSUFFIX
 
#define LUA_MAXINPUT   512
 
#define LUA_PROGNAME   "lua"
 
#define LUA_PROMPT   "> "
 
#define LUA_PROMPT2   ">> "
 
#define lua_readline(L, b, p)
 
#define lua_saveline(L, line)   { (void)L; (void)line; }
 
#define lua_stdin_is_tty()   1 /* assume stdin is a tty */
 
#define marklen   (sizeof(EOFMARK)/sizeof(char) - 1)
 

Functions

static int addreturn (lua_State *L)
 
static int collectargs (char **argv, int *first)
 
static void createargtable (lua_State *L, char **argv, int argc, int script)
 
static int docall (lua_State *L, int narg, int nres)
 
static int dochunk (lua_State *L, int status)
 
static int dofile (lua_State *L, const char *name)
 
static int dolibrary (lua_State *L, const char *name)
 
static void doREPL (lua_State *L)
 
static int dostring (lua_State *L, const char *s, const char *name)
 
static const char * get_prompt (lua_State *L, int firstline)
 
static int handle_luainit (lua_State *L)
 
static int handle_script (lua_State *L, char **argv)
 
static int incomplete (lua_State *L, int status)
 
static void l_message (const char *pname, const char *msg)
 
static void l_print (lua_State *L)
 
static void laction (int i)
 
static int loadline (lua_State *L)
 
static void lstop (lua_State *L, lua_Debug *ar)
 
int main (int argc, char **argv)
 
static int msghandler (lua_State *L)
 
static int multiline (lua_State *L)
 
static int pmain (lua_State *L)
 
static void print_usage (const char *badoption)
 
static void print_version (void)
 
static int pushargs (lua_State *L)
 
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)
 

Variables

static lua_StateglobalL = NULL
 
static const char * progname = LUA_PROGNAME
 

Macro Definition Documentation

#define EOFMARK   "<eof>"

Definition at line 430 of file lua.c.

#define has_e   8 /* -e */

Definition at line 238 of file lua.c.

#define has_E   16 /* -E */

Definition at line 239 of file lua.c.

#define has_error   1 /* bad option */

Definition at line 235 of file lua.c.

#define has_i   2 /* -i */

Definition at line 236 of file lua.c.

#define has_v   4 /* -v */

Definition at line 237 of file lua.c.

#define lua_c

Definition at line 7 of file lua.c.

#define lua_freeline (   L,
 
)    { (void)L; (void)b; }

Definition at line 411 of file lua.c.

#define LUA_INIT_VAR   "LUA_INIT"

Definition at line 29 of file lua.c.

#define lua_initreadline (   L)    ((void)L)

Definition at line 406 of file lua.c.

#define LUA_INITVARVERSION   LUA_INIT_VAR LUA_VERSUFFIX

Definition at line 32 of file lua.c.

#define LUA_MAXINPUT   512

Definition at line 355 of file lua.c.

#define LUA_PROGNAME   "lua"

Definition at line 25 of file lua.c.

#define LUA_PROMPT   "> "

Definition at line 350 of file lua.c.

#define LUA_PROMPT2   ">> "

Definition at line 351 of file lua.c.

#define lua_readline (   L,
  b,
 
)
Value:
((void)L, fputs(p, stdout), fflush(stdout), /* show prompt */ \
fgets(b, LUA_MAXINPUT, stdin) != NULL) /* get line */
j template void())
Definition: json.hpp:3707
#define LUA_MAXINPUT
Definition: lua.c:355

Definition at line 407 of file lua.c.

#define lua_saveline (   L,
  line 
)    { (void)L; (void)line; }

Definition at line 410 of file lua.c.

#define lua_stdin_is_tty ( )    1 /* assume stdin is a tty */

Definition at line 380 of file lua.c.

#define marklen   (sizeof(EOFMARK)/sizeof(char) - 1)

Definition at line 431 of file lua.c.

Function Documentation

static int addreturn ( lua_State L)
static

Definition at line 480 of file lua.c.

static int collectargs ( char **  argv,
int *  first 
)
static

Definition at line 248 of file lua.c.

static void createargtable ( lua_State L,
char **  argv,
int  argc,
int  script 
)
static

Definition at line 160 of file lua.c.

static int docall ( lua_State L,
int  narg,
int  nres 
)
static

Definition at line 132 of file lua.c.

static int dochunk ( lua_State L,
int  status 
)
static

Definition at line 173 of file lua.c.

static int dofile ( lua_State L,
const char *  name 
)
static

Definition at line 179 of file lua.c.

static int dolibrary ( lua_State L,
const char *  name 
)
static

Definition at line 193 of file lua.c.

static void doREPL ( lua_State L)
static

Definition at line 553 of file lua.c.

static int dostring ( lua_State L,
const char *  s,
const char *  name 
)
static

Definition at line 184 of file lua.c.

static const char* get_prompt ( lua_State L,
int  firstline 
)
static

Definition at line 421 of file lua.c.

static int handle_luainit ( lua_State L)
static

Definition at line 328 of file lua.c.

static int handle_script ( lua_State L,
char **  argv 
)
static

Definition at line 220 of file lua.c.

static int incomplete ( lua_State L,
int  status 
)
static

Definition at line 439 of file lua.c.

static void l_message ( const char *  pname,
const char *  msg 
)
static

Definition at line 89 of file lua.c.

static void l_print ( lua_State L)
static

Definition at line 536 of file lua.c.

static void laction ( int  i)
static

Definition at line 56 of file lua.c.

static int loadline ( lua_State L)
static

Definition at line 520 of file lua.c.

static void lstop ( lua_State L,
lua_Debug ar 
)
static

Definition at line 43 of file lua.c.

int main ( int  argc,
char **  argv 
)

Definition at line 619 of file lua.c.

static int msghandler ( lua_State L)
static

Definition at line 113 of file lua.c.

static int multiline ( lua_State L)
static

Definition at line 498 of file lua.c.

static int pmain ( lua_State L)
static

Definition at line 576 of file lua.c.

static void print_usage ( const char *  badoption)
static

Definition at line 63 of file lua.c.

static void print_version ( void  )
static

Definition at line 146 of file lua.c.

static int pushargs ( lua_State L)
static

Definition at line 207 of file lua.c.

static int pushline ( lua_State L,
int  firstline 
)
static

Definition at line 455 of file lua.c.

static int report ( lua_State L,
int  status 
)
static

Definition at line 100 of file lua.c.

static int runargs ( lua_State L,
char **  argv,
int  n 
)
static

Definition at line 302 of file lua.c.

Variable Documentation

lua_State* globalL = NULL
static

Definition at line 35 of file lua.c.

const char* progname = LUA_PROGNAME
static

Definition at line 37 of file lua.c.



plotjuggler
Author(s): Davide Faconti
autogenerated on Sun Dec 6 2020 04:02:49