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));
static void *disptab[NUM_OPCODES] = {
static const void *const disptab[NUM_OPCODES] = {
#if 0
** 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
#define AUXMARK "\1" /* auxiliary mark */
/*
** 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
** (aligned according to 'UTString'; see next).
** Header for string value; string bytes follow the end of this structure.
*/
typedef struct TString {
CommonHeader;

2
lopcodes.c

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

3
lopnames.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

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

2
manual/manual.of

@ -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…
Cancel
Save