constants.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /* -*-comment-start: "//";comment-end:""-*-
  2. * GNU Mes --- Maxwell Equations of Software
  3. * Copyright © 2016,2017,2018,2019 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
  4. *
  5. * This file is part of GNU Mes.
  6. *
  7. * GNU Mes is free software; you can redistribute it and/or modify it
  8. * under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation; either version 3 of the License, or (at
  10. * your option) any later version.
  11. *
  12. * GNU Mes is distributed in the hope that it will be useful, but
  13. * WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
  19. */
  20. /* Cell types */
  21. #define TCHAR 0
  22. #define TBYTES 1
  23. #define TCLOSURE 2
  24. #define TCONTINUATION 3
  25. #define TKEYWORD 4
  26. #define TMACRO 5
  27. #define TNUMBER 6
  28. #define TPAIR 7
  29. #define TPORT 8
  30. #define TREF 9
  31. #define TSPECIAL 10
  32. #define TSTRING 11
  33. #define TSTRUCT 12
  34. #define TSYMBOL 13
  35. #define TVALUES 14
  36. #define TVARIABLE 15
  37. #define TVECTOR 16
  38. #define TBROKEN_HEART 17
  39. /* Struct types */
  40. #define STRUCT_TYPE 0
  41. #define STRUCT_PRINTER 1
  42. #define FRAME_SIZE 5
  43. #define FRAME_PROCEDURE 4
  44. #define STDIN 0
  45. #define STDOUT 1
  46. #define STDERR 2
  47. /* Unknown type 1
  48. */
  49. #define EOF -1
  50. #define O_RDONLY 0
  51. #define O_WRONLY 1
  52. #define O_CREAT 0x40
  53. #define O_TRUNC 0x200
  54. #define PATH_MAX 1024
  55. #define __FILEDES_MAX 512
  56. #define S_IRUSR 00400
  57. #define S_IWUSR 00200
  58. #define CLOCK_PROCESS_CPUTIME_ID 2