📄 jcov.h
字号:
/*
* @(#)jcov.h 1.2 96/12/17
*
* Copyright (c) 1996 Sun Microsystems, Inc. All Rights Reserved.
*
* Permission to use, copy, modify, and distribute this software
* and its documentation for NON-COMMERCIAL purposes and without
* fee is hereby granted provided that this copyright notice
* appears in all copies. Please refer to the file "copyright.html"
* for further important copyright and licensing information.
*
* SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF
* THE SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
* TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
* PARTICULAR PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR
* ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR
* DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.
*/
/*
* Definitions for the Jcov 10/27/96
* @author Leonid Arbouzov
* leo@nbsp.nsk.su
*/
#ifndef _JCOV_H_
#define _JCOV_H_
extern char* testname; /* Name of test */
extern char* cov_file; /* Name of code coverage file */
#define CT_METHOD 1
#define CT_FIKT_METHOD 2
#define CT_BLOCK 3
#define CT_FIKT_RET 4
#define CT_CASE 5
#define CT_SWITH_WO_DEF 6
#define CT_BRANCH_TRUE 7
#define CT_BRANCH_FALSE 8
#if defined(IBM_MIXED_MODE) /*ibm.6205*/
/* No JavaFrame for Mixed Mode, so accept methodblock directly */
extern void coverage_if(int flg, struct methodblock *mb, unsigned char *pc);
extern void coverage_switch(struct methodblock *mb, unsigned char *pc, int key, int low, int high);
extern void coverage_lookupswitch(struct methodblock *mb, unsigned char *pc, int npairs, int nodef);
#else /* !IBM_MIXED_MODE */ /*ibm.6205*/
extern void coverage_if(int flg, JavaFrame *frame, unsigned char *pc);
extern void coverage_switch(JavaFrame *frame, unsigned char *pc, int key, int low, int high);
extern void coverage_lookupswitch(JavaFrame *frame, unsigned char *pc, int npairs, int nodef);
#endif /* !IBM_MIXED_MODE */ /*ibm.6205*/
extern void java_cov_dump();
extern int jcov_write_data(char *);
#endif /* ! _JCOV_H_ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -