summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2023-03-09 11:12:11 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2023-03-09 11:12:11 -0300
commitc4b71b7ba0dee419b5bda1ec297eca8e42c9f1d2 (patch)
treedc3d7968a10cf11192335729a8ae40fe788c0759
parent1de2f31694ddbc86b18e491c8aedc91791f512e2 (diff)
downloadlua-github-c4b71b7ba0dee419b5bda1ec297eca8e42c9f1d2.tar.gz
Details
Comments in 'onelua.c'
-rw-r--r--onelua.c20
1 files changed, 17 insertions, 3 deletions
diff --git a/onelua.c b/onelua.c
index 3c605981..2a434961 100644
--- a/onelua.c
+++ b/onelua.c
@@ -1,5 +1,14 @@
/*
-* one.c -- Lua core, libraries, and interpreter in a single file
+** Lua core, libraries, and interpreter in a single file.
+** Compiling just this file generates a complete Lua stand-alone
+** program:
+**
+** $ gcc -O2 -std=c99 -o lua onelua.c -lm
+**
+** or
+**
+** $ gcc -O2 -std=c89 -DLUA_USE_C89 -o lua onelua.c -lm
+**
*/
/* default is to build the full interpreter */
@@ -11,8 +20,12 @@
#endif
#endif
-/* choose suitable platform-specific features */
-/* some of these may need extra libraries such as -ldl -lreadline -lncurses */
+
+/*
+** Choose suitable platform-specific features. Default is no
+** platform-specific features. Some of these options may need extra
+** libraries such as -ldl -lreadline -lncurses
+*/
#if 0
#define LUA_USE_LINUX
#define LUA_USE_MACOSX
@@ -20,6 +33,7 @@
#define LUA_ANSI
#endif
+
/* no need to change anything below this line ----------------------------- */
#include "lprefix.h"