diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2023-04-18 09:44:10 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2023-04-18 09:44:10 -0300 |
commit | e15f1f2bb7a38a3c94519294d031e48508d65006 (patch) | |
tree | 1528b4a73da045e4d1617c1a276e66c056ba7686 /manual | |
parent | b5c65705ca78560cd2735778737122ea5f858bd0 (diff) | |
download | lua-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.of | 8 |
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, | |||
20 | and rapid prototyping. | 20 | and rapid prototyping. |
21 | 21 | ||
22 | Lua is implemented as a library, written in @emphx{clean C}, | 22 | Lua is implemented as a library, written in @emphx{clean C}, |
23 | the common subset of @N{Standard C} and C++. | 23 | the common subset of @N{standard C} and C++. |
24 | The Lua distribution includes a host program called @id{lua}, | 24 | The Lua distribution includes a host program called @id{lua}, |
25 | which uses the Lua library to offer a complete, | 25 | which uses the Lua library to offer a complete, |
26 | standalone Lua interpreter, | 26 | standalone 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 | } |
2966 | Note that @N{Standard C} ensures | 2966 | Note that @N{ISO C} ensures |
2967 | that @T{free(NULL)} has no effect and that | 2967 | that @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 | ||
5781 | Creates a new Lua state. | 5781 | Creates a new Lua state. |
5782 | It calls @Lid{lua_newstate} with an | 5782 | It calls @Lid{lua_newstate} with an |
5783 | allocator based on the @N{standard C} allocation functions | 5783 | allocator based on the @N{ISO C} allocation functions |
5784 | and then sets a warning function and a panic function @see{C-error} | 5784 | and then sets a warning function and a panic function @see{C-error} |
5785 | that print messages to the standard error output. | 5785 | that 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 | ||
6901 | This function is not supported by @N{Standard C}. | 6901 | This functionality is not supported by @N{ISO C}. |
6902 | As such, it is only available on some platforms | 6902 | As such, it is only available on some platforms |
6903 | (Windows, Linux, Mac OS X, Solaris, BSD, | 6903 | (Windows, Linux, Mac OS X, Solaris, BSD, |
6904 | plus other Unix systems that support the @id{dlfcn} standard). | 6904 | plus other Unix systems that support the @id{dlfcn} standard). |