This is not some sort of guiding or prescribing document, but rather a description of style of code I already started writing by now.
Original book is written with examples in turbo pascal. I started rewriting it in C and decided to preserve style of naming of functions, that appeared first in the book and wouldn’t be introduced by myself.
Just c-set-style
to k&r
in emacs.
Trying to follow KNF to some extent and use advantages of the OpenBSD and latest POSIX standard.
I put function prototypes into fns.h and some C preprocessor constans into dat.h as 9front style from aiju.de stated.
I really love how it is close to truth and
writing byte with M-b M-u
to upcase is very easy.
This is because I tried to follow tutorial and it is written with short Pascal procedures.