Commits

Laurens Rodriguez committed 33ea803

klex.c: some changes from Lua 5.2.2

  • Participants
  • Parent commits 47c0cb7

Comments (0)

Files changed (2)

File extra/killa/compare.pl

         $line =~ s/killa_isspace/lisspace/g;
         $line =~ s/killa_islalpha/lislalpha/g;
         $line =~ s/killa_islalnum/lislalnum/g;
+        $line =~ s/killa_uint32/lu_int32/g;
+        $line =~ s/killa_umem/lu_mem/g;
+        $line =~ s/killa_mem/l_mem/g;
+        $line =~ s/killa_Umaxalign/L_Umaxalign/g;
+        $line =~ s/killa_uacNumber/l_uacNumber/g;
+        $line =~ s/killa_IntPoint/IntPoint/g;
 
         $line =~ s/KILLA_REFNULL/LUA_REFNIL/g;
         $line =~ s/KILLA_MAXSTACK/MAXSTACK/g;
         $line =~ s/KILLA_NUM_RESERVED/NUM_RESERVED/g;
         $line =~ s/KILLA_MAX_SIZET/MAX_SIZET/g;
         $line =~ s/KILLA_EOZ/EOZ/g;
+        $line =~ s/KILLA_MAX_LUMEM/MAX_LUMEM/g;
+        $line =~ s/KILLA_MAX_LMEM/MAX_LMEM/g;
+        $line =~ s/KILLA_MINSTRTABSIZE/MINSTRTABSIZE/g;
 
         $line =~ s/OP_LOADNULL/OP_LOADNIL/g;
         $line =~ s/null/nil/g;

File src/libraries/killa/klimits.h

 
 #define KILLA_MAX_LUMEM	((killa_umem)(~(killa_umem)0)-2)
 
+#define KILLA_MAX_LMEM	((killa_mem) ((KILLA_MAX_LUMEM >> 1) - 2))
 
 #define KILLA_MAX_INT (INT_MAX-2)  /* maximum value of an int (-2 for safety) */
 
 
 /*
 ** maximum depth for nested C calls and syntactical nested non-terminals
-** in a program. (killa_Value must fit in an unsigned short int.)
+** in a program. (Value must fit in an unsigned short int.)
 */
 #if !defined(KILLAI_MAXCCALLS)
 #define KILLAI_MAXCCALLS    200
 #endif
 
 /*
-** maximum number of upvalues in a closure (both C and Killa). (killa_Value
+** maximum number of upvalues in a closure (both C and Killa). (Value
 ** must fit in an unsigned char.)
 */
 #define KILLA_MAXUPVAL  UCHAR_MAX