KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q67881: C 6.00 Pragmas Supported by QuickC

Article: Q67881
Product(s): See article
Version(s): 2.50 2.00
Operating System(s): MS-DOS
Keyword(s): ENDUSER | | mspl13_c
Last Modified: 16-JAN-1991

The QuickC online help system documents support for the following four
pragmas:

   check_stack, check_pointer, message, and pack

Six pragmas are actually supported, but using any of the others (which
are also supported by the C 6.00 compiler) with QuickC will have no
effect, even though warnings are generated for only four of them.

Below is a list of pragmas supported by the C compiler version 6.00
and the behavior exhibited by QuickC versions 2.00 and 2.50 when they
are encountered in a source file. Those that are not supported and
that actually issue a warning will generate the following warning
message:

   C4118: pragma not supported

   A pragma that the compiler does not support was used. The pragma
   was ignored.

   Pragma                       Behavior
   ------                       --------

   #pragma alloc_text()         Supported but not documented

   #pragma check_pointer()      Supported and documented

   #pragma check_stack()        Supported and documented

   #pragma comment()            Not supported -- issues a warning at level
                                3 and above.

   #pragma intrinsic()          Not supported -- issues a warning at level
                                1 and above.

   #pragma function()           Not supported -- issues a warning at level
                                1 and above.

   #pragma linesize()           Not supported -- ignored (but is only
                                useful with /Fs, which is not
                                supported by QuickC).

   #pragma loop_opt()           Supported (but only with -Ol -- otherwise
                                ignored).

   #pragma message()            Supported and documented.

   #pragma optimize             Not supported -- ignored.

   #pragma pack()               Supported and documented.

   #pragma page()               Not supported -- ignored, same as
                                linesize.

   #pragma pagesize()           Not supported -- ignored, same as
                                linesize.

   #pragma same_seg()           Not supported -- issues a warning at level
                                1 and above.

   #pragma skip()               Not supported -- ignored, same as
                                linesize.

   #pragma subtitle()           Not supported -- ignored, same as
                                linesize.

   #pragma title()              Not supported -- ignored, same as
                                linesize.

THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Copyright Microsoft Corporation 1986-2002.