xref: /phasta/phSolver/common/phstreamEmpty/phstreamEmpty.cc (revision 7acde132a6def0fe2daaec0d1a712dff0e5c6636)
1 #include "phstream.h"
fail(const char * f)2 void* fail(const char* f) {
3   fprintf(stderr,
4     "ERROR: function %s is disabled - compile with chefPhasta\n", f);
5   return NULL;
6 }
makeRStream()7 rstream makeRStream() {
8   return (rstream)fail(__func__);
9 }
clearRStream(rstream rs)10 void clearRStream(rstream rs) {
11   fail(__func__);
12 }
destroyRStream(rstream rs)13 void destroyRStream(rstream rs) {
14   fail(__func__);
15 }
16 
makeGRStream()17 grstream makeGRStream() {
18   return (grstream)fail(__func__);
19 }
clearGRStream(grstream grs)20 void clearGRStream(grstream grs) {
21   fail(__func__);
22 }
destroyGRStream(grstream grs)23 void destroyGRStream(grstream grs) {
24   fail(__func__);
25 }
26 
openRStreamRead(rstream rs)27 FILE* openRStreamRead(rstream rs) {
28   return (FILE*)fail(__func__);
29 }
openRStreamWrite(rstream rs)30 FILE* openRStreamWrite(rstream rs) {
31   return (FILE*)fail(__func__);
32 }
33 
openGRStreamRead(grstream grs,const char * named)34 FILE* openGRStreamRead(grstream grs, const char* named) {
35   return (FILE*)fail(__func__);
36 }
openGRStreamWrite(grstream grs,const char * named)37 FILE* openGRStreamWrite(grstream grs, const char* named) {
38   return (FILE*)fail(__func__);
39 }
40 
attachRStream(grstream grs,rstream rs)41 void attachRStream(grstream grs, rstream rs) {
42   fail(__func__);
43 }
44