C doesn't have true namespaces, but pseudo-namespacing can be used through prefixing.
I think it makes sense to have an rlib level namespace prefix of r_ and then each .h file would have its own prefix based off the file name that would come after r_.
C doesn't have true namespaces, but pseudo-namespacing can be used through prefixing.
I think it makes sense to have an rlib level namespace prefix of
r_
and then each.h
file would have its own prefix based off the file name that would come afterr_
.For example,
attr.h
might have:r_attr_get()
r_attr_set()
chr.h
would have:r_chr_get()
r_chr_deref()