Browse Source

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.
pull/24/head
Roberto Ierusalimschy 5 years ago
parent
commit
0ddc0f47bd
  1. 2
      ljumptab.h
  2. 2
      loadlib.c
  3. 3
      lobject.h
  4. 2
      lopcodes.c
  5. 3
      lopnames.h
  6. 2
      lvm.h
  7. 2
      manual/manual.of

2
ljumptab.h

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

2
loadlib.c

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

3
lobject.h

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

2
lopcodes.c

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

3
lopnames.h

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

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

2
manual/manual.of

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

Loading…
Cancel
Save