native Lua  0.4.0
Lua on the platform you use with the compiler you choose
Macros | Functions
lua.c File Reference
#include "lprefix.h"
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "lua.h"
#include "lauxlib.h"
#include "lualib.h"
#include "config.h"
Include dependency graph for lua.c:

Macros

#define lua_c
 
#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_VERSUFFIX
 
#define lua_stdin_is_tty()   1 /* assume stdin is a tty */
 
#define lua_readline(L, b, p)
 
#define lua_saveline(L, line)   { (void)L; (void)line; }
 
#define lua_freeline(L, b)   { (void)L; (void)b; }
 
#define EOFMARK   "<eof>"
 
#define marklen   (sizeof(EOFMARK)/sizeof(char) - 1)
 
#define has_error   1 /* bad option */
 
#define has_i   2 /* -i */
 
#define has_v   4 /* -v */
 
#define has_e   8 /* -e */
 
#define has_E   16 /* -E */
 

Functions

int main (int argc, char **argv)
 

Macro Definition Documentation

◆ EOFMARK

#define EOFMARK   "<eof>"

◆ has_e

#define has_e   8 /* -e */

◆ has_E

#define has_E   16 /* -E */

◆ has_error

#define has_error   1 /* bad option */

◆ has_i

#define has_i   2 /* -i */

◆ has_v

#define has_v   4 /* -v */

◆ lua_c

#define lua_c

◆ lua_freeline

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

◆ LUA_INIT_VAR

#define LUA_INIT_VAR   "LUA_INIT"

◆ LUA_INITVARVERSION

#define LUA_INITVARVERSION   LUA_INIT_VAR LUA_VERSUFFIX

◆ LUA_MAXINPUT

#define LUA_MAXINPUT   512

◆ LUA_PROGNAME

#define LUA_PROGNAME   "lua"

◆ LUA_PROMPT

#define LUA_PROMPT   "> "

◆ LUA_PROMPT2

#define LUA_PROMPT2   ">> "

◆ lua_readline

#define lua_readline (   L,
  b,
 
)
Value:
((void)L, fputs(p, stdout), fflush(stdout), /* show prompt */ \
fgets(b, LUA_MAXINPUT, stdin) != NULL) /* get line */

◆ lua_saveline

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

◆ lua_stdin_is_tty

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

◆ marklen

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

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)
LUA_MAXINPUT
#define LUA_MAXINPUT
Definition: lua.c:36