mirror of
https://github.com/lua/lua.git
synced 2025-07-03 22:53:26 +00:00
Several details about 5.4.0 rc1
Corrected several small details: added 'const', adjusts in tabs x spaces, removed unused #includes and #defines, misspellings, etc.
This commit is contained in:
parent
cac075a122
commit
0ddc0f47bd
12 changed files with 22 additions and 24 deletions
|
@ -16,7 +16,7 @@
|
|||
#define vmbreak vmfetch(); vmdispatch(GET_OPCODE(i));
|
||||
|
||||
|
||||
static void *disptab[NUM_OPCODES] = {
|
||||
static const void *const disptab[NUM_OPCODES] = {
|
||||
|
||||
#if 0
|
||||
** you can update the following list with this command:
|
||||
|
|
|
@ -269,8 +269,6 @@ static lua_CFunction lsys_sym (lua_State *L, void *lib, const char *sym) {
|
|||
#endif
|
||||
|
||||
|
||||
#define AUXMARK "\1" /* auxiliary mark */
|
||||
|
||||
|
||||
/*
|
||||
** return registry.LUA_NOENV as a boolean
|
||||
|
|
|
@ -356,8 +356,7 @@ typedef struct GCObject {
|
|||
|
||||
|
||||
/*
|
||||
** Header for string value; string bytes follow the end of this structure
|
||||
** (aligned according to 'UTString'; see next).
|
||||
** Header for string value; string bytes follow the end of this structure.
|
||||
*/
|
||||
typedef struct TString {
|
||||
CommonHeader;
|
||||
|
|
|
@ -10,8 +10,6 @@
|
|||
#include "lprefix.h"
|
||||
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
#include "lopcodes.h"
|
||||
|
||||
|
||||
|
|
|
@ -7,6 +7,9 @@
|
|||
#if !defined(lopnames_h)
|
||||
#define lopnames_h
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
|
||||
/* ORDER OP */
|
||||
|
||||
static const char *const opnames[] = {
|
||||
|
|
2
lvm.h
2
lvm.h
|
@ -43,7 +43,7 @@
|
|||
typedef enum {
|
||||
F2Ieq, /* no rounding; accepts only integral values */
|
||||
F2Ifloor, /* takes the floor of the number */
|
||||
F2Iceil, /* takes the ceil of the number */
|
||||
F2Iceil /* takes the ceil of the number */
|
||||
} F2Imod;
|
||||
|
||||
|
||||
|
|
|
@ -9013,7 +9013,7 @@ not a float.
|
|||
Literal decimal integer constants that overflow are read as floats,
|
||||
instead of wrapping around.
|
||||
You can use hexadecimal notation for such constants if you
|
||||
want the old bevhavior
|
||||
want the old behavior
|
||||
(reading them as integers with wrap around).
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue