home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 November / Chip_1998-11_cd.bin / tema / Cafe / main.bin / jcov.h < prev    next >
C/C++ Source or Header  |  1997-11-24  |  2KB  |  49 lines

  1. /*
  2.  * @(#)jcov.h    1.2 96/12/17  
  3.  *
  4.  * Copyright (c) 1996 Sun Microsystems, Inc. All Rights Reserved.
  5.  *
  6.  * Permission to use, copy, modify, and distribute this software
  7.  * and its documentation for NON-COMMERCIAL purposes and without
  8.  * fee is hereby granted provided that this copyright notice
  9.  * appears in all copies. Please refer to the file "copyright.html"
  10.  * for further important copyright and licensing information.
  11.  *
  12.  * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF
  13.  * THE SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
  14.  * TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
  15.  * PARTICULAR PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR
  16.  * ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR
  17.  * DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.
  18.  */
  19.  
  20. /*
  21.  * Definitions for the Jcov    10/27/96
  22.  * @author Leonid Arbouzov 
  23.  * leo@nbsp.nsk.su 
  24.  */
  25.  
  26. #ifndef _JCOV_H_
  27. #define _JCOV_H_
  28.  
  29. extern char* testname;         /* Name of test */
  30. extern char* cov_file;        /* Name of code coverage file */
  31.  
  32. #define CT_METHOD         1
  33. #define CT_FIKT_METHOD      2 
  34. #define CT_BLOCK          3 
  35. #define CT_FIKT_RET      4 
  36. #define CT_CASE           5 
  37. #define CT_SWITH_WO_DEF      6 
  38. #define CT_BRANCH_TRUE      7 
  39. #define CT_BRANCH_FALSE      8 
  40.  
  41. extern void coverage_if(int flg, JavaFrame *frame, unsigned char *pc);
  42. extern void coverage_switch(JavaFrame *frame, unsigned char *pc, int key, int low, int high);
  43. extern void coverage_lookupswitch(JavaFrame *frame, unsigned char *pc, int npairs, int nodef);
  44.  
  45. extern void java_cov_dump();
  46. extern int  jcov_write_data(char *);
  47.  
  48. #endif /* ! _JCOV_H_ */
  49.