25 lines
806 B
C
25 lines
806 B
C
|
|
#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;
|
||
|
|
}
|
||
|
|
|
||
|
|
// Optional minimal stubs (not used by default; reserved for future reps)
|
||
|
|
long nyash_array_birth_h(void) { return 1; }
|
||
|
|
long nyash_array_length_h(long handle) { (void)handle; return 0; }
|
||
|
|
long nyash_map_birth_h(void) { return 1; }
|
||
|
|
long nyash_map_size_h(long handle) { (void)handle; return 0; }
|