Sync VCC Plus 3.7.1 build 67 source
Refresh reviewed MCP output export, four-drive owned playtests, bounded BASIC readiness, and pinned CMOC 0.1.101 source/patches. Preserve independent source-edition identity, empty libraries, notices and privacy boundaries. Validated 74 export/privacy checks, pinned dependency sources, and an independent unsigned universal Release build. A subsequent documentation-only correction removes an excluded qualification link; all build inputs remain identical.
This commit is contained in:
1 parent
4abc194001
commit
5534005799
54 files changed
+2950
-435
No files matched your search
@@ -0,0 +1,46 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
#include <cmoc.h>
|
||||
|
||||
// Separate tag and typedef namespaces, with values whose representation differs.
|
||||
typedef unsigned Ledger;
|
||||
struct Ledger { unsigned value; };
|
||||
|
||||
enum Route { HOME_ROUTE = 1003 };
|
||||
typedef enum Route RouteAlias;
|
||||
|
||||
// CMOC's octal parser requires an initial \0; \103 is not supported.
|
||||
static const char globalEscapes[] = "\x41" "B\0103";
|
||||
static unsigned char runtimeIndex;
|
||||
|
||||
static unsigned receiveRoute(enum Route route)
|
||||
{
|
||||
return (unsigned) route + 13;
|
||||
}
|
||||
|
||||
int main(void)
|
||||
{
|
||||
Ledger scalar = 0x1234;
|
||||
struct Ledger record = { 0x5678 };
|
||||
char localEscapes[] = "\0101\0102\x43";
|
||||
unsigned char inferred[sizeof("\x41" "B\0103")];
|
||||
struct { unsigned char before; char text[4]; unsigned char after; } guarded =
|
||||
{ 0x55, "\x41" "B\0103", 0xaa };
|
||||
|
||||
printf("LANG %04X%04X %04X%04X ",
|
||||
receiveRoute((enum Route) 1003), receiveRoute((RouteAlias) 2003),
|
||||
scalar, record.value);
|
||||
printf("%u%u%u ", (unsigned) sizeof(globalEscapes),
|
||||
(unsigned) sizeof(localEscapes), (unsigned) sizeof(inferred));
|
||||
// Include actual bytes and sentinels. Host owns the expected values, not
|
||||
// the same compiler expression that produced the tested initializer.
|
||||
for (runtimeIndex = 0; runtimeIndex < sizeof(globalEscapes); ++runtimeIndex)
|
||||
printf("%02X", (unsigned char) globalEscapes[runtimeIndex]);
|
||||
printf(" ");
|
||||
for (runtimeIndex = 0; runtimeIndex < sizeof(localEscapes); ++runtimeIndex)
|
||||
printf("%02X", (unsigned char) localEscapes[runtimeIndex]);
|
||||
printf(" %02X", guarded.before);
|
||||
for (runtimeIndex = 0; runtimeIndex < sizeof(guarded.text); ++runtimeIndex)
|
||||
printf("%02X", (unsigned char) guarded.text[runtimeIndex]);
|
||||
printf("%02X END\n", guarded.after);
|
||||
return 0;
|
||||
}
|
||||
Reference in new issue
Block a user