strings.h
上传用户:xiaoan1112
上传日期:2013-04-11
资源大小:19621k
文件大小:7k
源码类别:

操作系统开发

开发平台:

Visual C++

  1. /* TS = none */
  2. /* REVIEW - we could save some space by not repeating some strings */
  3. #define szError             "  Error -- "
  4. #define szWarning           "n  Warning -- "
  5. /* ERROR MESSAGES AND OTHER STRINGS */
  6. #define szNoChecksum        szWarning "Checksum not currently supportedn"
  7. #define szNoQWithS          szWarning "'-q' flag causes Compress to ignore '-s' flagn"
  8. #define szNoDestWith$       szWarning "'-$' flag causes Compress to ignore output filenamen"
  9. #define szCantOpenInput     szError "cannot open input file:  %snn"
  10. #define szCantOpenOutput    szError "cannot open output file:  %snn"
  11. #define szFileExists        szWarning "the file '%s' exists.n"
  12. #define szAppendQ           "    Should I append to that file?  Yes or No? "
  13. #define szOverwriteYN       "    Should I try to overwrite it?  Yes or No? "
  14. #define szCantOverwrite     szWarning "unable to overwrite '%s'n"
  15. #define szAlreadyCompressed szWarning "the file '%s' may already be compressed.ntShould I proceed?  Yes or No? "
  16. #define szFilenameTooLongSz szError "filename '%s.%s' is too longnn"
  17. #define szBytesCompressed   "   %1ld bytes compresses to %1ld bytes,  "
  18. #define szPercentSavings    "Savings: %1d percentn"
  19. #define szNoSavings         "No Savingsn"
  20. #define szWroteBytes        "      Wrote %6ld bytes to output file '%s'n"
  21. #define szNoOutputNames     szError "ran out of output file names (Max == 10)nn"
  22. #define szDecompSize        "Decompression would result in a file of %1ld bytes.n"
  23. #define szNoDestInHeader    szError "no destination file name in source file header.nnttYou need to supply one on the command line.n"
  24. #define szSrcDestDifferent  szError "source and destination files must be different.nn"
  25. #define szTailBytes         "n      Writing the remaining %1ld source bytes to the file '%s'n"
  26. #define szDestDirWild       "Destination must be a directory in a wildcard compress.n"
  27. #define szDestDirTree       "Destination must be a directory in a treecopy compress.n"
  28. #define szTotals            "nTotals: "
  29. #define szEnterSrcName      "nn    Enter the name and/or path for the compressed file: "
  30. #define szGetsFailure       szError "gets() failed.n"
  31. #define szEnterDestName     "    Enter the name and/or path for the decompressed file: "
  32. #define szNoSrcFile         "No Source file foundn"
  33. /* These strings match up with error return codes in retcodes.h */
  34. #define szYorN              "Please enter Y or N "
  35. #define szInternalError     "Internal errorn"
  36. #define szNoHeader          "No header in file (file might not be compressed)n"
  37. #define szUnknownAlgType    "Unknown compression algorithmn"
  38. #define szBadHeader         "Bad header in filen"
  39. #define szFilenameTooLong   "File name too longn"
  40. #define szReadError         "Read errorn"
  41. #define szReadSeekError     "Error seeking for readn"
  42. #define szWriteError        "Write errorn"
  43. #define szWriteSeekError    "Error seeking for writen"
  44. #define szDestPatchError    "Cannot patch header in output filen"
  45. #define szCompChecksumBad   "Compression checksums do not matchn"
  46. #define szDecompChecksumBad "Decompression checksums do not matchn"
  47. #define szCompLengthBad     "Compressed file length mismatchn"
  48. #define szDecompLengthBad   "Decompressed file length mismatchn"
  49. #define szGenericCompError  "Internal error during compressionn"
  50. #define szGenericDecompError  "Internal error during decompressionn"
  51. #define szSplitSizeTooSmall "Split size is too small to hold headern"
  52. #define szOutOfMemory       "Out of memoryn"
  53. #define szZeckSplitFile     "Cannot recombine old format split files; only first file decompressedn"
  54. /* COPYRIGHT NOTICES */
  55. #define szCompCopyright1   "Microsoft (R) Compression Utility - "
  56. #define szDecompCopyright1 "Microsoft (R) Decompression Utility - "
  57. #define szCopyright2  "Version 1.11n"
  58. #define szCopyright3  "Copyright (c) Microsoft Corp 1989 - 1992.  All rights reserved.nn"
  59. /* USAGE MESSAGE FOR COMPRESSION */
  60. #define szCompUsage1  "Usage: compress [-aAlg -bceflq$ -sSize -tText -zSize] srcArg [destArg]n"
  61. #define szCompUsage2  "   -a -- Choices for compression algorithm are:  [default = %1d]n"
  62. #define szCompUsage3  "     %2d - Straight Copying with Header attached.n"
  63. #define szCompUsage4  "     %2d - Copying while XORing each byte with 0xff.n"
  64. #define szCompUsage5  "     %2d - the Steven Zeck algorithm.n"
  65. #define szCompUsageJJJ1 "     %2d - Jeff Johnson's algorithm (LZSS + Huffman).n"
  66. #define szCompUsage6  "   -be will include each file basename/extension in the header.n"
  67. #define szCompUsageX  "   -c will include a checksum of each file in the header.n"
  68. #define szCompUsage7  "   -f will force overwriting and recompression of files.n"
  69. #define szCompUsage8  "   -l will NOT include each file length in the header.n"
  70. #define szCompUsage9  "   -q will compute compressed file lengths (no output) (ignores -sz flags).n"
  71. #define szCompUsage10  "   -s will split output into Size x 512 byte pieces naming each piecen"
  72. #define szCompUsage11  "      with a sequentially higher numerical base name.n"
  73. #define szCompUsage12  "   -t will include following Text in the header.n"
  74. #define szCompUsage13  "      Text that includes spaces should be double-quoted.n"
  75. #define szCompUsage14  "   -z will split off and compress just one piece, and leave then"
  76. #define szCompUsage15  "      remainder uncompressed in a second file.n"
  77. #define szCompUsage16  "   -$ will turn OFF underscore renaming.  Specific destArg will override.n"
  78. #define szCompUsage17  "n   srcArg can be a filename, a wildcard pattern, or a directory.  Then"
  79. #define szCompUsage18  "   latter will cause a tree walk operation.  destArg can be a directory,n"
  80. #define szCompUsage19  "   a specific filebase, or omitted in which case digits are appended.n"
  81. #define szCompUsage20  "   -x excludes OS/2 EAs from the header of the compressed file.n"
  82. /* USAGE MESSAGE FOR DECOMPRESSION */
  83. #ifdef COMPLEX
  84. #define szDecompUsage1  "Usage: decomp [-afq] [srcArg [destArg]]n"
  85. #else  /* !COMPLEX */
  86. #define szDecompUsage1  "Usage: decomp [-a] srcArg destArgn"
  87. #endif /* !COMPLEX */
  88. #define szDecompUsage2  "   -a will append to the destination file, if it exists.n"
  89. #define szDecompUsage3  "   -f will force overwriting if destination file exists.n"
  90. #define szDecompUsage4  "      (Files cannot be decompressed in place.)n"
  91. #define szDecompUsage5  "   -q will calculate size of uncompressed file (no output).nn"
  92. #define szDecompUsage6  "   srcArg can be a specific file or a wildcard pattern.  Either can ben"
  93. #define szDecompUsage7  "   preceeded by a path.  destArg can be a specific file, a directory,n"
  94. #define szDecompUsage8  "   or omitted.  In the last two cases, decomp will try to create an"
  95. #define szDecompUsage9  "   destination filename using information in the src file headern"
  96. #define szDecompUsage10  "   or the src filename itself if the header is missing information.n"