symbol interning
This commit is contained in:
parent
5e6bc2679d
commit
d64b0f0a6f
6 changed files with 174 additions and 10 deletions
12
main.c
Normal file
12
main.c
Normal 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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue