Possible Duplicate:
what is a “private header” in c
I refer to this question:
Can you write object-oriented code in C?
The accepted answer to that question posted a link to a book: http://www.cs.rit.edu/~ats/books/ooc.pdf
In this book, the author uses *.r files, in addition to *.c and *.h files. The *.r files are used like-headers, hiding the implementation of “C-classes” from users
My question is what are *.r files?
are they something standard for coding in C?
Or is it something that Axel Schreiner came up with when writing his book?
I had a quick look at the PDF, and here is an example of what you’re referring to:
.ris referring to the representation (hence the.r) of the so-called class, where the header file actually defines the more friendly looking method names:And finally the c source file contains the actual function code:
Long story short, yes the
.rwas something that Axel Schreiner came up with in his book, and as mentioned the r in.ris “representation”.