2017-09-08 16:00 UTC Viktor Szakats (vszakats users.noreply.github.com)
* *
* partial sync with the 3.4 fork codebase. These are the things
synces for the most part:
- copyright headers
- grammar/typos in comments and some readmes
- comment/whitespace/decorations
- variable scoping in C files
- DO CASE/SWITCH and some other alternate syntax usage
- minimal amount of human readable text in strings
- minor code updates
- HB_TRACE() void * casts for pointers and few other changes to
avoid C compiler warnings
- various other, minor code cleanups
- only Harbour/C code/headers were touched in src, utils, contrib,
include. No 3rd party code, no make files, and with just a few
exceptions, no 'tests' code was touched.
- certain components were not touched were 3.4 diverged too much
already, like f.e. hbmk2, hbssl, hbcurl, hbexpat
- the goal was that no actual program logic should be altered by
these changes. Except some possible minor exceptions, any such
change is probably a bug in this patch.
It's a massive patch, if you find anything broken after it, please
open an Issue with the details. Build test was done on macOS.
The goal is make it easier to see what actual code/logic was changed
in 3.4 compared to 3.2 and to make patches easier to apply in both
ways.
This commit is contained in:
@@ -77,7 +77,7 @@ typedef enum
|
||||
HB_P_FUNCTIONSHORT, /* 12 instructs the virtual machine to execute a function saving its result */
|
||||
HB_P_FRAME, /* 13 instructs the virtual machine about how many parameters and locals a function uses */
|
||||
HB_P_FUNCPTR, /* 14 returns a function address pointer */
|
||||
HB_P_GREATER, /* 15 checks if the second latest value on the stack is greater that the lastest one */
|
||||
HB_P_GREATER, /* 15 checks if the second latest value on the stack is greater that the latest one */
|
||||
HB_P_GREATEREQUAL, /* 16 checks if the second latest value on the stack is greater equal that the latest one, leaves the result only */
|
||||
HB_P_DEC, /* 17 decrements the latest value on the virtual machine stack */
|
||||
HB_P_DIVIDE, /* 18 divides the latest two values on the stack, removing them and leaving the result */
|
||||
@@ -97,7 +97,7 @@ typedef enum
|
||||
HB_P_JUMPTRUE, /* 32 checks a logic expression of the stack and jumps to a relative offset */
|
||||
HB_P_JUMPTRUEFAR, /* 33 checks a logic expression of the stack and jumps to a relative offset */
|
||||
HB_P_LESSEQUAL, /* 34 checks if the second latest value on the stack is less equal that the latest one, leaves the result only */
|
||||
HB_P_LESS, /* 35 checks if the second latest value on the stack is less that the lastest one */
|
||||
HB_P_LESS, /* 35 checks if the second latest value on the stack is less that the latest one */
|
||||
HB_P_LINE, /* 36 currently compiled source code line number */
|
||||
HB_P_LOCALNAME, /* 37 sets the name of local variable */
|
||||
HB_P_MACROPOP, /* 38 compile and run - pop a value from the stack */
|
||||
@@ -135,7 +135,7 @@ typedef enum
|
||||
HB_P_NOT, /* 68 logically negates the latest value on the stack */
|
||||
HB_P_NOTEQUAL, /* 69 checks if the latest two stack values are equal, leaves just the result */
|
||||
HB_P_OR, /* 70 performs the logical OR of two latest stack values, removes them and places result */
|
||||
HB_P_PARAMETER, /* 71 creates PRIVATE variables and assigns values to functions paramaters */
|
||||
HB_P_PARAMETER, /* 71 creates PRIVATE variables and assigns values to functions parameters */
|
||||
HB_P_PLUS, /* 72 adds the latest two values on the stack, removing them and leaving the result */
|
||||
HB_P_POP, /* 73 removes the latest value from the stack */
|
||||
HB_P_POPALIAS, /* 74 pops the item from the eval stack and selects the current workarea */
|
||||
@@ -194,12 +194,12 @@ typedef enum
|
||||
HB_P_MACROPUSHREF, /* 127 Reference to macro variable @&mvar */
|
||||
HB_P_PUSHLONGLONG, /* 128 places an integer number on the virtual machine stack */
|
||||
HB_P_ENUMSTART, /* 129 Start of FOR EACH loop */
|
||||
HB_P_ENUMNEXT, /* 130 Next item of FOR EACH loop */
|
||||
HB_P_ENUMPREV, /* 131 Previous item of FOR EACH loop */
|
||||
HB_P_ENUMNEXT, /* 130 Next item of FOR EACH loop */
|
||||
HB_P_ENUMPREV, /* 131 Previous item of FOR EACH loop */
|
||||
HB_P_ENUMEND, /* 132 End of FOR EACH loop */
|
||||
HB_P_SWITCH, /* 133 SWITCH using long values */
|
||||
HB_P_PUSHDATE, /* 134 places a data constant value on the virtual machine stack */
|
||||
/* optimalization of inlined math operations */
|
||||
/* optimization of inlined math operations */
|
||||
HB_P_PLUSEQPOP, /* 135 adds a value to the variable reference */
|
||||
HB_P_MINUSEQPOP, /* 136 subs a value from the variable reference */
|
||||
HB_P_MULTEQPOP, /* 137 multiplies a variable reference by a value */
|
||||
@@ -211,7 +211,7 @@ typedef enum
|
||||
HB_P_WITHOBJECTSTART, /* 143 start WITH OBJECT code */
|
||||
HB_P_WITHOBJECTMESSAGE, /* 144 push message for WITH OBJECT */
|
||||
HB_P_WITHOBJECTEND, /* 145 end WITH OBJECT code */
|
||||
HB_P_MACROSEND, /* 146 send operator with macrlist params */
|
||||
HB_P_MACROSEND, /* 146 send operator with macro list params */
|
||||
HB_P_PUSHOVARREF, /* 147 pushes reference to object variable */
|
||||
HB_P_ARRAYPUSHREF, /* 148 pushes reference to array element */
|
||||
HB_P_VFRAME, /* 149 frame with variable number of parameters */
|
||||
@@ -224,7 +224,7 @@ typedef enum
|
||||
HB_P_MODEQ, /* 156 calculates the modulus of var reference and a value, leave result on the stack */
|
||||
HB_P_EXPEQ, /* 157 calculates the power of var reference and a value, leave result on the stack */
|
||||
HB_P_DUPLUNREF, /* 158 places a copy of the latest virtual machine stack value on to the stack and unreference the source one */
|
||||
HB_P_MPUSHBLOCKLARGE, /* 159 code block generated by the macro compiler larger then 64kb */
|
||||
HB_P_MPUSHBLOCKLARGE, /* 159 code block generated by the macro compiler larger then 64 KiB */
|
||||
HB_P_MPUSHSTRLARGE, /* 160 Macro compiled pushed string */
|
||||
HB_P_PUSHBLOCKLARGE, /* 161 start of a codeblock definition */
|
||||
HB_P_PUSHSTRLARGE, /* 162 places a string on the virtual machine stack */
|
||||
|
||||
Reference in New Issue
Block a user