HPCC-10552 Fix various leaks and out of bound accesses

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
HPCC-10552 Close a couple of sockets in error situations

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
HPCC-10552 Fix a couple of leaks

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
HPCC-10552 Need to call malloc (to match called by setBuffer)

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
HPCC-10552 Uninitialised variable and leak

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
HPCC-10552 Break instead of return to ensure replytags,intertags deleted

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
HPCC-10552 Missing va_end() calls and other minor issues

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
HPCC-10552 More cleaning up and removing dead code

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
HPCC-10552 A few more one-off errors reported by Coverity

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
HPCC-10552 Correct typo from review

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
HPCC-10534 Optimize IF(PROJECT, PROJECT)

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
HPCC-10534 Add a debug option 'optimizeMax'
HPCC-10461 Add additional plugins for external databases

Added sqlite plugin as a POC

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
HPCC-10461 Add additional plugins for external databases

Added initial version of MySQL embed support

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
HPCC-10461 Add additional plugins for external databases

Additional MySQL fixes, including lazy streamed inputs, and minor fixup
spotted in code review.

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
HPCC-10555 Fix Out of Bounds array access

Signed-off-by: Gleb Aronsky <gleb.aronsky@lexisnexis.com>
HPCC-10576 Add code to roxie to call Thor graphs

Copy code from hthor (rather than commoning up) since intention is to remove
the hthor version at some point

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
Add architecture macros

These macros are to set the target type to the four known unique
targets: x86, x86_64, ARM32 and ARM64. You should not have more
than one of them set in any given architecture, so if x86 is set,
this is *not* a 64-bit machine.

These macros should replace _64BIT_ and all x86 related ones, when
the _64BIT_ macro means actually x86_64, and help the migration to
ARM platforms, to come.
First round of changes to compile on ARM

This change adds all the necessary ifdefs to make it compile on ARM.
It doesn't fix any of the issues, so it will not run. But it does add
ARMFIX tags to all macros changes, so that we know where to change next.
Checking _64BIT_ flags, adding ARMFIX

Checking all _64BIT_ flags and adding relevant ARMFIX comments around to
make sure we fix them at the same time. There are a number of different
ARMFIX comments, each one with an explanation of what has to be done to
make it work on ARM. Other comments were added for clarification of why
that particular _64BIT_ flag is not at all platform specific.