Source code of Windows XP (NT5)
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.

115 lines
3.2 KiB

  1. /************************************************************/
  2. /* Windows Write, Copyright 1985-1992 Microsoft Corporation */
  3. /************************************************************/
  4. #define MACHA
  5. /* definition of macha moved here by bz instead of on command
  6. like to compiler to allow other command line args */
  7. /* cbSector -- Number of bytes in sector */
  8. /* p2bSector -- Power of two of bytes in sector (iff cbSector==2^n) */
  9. /* cbPad -- Difference between real sector size and our sector size. (Used
  10. only if the real sector size is odd) */
  11. /* cbWorkspace -- Number of bytes needed by interpreter for file overhead */
  12. #ifdef SAND
  13. #define cbSector 128
  14. #define p2bSector 7
  15. #define cbPad 0
  16. #define cbWorkspace 0
  17. #define rfnMax 5
  18. #define pnMaxScratch (1 << (16 - p2bSector))
  19. #else
  20. #ifdef MACHA /* IBM PC, PC-XT, OR PC-AT */
  21. #define cbSector 128
  22. #define p2bSector 7
  23. #define cbPad 0
  24. #define cbWorkspace 1
  25. #define rfnMacEdit 9 /* # of rfn's to use during editing */
  26. #define rfnMacSave 10 /* # of rfn's to use during saving */
  27. #define rfnMax 10 /* Allocated # of rfn slots */
  28. #define pnMaxScratch (1 << (16 - p2bSector))
  29. /* -------------------------------------------------------------------- */
  30. /* Added conditional compilation for long filename support under OS/2 */
  31. /* t-carlh - August, 1990 */
  32. /* -------------------------------------------------------------------- */
  33. #ifdef OS2
  34. #define cchMaxLeaf 260 /* Largest filename (w/ ext, w/o drv,path) */
  35. #define cchMaxFile 260 /* Largest filename (w/ ext, drv, path) */
  36. #else /* OS2 */
  37. #define cchMaxLeaf 13 /* Largest filename (w/ ext, w/o drv,path) */
  38. #define cchMaxFile 128 /* Largest filename (w/ ext, drv, path) */
  39. #endif /* OS2 */
  40. #endif
  41. #ifdef MACHB
  42. #define cbSector 252
  43. #define cbPad 1
  44. #define cbWorkspace (64+253)
  45. #endif
  46. #ifdef MACHC
  47. #define cbSector 512
  48. #define p2bSector 9
  49. #define cbPad 0
  50. #define cbWorkspace 20
  51. #endif
  52. #ifdef MACHD
  53. #define cbSector 256
  54. #define p2bSector 8
  55. #define cbPad 0
  56. #define cbWorkspace (31+256)
  57. #endif
  58. #ifdef MACHE
  59. #define cbSector 512
  60. #define p2bSector 9
  61. #define cbPad 0
  62. #define cbWorkspace 0
  63. #define rfnMax 2
  64. #endif
  65. #ifdef MACHF
  66. #define cbSector 512
  67. #define p2bSector 9
  68. #define cbPad 0
  69. #define cbWorkspace 38
  70. #endif
  71. #endif /* SAND */
  72. #define EOF (-1)
  73. #ifdef SAND
  74. #define mdRandom 0
  75. #define mdRanRO 0100000 /* Read only random file */
  76. #define mdBinary 1
  77. #define mdBinRO 0100001 /* Read only binary save file */
  78. #define mdText 2
  79. #define mdTxtRO 0100002 /* Read only text file */
  80. #define mdPrint 3
  81. #endif
  82. #ifdef MACHA
  83. #define mdRandom 0x0002
  84. #define mdBinary mdRandom
  85. #define mdText mdRandom
  86. #define mdRanRO 0x0000
  87. #define mdBinRO mdRanRO
  88. #define mdTxtRO mdRanRO
  89. #define mdExtMax 5 /* # chars in an extension, including the . */
  90. #endif
  91. extern int ibpMax;
  92. extern int iibpHashMax;
  93.