You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
828 B

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /*
  2. * Turbo Vision - Version 2.0
  3. *
  4. * Copyright (c) 1994 by Borland International
  5. * All Rights Reserved.
  6. *
  7. Modified by Robert H�hne to be used for RHIDE.
  8. Modified by Salvador E. Tropea: added operators and append.
  9. *
  10. *
  11. */
  12. #if defined( Uses_TSItem ) && !defined( __TSItem )
  13. #define __TSItem
  14. class TSItem
  15. {
  16. public:
  17. TSItem( const char *aValue, TSItem *aNext )
  18. { value = newStr(aValue); next = aNext; }
  19. ~TSItem() { DeleteArray((char *)value); }
  20. void append( TSItem *aNext ); // SET: I put it in the same source as TCluster
  21. const char *value;
  22. TSItem *next;
  23. };
  24. // by SET
  25. inline TSItem& operator + ( TSItem& s, TSItem& i )
  26. {
  27. s.append(&i);
  28. return s;
  29. }
  30. // SET: From TVTools
  31. inline void operator += ( TSItem& i1, TSItem& i2 )
  32. {
  33. i1 = i1 + i2;
  34. }
  35. #endif // Uses_TSItem