home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgLangD.iso / C++-7 / DISK7 / SOURCE / STARTUP / CMSGS.IN$ / CMSGS
Encoding:
Text File  |  1991-11-06  |  3.6 KB  |  125 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.  
  46. ; special error message entries
  47. _RT_CRNL_TXT        EQU <13,10>
  48. _RT_BANNER_TXT        EQU <'run-time error '>
  49.  
  50. ; max length of any _RT_???_TXT message (includes terminating null char)
  51. _RT_MAXTXTLEN        EQU 34
  52.  
  53. ;
  54. ; Definitions that allow caller to strip message out of _RT_STANDARD
  55. ; string:
  56. ;
  57. ; _RT_STANDARD_STARTCHAR = Character that starts an _RT_STANDARD
  58. ; error message.
  59. ;
  60. ; _RT_MATH_STARTCHAR = Character that starts a MATH error message.
  61. ;
  62. ; _RT_STANDARD_ENDCHAR = Character stored at the end of the string
  63. ; portion of an _RT_STANDARD message.
  64. ;
  65.  
  66. _RT_STANDARD_STARTCHAR    equ    <'R'>
  67. _RT_MATH_STARTCHAR    equ    <'M'>
  68. _RT_STANDARD_ENDCHAR    equ    <13>
  69.  
  70.  
  71. ;
  72. ; misc. character constants used throughout C runtime
  73. ;
  74.  
  75. C_LF            EQU 10        ; ASCII linefeed character
  76. C_CR            EQU 13        ; ASCII carriage return
  77. C_SUB            EQU 26        ; ASCII SUB character (^Z)
  78. C_BLANK            EQU ' '        ; ASCII space character
  79. C_TAB            EQU 09h        ; ASCII horizontal tab character
  80. C_QUOTE            EQU '"'        ; ASCII (double) quote charater
  81. C_BACKSLASH        EQU '\'        ; ASCII backward slash character
  82. C_EQUALSIGN        EQU <'='>
  83. C_SEMICOLON        EQU <';'>
  84. C_PERIOD        EQU <'.'>
  85.  
  86. ;
  87. ; overlay manager message constants:
  88. ;
  89.  
  90. _OVL_MSG0_TXT        EQU <"Incorrect DOS version">
  91. _OVL_MSG1_TXT        EQU <"Please insert diskette containing ">
  92. _OVL_MSG2_TXT        EQU <"in drive ">
  93. _OVL_MSG2A_TXT        EQU <": and strike any key when ready.">
  94. _OVL_MSG3_TXT        EQU <"Please restore original diskette.">
  95. _OVL_MSG3A_TXT        EQU <"Strike any key when ready.">
  96. _OVL_MSG4_TXT        EQU <"Overlay not found">
  97. _OVL_MSG5_TXT        EQU <"Cannot find ">
  98. _OVL_MSG6_TXT        EQU <"Overlay Manager stack overflow">
  99. _OVL_MSG7_TXT        EQU <"Please enter new program spec: ">
  100. _OVL_MSG8_TXT        EQU <"Cannot load overlay:  too many open files">
  101.  
  102. ifdef _WINDOWS
  103. ;
  104. ; misc windows strings
  105. ;
  106.  
  107. ifdef _FORTRAN
  108. _WIN_FTITLE_TXT     EQU <"Unit *",0>
  109. else
  110. _WIN_CTITLE_TXT     EQU <"Stdin/Stdout/Stderr",0>
  111. endif
  112.  
  113. endif
  114.  
  115. ;
  116. ; Note: the following should not be modified:
  117. ;
  118.  
  119. _OVL_PATH_TXT        EQU <"PATH=">
  120. _OVL_SEGDBG_TXT        EQU <'CVDEBUG'>
  121.  
  122. _C_FILE_INFO_TXT    EQU <'_C_FILE_INFO'> ; length must be even!
  123. _C_FILE_INFO_LEN    EQU 12        ; strlen(_C_FILE_INFO_TXT) 
  124. .errnz _C_FILE_INFO_LEN AND 1        ; give error if length not even
  125.