?login_element?

Subversion Repositories NedoOS

Rev

Rev 554 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1. /*
  2.  
  3.   SjASMPlus Z80 Cross Compiler
  4.  
  5.   Copyright (c) 2004-2006 Aprisobal
  6.  
  7.   This software is provided 'as-is', without any express or implied warranty.
  8.   In no event will the authors be held liable for any damages arising from the
  9.   use of this software.
  10.  
  11.   Permission is granted to anyone to use this software for any purpose,
  12.   including commercial applications, and to alter it and redistribute it freely,
  13.   subject to the following restrictions:
  14.  
  15.   1. The origin of this software must not be misrepresented; you must not claim
  16.          that you wrote the original software. If you use this software in a product,
  17.          an acknowledgment in the product documentation would be appreciated but is
  18.          not required.
  19.  
  20.   2. Altered source versions must be plainly marked as such, and must not be
  21.          misrepresented as being the original software.
  22.  
  23.   3. This notice may not be removed or altered from any source distribution.
  24.  
  25. */
  26.  
  27. //sjdefs.h
  28.  
  29. #ifndef __SJDEFS
  30. #define __SJDEFS
  31.  
  32. // version string
  33. #define VERSION "1.15.1"
  34. #define VERSION_NUM "0x00010F01"
  35.  
  36. #define LASTPASS 3
  37.  
  38. // output
  39. #define _COUT cout << termcolor::reset <<
  40. #define _CERR cerr << termcolor::red_br <<
  41. #define _CMDL  <<
  42. #define _ENDL << termcolor::reset << endl
  43. #define _END << termcolor::reset
  44.  
  45. // standard libraries
  46. #ifdef WIN32
  47. #define NOMINMAX
  48. #include <windows.h>
  49. #endif
  50.  
  51. #include <algorithm>
  52. #include <stack>
  53. #include <vector>
  54. #include <iostream>
  55. using std::cout;
  56. using std::cerr;
  57. using std::endl;
  58. using std::flush;
  59. #include <stdio.h>
  60. #include <stdlib.h>
  61. #include <string.h>
  62. #include <ctype.h>
  63. #include <math.h>
  64.  
  65. #ifdef USE_LUA
  66.  
  67. extern "C" {
  68. #include "lua.h"
  69. #include "lualib.h"
  70. #include "lauxlib.h"
  71. #include "tolua++.h"
  72. }
  73.  
  74. #endif //USE_LUA
  75.  
  76. // global defines
  77. #define LINEMAX 2048
  78. #define LINEMAX2 LINEMAX*2
  79. #define LABMAX 64
  80. #define LABTABSIZE 32768
  81. #define FUNTABSIZE 4096
  82. typedef int32_t aint;
  83. typedef uint8_t byte;
  84. typedef uint16_t word;
  85. typedef std::vector<char> stdin_log_t;
  86.  
  87. #ifndef PATH_MAX
  88. #define PATH_MAX        4096
  89. #endif
  90.  
  91. // include all headers
  92. extern "C" {
  93. #include "lua_lpack.h"
  94. }
  95. #include "devices.h"
  96. #include "support.h"
  97. #include "tables.h"
  98. #include "reader.h"
  99. #include "parser.h"
  100. #include "z80.h"
  101. #include "directives.h"
  102. #include "sjio.h"
  103. #include "io_snapshots.h"
  104. #include "io_trd.h"
  105. #include "io_tape.h"
  106. #include "io_nex.h"
  107. #include "sjasm.h"
  108.  
  109. #endif
  110. //eof sjdefs.h
  111.