strhead.h 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. /******************************************************************************
  2. *
  3. * project name: TIGCC Tools Suite
  4. * file name: strhead.h
  5. * initial date: 13/08/2000
  6. * author: thomas.nussbaumer@gmx.net
  7. * description: header structure of a TI string or OTH variable stored on
  8. * the PC
  9. *
  10. ******************************************************************************/
  11. /*
  12. This file is part of ttbin2oth.
  13. This file is free software; you can redistribute it and/or
  14. modify it under the terms of the GNU Lesser General Public
  15. License as published by the Free Software Foundation; either
  16. version 2.1 of the License, or (at your option) any later version.
  17. As a special exception, UNMODIFIED copies of ttbin2oth may also be
  18. redistributed or sold without source code, for any purpose. (The Lesser
  19. General Public License restrictions do apply in other respects; for example,
  20. they cover modification of the program.) This exception notice must be
  21. removed on modified copies of this file.
  22. This program is distributed in the hope that it will be useful,
  23. but WITHOUT ANY WARRANTY; without even the implied warranty of
  24. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  25. Lesser General Public License for more details.
  26. You should have received a copy of the GNU Lesser General Public
  27. License along with this library; if not, write to the Free Software
  28. Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  29. */
  30. #ifndef __STRHEAD_H__
  31. #define __STRHEAD_H__
  32. typedef struct {
  33. char signature[8]; // "**TI92P*" or "**TI89**"
  34. unsigned char fill1[2]; // 01 00
  35. char folder[8]; // folder name
  36. char desc[40]; // ---- not used ----
  37. unsigned char fill2[6]; // 01 00 52 00 00 00
  38. char name[8]; // varname
  39. unsigned char type[4]; // 0C 00 00 00
  40. unsigned char size[4]; // complete file size (including checksum)
  41. unsigned char fill3[6]; // A5 5A 00 00 00 00
  42. unsigned char datasize[2]; // data size
  43. }
  44. StrHeader;
  45. #endif
  46. //#############################################################################
  47. //###################### NO MORE FAKES BEYOND THIS LINE #######################
  48. //#############################################################################
  49. //
  50. //=============================================================================
  51. // Revision History
  52. //=============================================================================
  53. //
  54. // Revision 1.1 2000/08/23 20:31:13 Thomas Nussbaumer
  55. // renamed from pc_strdef.h
  56. //
  57. //
  58. // ---------------------------------------------------------------------------
  59. // revision info before file was renamed
  60. // ---------------------------------------------------------------------------
  61. // Revision 1.4 2000/08/23 01:05:00 Thomas Nussbaumer
  62. // minor comment added
  63. //
  64. // Revision 1.3 2000/08/20 15:25:24 Thomas Nussbaumer
  65. // bug fixed: size[] and datasize[] must be unsigned
  66. //
  67. // Revision 1.2 2000/08/13 20:24:51 Thomas Nussbaumer
  68. // some definitions moved to tt.h
  69. //
  70. // Revision 1.1 2000/08/13 16:02:13 Thomas Nussbaumer
  71. // initial version
  72. //
  73. //
  74. //