home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c480 / 19.ddi / SOURCE / STARTUP / CMSGS.IN_ / CMSGS.IN
Encoding:
Text File  |  1993-02-08  |  3.7 KB  |  126 lines

  1. ;***
  2. ;cmsgs.inc - defines all C run-time library system messages 
  3. ;
  4. ;    Copyright (c) 1990-1992, Microsoft Corporation.  All rights reserved.
  5. ;
  6. ;Purpose:
  7. ;    The file defines in one place all literal text strings used within
  8. ;    the C run-time library.  Same as cmsgs.h.
  9. ;
  10. ;*******************************************************************************
  11.  
  12. ;
  13. ; fatal run-time error messages
  14. ;
  15.  
  16. _RT_STACK_TXT        EQU <'stack overflow'>
  17. _RT_NULLPTR_TXT        EQU <'null pointer assignment'>
  18. _RT_FLOAT_TXT        EQU <'floating-point support not loaded'>
  19. _RT_INTDIV_TXT        EQU <'integer divide by 0'>
  20.  
  21. _RT_EXECMEM_TXT        EQU <'not enough memory on exec'>
  22. _RT_EXECFORM_TXT    EQU <'invalid format on exec'>
  23. _RT_EXECENV_TXT        EQU <'invalid environment on exec'>
  24.  
  25. _RT_SPACEARG_TXT    EQU <'not enough space for arguments'>
  26. _RT_SPACEENV_TXT    EQU <'not enough space for environment'>
  27.  
  28. ifdef    _WINDOWS
  29. _RT_ABORT_TXT        EQU <'ABNORMAL PROGRAM TERMINATION'>
  30. else
  31. _RT_ABORT_TXT        EQU <"abnormal program termination">
  32. endif    ;_WINDOWS
  33.  
  34. _RT_NPTR_TXT        EQU <'illegal near-pointer use'>
  35. _RT_FPTR_TXT        EQU <'illegal far-pointer use'>
  36.  
  37. ; _RT_BREAK_TXT        EQU <'control-BREAK encountered'>    ; QC 1.0 only
  38. ; _RT_INT_TXT        EQU <'unexpected interrupt'>        ; QC 1.0 only
  39.  
  40. _RT_THREAD_TXT        EQU <'not enough space for thread data'>
  41. _RT_LOCK_TXT        EQU <'unexpected multithread lock error'>
  42. _RT_HEAP_TXT        EQU <'unexpected heap error'>
  43. _RT_QWIN_TXT        EQU <'unexpected QuickWin error'>
  44. _RT_NOMAIN_TXT        EQU <'no main procedure'>
  45. _RT_PURVIRT_TXT        EQU <'pure virtual function call'>
  46.  
  47. ; special error message entries
  48. _RT_CRNL_TXT        EQU <13,10>
  49. _RT_BANNER_TXT        EQU <'run-time error '>
  50.  
  51. ; max length of any _RT_???_TXT message (includes terminating null char)
  52. _RT_MAXTXTLEN        EQU 34
  53.  
  54. ;
  55. ; Definitions that allow caller to strip message out of _RT_STANDARD
  56. ; string:
  57. ;
  58. ; _RT_STANDARD_STARTCHAR = Character that starts an _RT_STANDARD
  59. ; error message.
  60. ;
  61. ; _RT_MATH_STARTCHAR = Character that starts a MATH error message.
  62. ;
  63. ; _RT_STANDARD_ENDCHAR = Character stored at the end of the string
  64. ; portion of an _RT_STANDARD message.
  65. ;
  66.  
  67. _RT_STANDARD_STARTCHAR    equ    <'R'>
  68. _RT_MATH_STARTCHAR    equ    <'M'>
  69. _RT_STANDARD_ENDCHAR    equ    <13>
  70.  
  71.  
  72. ;
  73. ; misc. character constants used throughout C runtime
  74. ;
  75.  
  76. C_LF            EQU 10        ; ASCII linefeed character
  77. C_CR            EQU 13        ; ASCII carriage return
  78. C_SUB            EQU 26        ; ASCII SUB character (^Z)
  79. C_BLANK            EQU ' '        ; ASCII space character
  80. C_TAB            EQU 09h        ; ASCII horizontal tab character
  81. C_QUOTE            EQU '"'        ; ASCII (double) quote charater
  82. C_BACKSLASH        EQU '\'        ; ASCII backward slash character
  83. C_EQUALSIGN        EQU <'='>
  84. C_SEMICOLON        EQU <';'>
  85. C_PERIOD        EQU <'.'>
  86.  
  87. ;
  88. ; overlay manager message constants:
  89. ;
  90.  
  91. _OVL_MSG0_TXT        EQU <"Incorrect DOS version">
  92. _OVL_MSG1_TXT        EQU <"Please insert diskette containing ">
  93. _OVL_MSG2_TXT        EQU <"in drive ">
  94. _OVL_MSG2A_TXT        EQU <": and strike any key when ready.">
  95. _OVL_MSG3_TXT        EQU <"Please restore original diskette.">
  96. _OVL_MSG3A_TXT        EQU <"Strike any key when ready.">
  97. _OVL_MSG4_TXT        EQU <"Overlay not found">
  98. _OVL_MSG5_TXT        EQU <"Cannot find ">
  99. _OVL_MSG6_TXT        EQU <"Overlay Manager stack overflow">
  100. _OVL_MSG7_TXT        EQU <"Please enter new program spec: ">
  101. _OVL_MSG8_TXT        EQU <"Cannot load overlay:  too many open files">
  102.  
  103. ifdef _WINDOWS
  104. ;
  105. ; misc windows strings
  106. ;
  107.  
  108. ifdef _FORTRAN
  109. _WIN_FTITLE_TXT     EQU <"Unit *",0>
  110. else
  111. _WIN_CTITLE_TXT     EQU <"Stdin/Stdout/Stderr",0>
  112. endif
  113.  
  114. endif
  115.  
  116. ;
  117. ; Note: the following should not be modified:
  118. ;
  119.  
  120. _OVL_PATH_TXT        EQU <"PATH=">
  121. _OVL_SEGDBG_TXT        EQU <'CVDEBUG'>
  122.  
  123. _C_FILE_INFO_TXT    EQU <'_C_FILE_INFO'> ; length must be even!
  124. _C_FILE_INFO_LEN    EQU 12        ; strlen(_C_FILE_INFO_TXT) 
  125. .errnz _C_FILE_INFO_LEN AND 1        ; give error if length not even
  126.