ISPP.Consts.pas 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. {
  2. Inno Setup Preprocessor
  3. Copyright (C) 2001-2002 Alex Yackimoff
  4. Inno Setup
  5. Copyright (C) 1997-2020 Jordan Russell
  6. Portions by Martijn Laan
  7. For conditions of distribution and use, see LICENSE.TXT.
  8. }
  9. unit ISPP.Consts;
  10. interface
  11. const
  12. { Common words/expressions }
  13. SLocal = 'LOCAL';
  14. SGlobal = 'GLOBAL';
  15. SAny = 'ANY';
  16. SInt = 'INT';
  17. SStr = 'STR';
  18. SIdent = 'Identifier';
  19. { Directive parsing }
  20. SByRefNoDefault = 'By-reference parameter cannot have a default value';
  21. SDirectiveCannotBeInline = 'Directive ''%s'' cannot be inline';
  22. SDoubleElse = '''else'' was already specified';
  23. SElifAfterElse = '''elif'' after ''else''';
  24. SElseWithoutIf = '''else'' without ''if''';
  25. SEndifExpected = '''endif'' expected';
  26. SEndifWithoutIf = '''endif'' without ''if''';
  27. SErrorWhileOpeningFile = 'Error %d while opening file %s';
  28. SErrorWhileReadingFile = 'Error %d while reading file %s';
  29. SFileDirectiveCanBeOnlyInline = '''file'' directive can be only inline';
  30. SFileIsAlreadyBeingIncluded = 'File %s is already being included';
  31. SFileNotFound = 'File not found: %s';
  32. SInsertLineNoTooBig = 'Line number %d is out of current translation';
  33. SInvalidOptionName = 'Invalid option name';
  34. SInvalidTypeId = 'Invalid type identifier: %s';
  35. SMacroExpressionExpected = 'Macro expression expected';
  36. SNonEmptyStringExpected = 'Non empty string expected';
  37. STooManyFormalParams = 'Too many formal parameters';
  38. SUnknownPreprocessorDirective = 'Unknown preprocessor directive';
  39. SUnterminatedPreprocessorDirectiv = 'Unterminated preprocessor directive';
  40. { Warnings }
  41. SDirectiveNotYetSupported = 'Directive ''%s'' not yet supported';
  42. SFailedToParsePragmaDirective = 'Failed to parse ''pragma'' directive';
  43. SFuncIdentForIfdef = 'Function identifier passed to ''ifdef''/''ifndef'' directive';
  44. SSpecFuncIdentForIfdef = 'Special function identifier passed to ''ifdef''/''ifndef'' directive, result is undefined';
  45. SSpecifiedConditionEvalatedToVoid = 'Specified condition evaluated to void, to test variable for existence use "defined" function';
  46. { Status messages }
  47. SIncludingFile = 'Including file: %s';
  48. SProcessingExternalFile = 'Processing file: %s';
  49. { Verbose messages }
  50. SChangedVerboseLevel = 'Changed level of verbosity: %d';
  51. SChangingInsertionPointToLine = 'Changing insertion point to line %d';
  52. SFinishedConditionalInclusion = 'Finished conditional inclusion (''endif'')';
  53. SLineEmitted = 'Emitted line: %s';
  54. SResettingInsertionPoint = 'Resetting insertion point';
  55. SStartingConditionalInclusionIf = 'Starting conditional inclusion (''if'')';
  56. STemporaryFileCreated = 'Created temporary file: %s';
  57. SUpdatingConditionalInclusionElif = 'Updating conditional inclusion (''elif'')';
  58. SUpdatingConditionalInclusionElse = 'Updating conditional inclusion (''else'')';
  59. { Ident manager errors }
  60. SAllocatingMacroLocalArrayUpToEle = 'Allocating macro %s Local array up to element %d';
  61. SArrayDeclared = '%s array declared: %s';
  62. SArrayReDimmed = '%s array redimensioned: %s';
  63. SErrorExecutingMacro = 'Error at %1:d:%d in macro %0:s:'#13#10#13#10'%3:s';
  64. SErrorExecutingMacroFile = 'Error in %1:s at %d:%d in macro %0:s:'#13#10#13#10'%4:s';
  65. SErrorExecutingMacroUnexpected = 'Error executing macro %s: %s';
  66. SFuncError = 'Unexpected error when calling function %s';
  67. SFuncsNoSupportNamedParams = 'Functions do not support named parameters';
  68. SIndexIsOutOfArraySize = 'Index %d is out of array %s size';
  69. SIndexNotSpecifiedForArray = 'Index not specified for array %s';
  70. SInsufficientParams = 'Insufficient parameters';
  71. SLocalArraysIndexError = 'Local arrays can have up to 16 elements (0 to 15)';
  72. SLValueRequiredForByRefParam = 'L-value required for by-reference parameter %s';
  73. SMacroDefined = '%s macro defined: %s';
  74. SParameterlessVariable = 'Variable does not expect any parameters';
  75. SParamSpecifiedTwice = 'Parameter %s specified twice';
  76. SRedeclaredIdentifier = 'Identifier redeclared: %s';
  77. SRequiredParamMissing = 'Required parameter %s missing';
  78. SSuccessfullyCalledFunction = 'Successfully called function %s';
  79. SSuccessfullyCalledMacro = 'Successfully called macro %s';
  80. STooManyActualParams = 'Too many actual parameters';
  81. SUndefined = '%s %s undefined: %s';
  82. SUnknownParam = 'Unknown parameter: %s';
  83. SVariableDefined = '%s variable defined: %s';
  84. SWrongParamType = 'Actual parameter %s is not of the declared type';
  85. SBadLength = 'Bad dimension';
  86. { Parser errors }
  87. SActualParamsNamingConflict = 'All actual parameters must appear either in order of their declaration, or by names';
  88. SCannotConvertToInteger = 'Cannot convert "%s" to integer';
  89. SExpectedButFound = '%s expected but %s found';
  90. SIllegalChar = 'Illegal character in input file: ''%s'' (0x%-2x)';
  91. SIntegerExpressionExpected = 'Integer expression expected';
  92. SLValueRequired = 'Left side cannot be assigned to (expression is not an l-value)';
  93. SOperatorNotApplicableToThisOpera = 'Operator not applicable to this operand type';
  94. SStringExpressionExpected = 'String expression expected';
  95. SUndeclaredIdentifier = 'Undeclared identifier: %s';
  96. SWrongUnaryOperator = 'Wrong unary operator';
  97. { TIsppVariant errors }
  98. SRangeCheckError = 'Range check error';
  99. implementation
  100. end.