util.h 459 B

1234567891011121314151617
  1. #ifndef __symbol__h__
  2. #define __symbol__h__
  3. int symbol_unit_get(const char *symbol);
  4. int symbol_id_get(const char *symbol);
  5. int period_second_get(const char *period);
  6. int period_id_get(const char *period);
  7. #if defined(MSDOS) || defined(OS2) || defined(WIN32) || defined(__CYGWIN__)
  8. # include <fcntl.h>
  9. # include <io.h>
  10. # define SET_BINARY_MODE(file) _setmode(_fileno(file), O_BINARY)
  11. #else
  12. # define SET_BINARY_MODE(file)
  13. #endif
  14. #endif