2025-11-09 15:11:18 +09:00
|
|
|
#include <stdio.h>
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
|
|
// Minimal C runtime symbols (design-stage). These provide a safe, tiny set of
|
|
|
|
|
// externs for experiments; real NyKernel remains authoritative.
|
|
|
|
|
|
|
|
|
|
// Print: accept pointer (may be NULL). Returns 0 on success.
|
|
|
|
|
long nyash_console_log(char* p) {
|
|
|
|
|
(void)p;
|
|
|
|
|
puts("hello");
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// from_i8_string: returns a fake handle (0). Real mapping is in Rust NyKernel.
|
|
|
|
|
long nyash_box_from_i8_string(char* p) {
|
|
|
|
|
(void)p; // not used in design stage stub
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
2025-11-09 23:40:36 +09:00
|
|
|
// Note: Additional array/map stubs intentionally omitted to avoid symbol
|
|
|
|
|
// clashes with the full NyKernel when linked together. Keep this file minimal
|
|
|
|
|
// (console only) for print canaries.
|