Skip to content

Commit c4b71b7

Browse files
committed
Details
Comments in 'onelua.c'
1 parent 1de2f31 commit c4b71b7

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

onelua.c

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
/*
2-
* one.c -- Lua core, libraries, and interpreter in a single file
2+
** Lua core, libraries, and interpreter in a single file.
3+
** Compiling just this file generates a complete Lua stand-alone
4+
** program:
5+
**
6+
** $ gcc -O2 -std=c99 -o lua onelua.c -lm
7+
**
8+
** or
9+
**
10+
** $ gcc -O2 -std=c89 -DLUA_USE_C89 -o lua onelua.c -lm
11+
**
312
*/
413

514
/* default is to build the full interpreter */
@@ -11,15 +20,20 @@
1120
#endif
1221
#endif
1322

14-
/* choose suitable platform-specific features */
15-
/* some of these may need extra libraries such as -ldl -lreadline -lncurses */
23+
24+
/*
25+
** Choose suitable platform-specific features. Default is no
26+
** platform-specific features. Some of these options may need extra
27+
** libraries such as -ldl -lreadline -lncurses
28+
*/
1629
#if 0
1730
#define LUA_USE_LINUX
1831
#define LUA_USE_MACOSX
1932
#define LUA_USE_POSIX
2033
#define LUA_ANSI
2134
#endif
2235

36+
2337
/* no need to change anything below this line ----------------------------- */
2438

2539
#include "lprefix.h"

0 commit comments

Comments
 (0)