entry.h

来自「开放源码的编译器open watcom 1.6.0版的源代码」· C头文件 代码 · 共 420 行 · 第 1/2 页

H
420
字号
/****************************************************************************
*
*                            Open Watcom Project
*
*    Portions Copyright (c) 1983-2002 Sybase, Inc. All Rights Reserved.
*
*  ========================================================================
*
*    This file contains Original Code and/or Modifications of Original
*    Code as defined in and that are subject to the Sybase Open Watcom
*    Public License version 1.0 (the 'License'). You may not use this file
*    except in compliance with the License. BY USING THIS FILE YOU AGREE TO
*    ALL TERMS AND CONDITIONS OF THE LICENSE. A copy of the License is
*    provided with the Original Code and Modifications, and is also
*    available at www.sybase.com/developer/opensource.
*
*    The Original Code and all software distributed under the License are
*    distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
*    EXPRESS OR IMPLIED, AND SYBASE AND ALL CONTRIBUTORS HEREBY DISCLAIM
*    ALL SUCH WARRANTIES, INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF
*    MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR
*    NON-INFRINGEMENT. Please see the License for the specific language
*    governing rights and limitations under the License.
*
*  ========================================================================
*
* Description:  Alternate entry points for WATFOR-77
*
****************************************************************************/


// Functions are in uppercase, do not have underscores on the end, and
// perform a jump to the appropriate function.

#if defined( __386__ )
  #define _ALT_ENABLED  0       // not necessary for 32-bit
#else
  #define _ALT_ENABLED  0       // disabled (currently WATFOR-77 doesn't have
#endif                          // enough memory to load the graphics library)


#if _ALT_ENABLED
  #define Entry( f1, f2 )       void f1( void ) {  \
                                   JMP ## f2();    \
                                }
#else
  #define Entry( f1, f2 )
#endif


#if _ALT_ENABLED

void JMP_arc();
void JMP_arc_w();
void JMP_arc_w_87();
void JMP_arc_wxy();
void JMP_clearscreen();
void JMP_displaycursor();
void JMP_ellipse();
void JMP_ellipse_w();
void JMP_ellipse_w_87();
void JMP_ellipse_wxy();
void JMP_floodfill();
void JMP_floodfill_w();
void JMP_floodfill_w_87();
void JMP_getactivepage();
void JMP_getarcinfo();
void JMP_getbkcolor();
void JMP_getcliprgn();
void JMP_getcolor();
void JMP_getcurrentposition();
void JMP_getcurrentposition_w();
void JMP_getfillmask();
void JMP_getfontinfo();
void JMP_getgtextextent();
void JMP_getgtextvector();
void JMP_getimage();
void JMP_getimage_w();
void JMP_getimage_w_87();
void JMP_getimage_wxy();
void JMP_getlinestyle();
void JMP_getlogcoord();
void JMP_getphyscoord();
void JMP_getpixel();
void JMP_getpixel_w();
void JMP_getpixel_w_87();
void JMP_getplotaction();
void JMP_gettextcolor();
void JMP_gettextcursor();
void JMP_gettextextent();
void JMP_gettextposition();
void JMP_gettextsettings();
void JMP_gettextwindow();
void JMP_getvideoconfig();
void JMP_getviewcoord_w();
void JMP_getviewcoord_w_87();
void JMP_getviewcoord_wxy();
void JMP_getvisualpage();
void JMP_getwindowcoord();
void JMP_grstatus();
void JMP_grtext();
void JMP_grtext_w();
void JMP_grtext_w_87();
void JMP_imagesize();
void JMP_imagesize_w();
void JMP_imagesize_w_87();
void JMP_imagesize_wxy();
void JMP_lineto();
void JMP_lineto_w();
void JMP_lineto_w_87();
void JMP_moveto();
void JMP_moveto_w();
void JMP_moveto_w_87();
void JMP_outgtext();
void JMP_outmem();
void JMP_outtext();
void JMP_pie();
void JMP_pie_w();
void JMP_pie_w_87();
void JMP_pie_wxy();
void JMP_polygon();
void JMP_polygon_w();
void JMP_polygon_wxy();
void JMP_putimage();
void JMP_putimage_w();
void JMP_putimage_w_87();
void JMP_rectangle();
void JMP_rectangle_w();
void JMP_rectangle_w_87();
void JMP_rectangle_wxy();
void JMP_registerfonts();
void JMP_remapallpalette();
void JMP_remappalette();
void JMP_scrolltextwindow();
void JMP_selectpalette();
void JMP_setactivepage();
void JMP_setbkcolor();
void JMP_setcharsize();
void JMP_setcharsize_w();
void JMP_setcharsize_w_87();
void JMP_setcharspacing();
void JMP_setcharspacing_w();
void JMP_setcharspacing_w_87();
void JMP_setclip();
void JMP_setcliprgn();
void JMP_setcolor();
void JMP_setfillmask();
void JMP_setfont();
void JMP_setgtextvector();
void JMP_setlinestyle();
void JMP_setlogorg();
void JMP_setpixel();
void JMP_setpixel_w();
void JMP_setpixel_w_87();
void JMP_setplotaction();
void JMP_setstylewrap();
void JMP_settextalign();
void JMP_settextcolor();
void JMP_settextcursor();
void JMP_settextorient();
void JMP_settextpath();
void JMP_settextposition();
void JMP_settextrows();
void JMP_settextwindow();
void JMP_settransparency();
void JMP_setvideomode();
void JMP_setvideomoderows();
void JMP_setviewport();
void JMP_setvisualpage();
void JMP_setwindow();
void JMP_setwindow_87();
void JMP_unregisterfonts();
void JMP_wrapon();

#pragma aux JMP_arc                     = 0xe9 offset _arc;
#pragma aux JMP_arc_w                   = 0xe9 offset _arc_w;
#pragma aux JMP_arc_w_87                = 0xe9 offset _arc_w_87;
#pragma aux JMP_arc_wxy                 = 0xe9 offset _arc_wxy;
#pragma aux JMP_clearscreen             = 0xe9 offset _clearscreen;
#pragma aux JMP_displaycursor           = 0xe9 offset _displaycursor;
#pragma aux JMP_ellipse                 = 0xe9 offset _ellipse;
#pragma aux JMP_ellipse_w               = 0xe9 offset _ellipse_w;
#pragma aux JMP_ellipse_w_87            = 0xe9 offset _ellipse_w_87;
#pragma aux JMP_ellipse_wxy             = 0xe9 offset _ellipse_wxy;
#pragma aux JMP_floodfill               = 0xe9 offset _floodfill;
#pragma aux JMP_floodfill_w             = 0xe9 offset _floodfill_w;
#pragma aux JMP_floodfill_w_87          = 0xe9 offset _floodfill_w_87;
#pragma aux JMP_getactivepage           = 0xe9 offset _getactivepage;
#pragma aux JMP_getarcinfo              = 0xe9 offset _getarcinfo;
#pragma aux JMP_getbkcolor              = 0xe9 offset _getbkcolor;
#pragma aux JMP_getcliprgn              = 0xe9 offset _getcliprgn;
#pragma aux JMP_getcolor                = 0xe9 offset _getcolor;
#pragma aux JMP_getcurrentposition      = 0xe9 offset _getcurrentposition;
#pragma aux JMP_getcurrentposition_w    = 0xe9 offset _getcurrentposition_w;
#pragma aux JMP_getfillmask             = 0xe9 offset _getfillmask;
#pragma aux JMP_getfontinfo             = 0xe9 offset _getfontinfo;
#pragma aux JMP_getgtextextent          = 0xe9 offset _getgtextextent;
#pragma aux JMP_getgtextvector          = 0xe9 offset _getgtextvector;
#pragma aux JMP_getimage                = 0xe9 offset _getimage;
#pragma aux JMP_getimage_w              = 0xe9 offset _getimage_w;
#pragma aux JMP_getimage_w_87           = 0xe9 offset _getimage_w_87;
#pragma aux JMP_getimage_wxy            = 0xe9 offset _getimage_wxy;
#pragma aux JMP_getlinestyle            = 0xe9 offset _getlinestyle;
#pragma aux JMP_getlogcoord             = 0xe9 offset _getlogcoord;
#pragma aux JMP_getphyscoord            = 0xe9 offset _getphyscoord;
#pragma aux JMP_getpixel                = 0xe9 offset _getpixel;
#pragma aux JMP_getpixel_w              = 0xe9 offset _getpixel_w;
#pragma aux JMP_getpixel_w_87           = 0xe9 offset _getpixel_w_87;
#pragma aux JMP_getplotaction           = 0xe9 offset _getplotaction;
#pragma aux JMP_gettextcolor            = 0xe9 offset _gettextcolor;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?