Plan 9 from Bell Labs’s /usr/web/sources/contrib/fernan/nhc98/src/runtime/Builtin/twopass.h

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.



#define RECORD(x) fwrite((void *)&(x),sizeof(x),1,inputFILE)
#define RECORD_STR(l,s) fwrite((void *)(s),sizeof(char),l,inputFILE)
#define RECORD_BOOL(x) putc(x,inputFILE)



#define REPLAY(x) fread((void *)&(x),sizeof(x),1,inputFILE)
#define REPLAY_STR(l,s) fread((void *)(s),sizeof(char),l,inputFILE)
#define REPLAY_BOOL(x) x = getc(inputFILE)

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.