News for hackers. Stuff that matters.
Re:SectorC: A C Compiler in 512 bytes by geocar on Thursday May 25, 2023 @10:12AM (#36070964)
Once upon a time, when += was spelled =+, struct members in C were global names whose "values" were the offsets from the beginning of the struct[1]; a.b is simply a[ptrtab[b]] and a->b is a[0][ptrtab[b]].

[1]: This is why all of the names of struct members in unix are "needlessly" prefixed; i.e. struct stat.st_mode is not struct stat.mode because that could conflict with struct foo.mode until the early 1980s.

Re:SectorC: A C Compiler in 512 bytes by DesiLurker on Friday May 26, 2023 @11:54AM (#36085823)
Ah that explains it, I wondered about those old struct defs.