@KennyR:
While I havent seen the sources myself (i wish :-) ), it is supposedly mostly C code with some BCPL and Assembler. The BCPL code is supposed to be finally laid to rest in OS4.
I would imagine there is a lot of useful C code from the 3.1 sources.