symbol interning

This commit is contained in:
Lobo 2026-01-06 12:27:53 -03:00
parent 5e6bc2679d
commit d64b0f0a6f
6 changed files with 174 additions and 10 deletions

12
main.c Normal file
View file

@ -0,0 +1,12 @@
#include <stdio.h>
#include "wscm.h"
int main(void) {
const S *hello = intern("hello", -1);
printf("hello = %p\n", (void *)hello);
const S *hello2 = intern("hello", -1);
printf("hello2 = %p (should be equal to hello)\n", (void *)hello2);
return 0;
}