schemadef.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. * Copyright (C) 2003 Kevin Koltzau
  3. * Copyright (C) 2004 Francois Gouget
  4. *
  5. * This library is free software; you can redistribute it and/or
  6. * modify it under the terms of the GNU Lesser General Public
  7. * License as published by the Free Software Foundation; either
  8. * version 2.1 of the License, or (at your option) any later version.
  9. *
  10. * This library is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  13. * Lesser General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU Lesser General Public
  16. * License along with this library; if not, write to the Free Software
  17. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  18. */
  19. #ifndef __WINE_SCHEMADEF_H
  20. #define __WINE_SCHEMADEF_H
  21. #define BEGIN_TM_SCHEMA(name)
  22. #define END_TM_SCHEMA(name)
  23. #define BEGIN_TM_ENUM(name) enum name {
  24. #define TM_ENUM(value, prefix, name) prefix##_##name = (value),
  25. #define END_TM_ENUM() };
  26. #define BEGIN_TM_PROPS() enum PropValues { \
  27. DummyProp = 49,
  28. #define TM_PROP(value, prefix, name, type) prefix##_##name = (value),
  29. #define END_TM_PROPS() };
  30. #define BEGIN_TM_CLASS_PARTS(name) enum name##PARTS { \
  31. name##PartFiller0,
  32. #define TM_PART(value, prefix, name) prefix##_##name = (value),
  33. #define END_TM_CLASS_PARTS() };
  34. #define BEGIN_TM_PART_STATES(name) enum name##STATES { \
  35. name##StateFiller0,
  36. #define TM_STATE(value, prefix, name) prefix##_##name = (value),
  37. #define END_TM_PART_STATES() };
  38. #endif