tb0150.pp 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. { %fail }
  2. { This should give out an error since some of the set elements are duplicated
  3. actually its m_hintdirective which is duplicated.
  4. }
  5. type
  6. { Switches which can be changed by a mode (fpc,tp7,delphi) }
  7. tmodeswitch = (m_none,m_all, { needed for keyword }
  8. { generic }
  9. m_fpc,m_objfpc,m_delphi,m_tp7,m_gpc,
  10. { more specific }
  11. m_class, { delphi class model }
  12. m_objpas, { load objpas unit }
  13. m_result, { result in functions }
  14. m_string_pchar, { pchar 2 string conversion }
  15. m_cvar_support, { cvar variable directive }
  16. m_nested_comment, { nested comments }
  17. m_tp_procvar, { tp style procvars (no @ needed) }
  18. m_repeat_forward, { repeating forward declarations is needed }
  19. m_pointer_2_procedure, { allows the assignement of pointers to
  20. procedure variables }
  21. m_autoderef, { does auto dereferencing of struct. vars }
  22. m_initfinal, { initialization/finalization for units }
  23. m_add_pointer, { allow pointer add/sub operations }
  24. m_default_ansistring, { ansistring turned on by default }
  25. m_out, { support the calling convention OUT }
  26. m_default_para, { support default parameters }
  27. m_hintdirective, { support hint directives }
  28. m_duplicate_names { allow locals/paras to have duplicate names of globals }
  29. );
  30. tmodeswitches = set of tmodeswitch;
  31. const
  32. delphimodeswitches : tmodeswitches=
  33. [m_delphi,m_all,m_class,m_objpas,m_result,m_string_pchar,
  34. m_pointer_2_procedure,m_autoderef,m_tp_procvar,m_initfinal,m_default_ansistring,
  35. m_out,m_default_para,m_hintdirective,m_duplicate_names,m_hintdirective];
  36. Begin
  37. end.