C preprocessor macro expansion algorithm that meets the requirements of the standard.

expand

subst

glue, hsadd and other functions