home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_disks / 200-299 / ff280.lzh / Graph / file.h < prev    next >
C/C++ Source or Header  |  1989-11-20  |  1KB  |  36 lines

  1. /*
  2.  *                 GRAPH, Version 1.00 - 4 August 1989
  3.  *
  4.  *            Copyright 1989, David Gay. All Rights Reserved.
  5.  *            This software is freely redistrubatable.
  6.  */
  7.  
  8. /* Tags for use in files */
  9. #ifndef FILE_H
  10. #define FILE_H
  11.  
  12. #define FILE_TAG 114 /* Variable file */
  13. #define FILE_END 115
  14. #define VAR_TAG 116  /* Each variable */
  15. #define VAR_END 117
  16. #define GRAPH_TAG 100 /* Tag to recognise graphs in files */
  17. #define GRAPH_END 101 /* End of graph */
  18. #define LABEL_TAG 102 /* Labels */
  19. #define LABEL_END 103
  20. #define FUNCTION_TAG 104 /* Functions */
  21. #define FUNCTION_END 105
  22. #define F_OF_X_TAG 106 /* In each function, you have one of the following */
  23. #define F_OF_X_END 107
  24. #define X_Y_TAG 108
  25. #define X_Y_END 109
  26. #define R_OF_T_TAG 110
  27. #define R_OF_T_END 111
  28. #define R_T_TAG 112
  29. #define R_T_END 113
  30.  
  31. /* Read/Write raw object from file */
  32. #define WRITE(file, what) fwrite((char *)&(what), sizeof(what), 1, (file))
  33. #define READ(file, what) fread((char *)&(what), sizeof(what), 1, (file))
  34.  
  35. #endif
  36.