aboutsummaryrefslogtreecommitdiff
path: root/manual
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2023-04-18 09:44:10 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2023-04-18 09:44:10 -0300
commite15f1f2bb7a38a3c94519294d031e48508d65006 (patch)
tree1528b4a73da045e4d1617c1a276e66c056ba7686 /manual
parentb5c65705ca78560cd2735778737122ea5f858bd0 (diff)
downloadlua-5.4.5.tar.gz
lua-5.4.5.tar.bz2
lua-5.4.5.zip
Detailsv5.4.5
Typos in comments and details in the manual.
Diffstat (limited to 'manual')
-rw-r--r--manual/manual.of8
1 files changed, 4 insertions, 4 deletions
diff --git a/manual/manual.of b/manual/manual.of
index 6d19e251..ac1d7e60 100644
--- a/manual/manual.of
+++ b/manual/manual.of
@@ -20,7 +20,7 @@ making it ideal for configuration, scripting,
20and rapid prototyping. 20and rapid prototyping.
21 21
22Lua is implemented as a library, written in @emphx{clean C}, 22Lua is implemented as a library, written in @emphx{clean C},
23the common subset of @N{Standard C} and C++. 23the common subset of @N{standard C} and C++.
24The Lua distribution includes a host program called @id{lua}, 24The Lua distribution includes a host program called @id{lua},
25which uses the Lua library to offer a complete, 25which uses the Lua library to offer a complete,
26standalone Lua interpreter, 26standalone Lua interpreter,
@@ -2963,7 +2963,7 @@ static void *l_alloc (void *ud, void *ptr, size_t osize,
2963 return realloc(ptr, nsize); 2963 return realloc(ptr, nsize);
2964} 2964}
2965} 2965}
2966Note that @N{Standard C} ensures 2966Note that @N{ISO C} ensures
2967that @T{free(NULL)} has no effect and that 2967that @T{free(NULL)} has no effect and that
2968@T{realloc(NULL,size)} is equivalent to @T{malloc(size)}. 2968@T{realloc(NULL,size)} is equivalent to @T{malloc(size)}.
2969 2969
@@ -5780,7 +5780,7 @@ with @id{tname} in the registry.
5780 5780
5781Creates a new Lua state. 5781Creates a new Lua state.
5782It calls @Lid{lua_newstate} with an 5782It calls @Lid{lua_newstate} with an
5783allocator based on the @N{standard C} allocation functions 5783allocator based on the @N{ISO C} allocation functions
5784and then sets a warning function and a panic function @see{C-error} 5784and then sets a warning function and a panic function @see{C-error}
5785that print messages to the standard error output. 5785that print messages to the standard error output.
5786 5786
@@ -6898,7 +6898,7 @@ including if necessary a path and an extension.
6898@id{funcname} must be the exact name exported by the @N{C library} 6898@id{funcname} must be the exact name exported by the @N{C library}
6899(which may depend on the @N{C compiler} and linker used). 6899(which may depend on the @N{C compiler} and linker used).
6900 6900
6901This function is not supported by @N{Standard C}. 6901This functionality is not supported by @N{ISO C}.
6902As such, it is only available on some platforms 6902As such, it is only available on some platforms
6903(Windows, Linux, Mac OS X, Solaris, BSD, 6903(Windows, Linux, Mac OS X, Solaris, BSD,
6904plus other Unix systems that support the @id{dlfcn} standard). 6904plus other Unix systems that support the @id{dlfcn} standard).