expr.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. * Copyright (C) 1997, Eric Youngdale.
  3. *
  4. * This library is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU Lesser General Public
  6. * License as published by the Free Software Foundation; either
  7. * version 2.1 of the License, or (at your option) any later version.
  8. *
  9. * This library is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. * Lesser General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU Lesser General Public
  15. * License along with this library; if not, write to the Free Software
  16. * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  17. */
  18. #define EXP_OP_LOR 0x01
  19. #define EXP_OP_LAND 0x02
  20. #define EXP_OP_OR 0x03
  21. #define EXP_OP_AND 0x04
  22. #define EXP_OP_XOR 0x05
  23. #define EXP_OP_EQ 0x06
  24. #define EXP_OP_GT 0x07
  25. #define EXP_OP_LT 0x08
  26. #define EXP_OP_GE 0x09
  27. #define EXP_OP_LE 0x0a
  28. #define EXP_OP_NE 0x0b
  29. #define EXP_OP_SHL 0x0c
  30. #define EXP_OP_SHR 0x0d
  31. #define EXP_OP_ADD 0x0e
  32. #define EXP_OP_SUB 0x0f
  33. #define EXP_OP_MUL 0x10
  34. #define EXP_OP_DIV 0x11
  35. #define EXP_OP_REM 0x12
  36. #define EXP_OP_NEG 0x13
  37. #define EXP_OP_NOT 0x24
  38. #define EXP_OP_LNOT 0x25
  39. #define EXP_OP_DEREF 0x26
  40. #define EXP_OP_ADDR 0x27
  41. #define EXP_OP_ARR 0x28
  42. #define EXP_OP_SEG 0x29
  43. #define EXP_OP_FORCE_DEREF 0x2a