-- PatrickSmyth - 24 Sep 2006
The following code scheme was articulated in order to implement a MVC architecture into the R code associated with the Pelagic application.
original code
#inc stdio.h
printf(...)
Greg Code
#ifdef R
#inc rio.h
#else
#inc stdio.h
#end if
#ifdef R
r_printf(...)
#else
printf(...)
#endif
IBG.h
#ifdef R
#define IBG_printf
#include rio.h
#else
#define IBG_printf
#include stdio.h
#endif
New Greg
#include IBG.h
IBG.printf(...)