callinfo.h
来自「开放源码的编译器open watcom 1.6.0版的源代码」· C头文件 代码 · 共 101 行
H
101 行
/****************************************************************************
*
* 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: front end calling info structure and initialization
*
****************************************************************************/
#ifndef __CALLINFO_H__
#define __CALLINFO_H__
#if !defined( BY_C_FRONT_END ) && !defined( BY_CPP_FRONT_END ) && !defined( BY_FORTRAN_FRONT_END )
#error "!!!! Call info - Unknown front end !!!!"
#else
struct aux_info {
call_class cclass;
union {
#if _RISC_CPU
risc_byte_seq *code;
#else
byte_seq *code;
#endif
int code_size; // for C pre-compiled header
};
union {
hw_reg_set *parms;
int parms_size; // for C pre-compiled header
};
hw_reg_set returns;
hw_reg_set streturn;
hw_reg_set save;
union {
char *objname;
int objname_size; // for C pre-compiled header
};
unsigned use; // use count
aux_flags flags;
unsigned index; // for C/C++ pre-compiled header
#ifdef BY_C_FRONT_END
#if _CPU == 370
linkage_regs *linkage;
#endif
#if _CPU == _AXP
char *except_rtn;
#endif
#endif
};
global struct aux_info DefaultInfo;
global struct aux_info WatcallInfo;
global struct aux_info CdeclInfo;
global struct aux_info PascalInfo;
global struct aux_info FortranInfo;
global struct aux_info SyscallInfo;
global struct aux_info OptlinkInfo;
global struct aux_info StdcallInfo;
global struct aux_info FastcallInfo;
#if _CPU == 386
global struct aux_info Far16CdeclInfo;
global struct aux_info Far16PascalInfo;
#endif
extern void PragmaAuxInfoInit( int );
extern void SetAuxStackConventions( void );
extern void SetAuxWatcallInfo( void );
extern void SetAuxDefaultInfo( void );
extern int IsAuxParmsBuiltIn( hw_reg_set *parms );
extern int IsAuxInfoBuiltIn( struct aux_info *info );
extern char *VarNamePattern( struct aux_info *inf );
#endif
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?