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:
Roberto Ierusalimschy 2020-04-23 14:48:15 -03:00
parent cac075a122
commit 0ddc0f47bd
12 changed files with 22 additions and 24 deletions

View file

@ -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:

View file

@ -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

View file

@ -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;

View file

@ -10,8 +10,6 @@
#include "lprefix.h"
#include <stddef.h>
#include "lopcodes.h"

View file

@ -7,6 +7,9 @@
#if !defined(lopnames_h)
#define lopnames_h
#include <stddef.h>
/* ORDER OP */
static const char *const opnames[] = {

2
lvm.h
View file

@ -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;

View file

@ -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).
}