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)); #define vmbreak vmfetch(); vmdispatch(GET_OPCODE(i));
static void *disptab[NUM_OPCODES] = { static const void *const disptab[NUM_OPCODES] = {
#if 0 #if 0
** you can update the following list with this command: ** 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 #endif
#define AUXMARK "\1" /* auxiliary mark */
/* /*
** return registry.LUA_NOENV as a boolean ** 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 ** Header for string value; string bytes follow the end of this structure.
** (aligned according to 'UTString'; see next).
*/ */
typedef struct TString { typedef struct TString {
CommonHeader; CommonHeader;

View File

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

View File

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

2
lvm.h
View File

@@ -43,7 +43,7 @@
typedef enum { typedef enum {
F2Ieq, /* no rounding; accepts only integral values */ F2Ieq, /* no rounding; accepts only integral values */
F2Ifloor, /* takes the floor of the number */ F2Ifloor, /* takes the floor of the number */
F2Iceil, /* takes the ceil of the number */ F2Iceil /* takes the ceil of the number */
} F2Imod; } F2Imod;

View File

@@ -9013,7 +9013,7 @@ not a float.
Literal decimal integer constants that overflow are read as floats, Literal decimal integer constants that overflow are read as floats,
instead of wrapping around. instead of wrapping around.
You can use hexadecimal notation for such constants if you 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). (reading them as integers with wrap around).
} }