r2protos.h

来自「这是一个C程序分析工具」· C头文件 代码 · 共 49 行

H
49
字号
/*==================================================*/
/* UNIT   : @(#)r2protos.h	2.3  -  08/04/99 */
/*==================================================*/

#ifndef __R2PROTOS_H__
#define __R2PROTOS_H__

#ifdef __cplusplus
extern "C" {
#endif

int R2True(char * R2srcfile_ptr, int line);
/*  Entered when a expresion for an if, for, or while statement is*/
/*  encountered and returns true.  Writes to the current trace,*/
/*  gCurrentTrace.  Inputs include the source file and the line number of */
/*  the instrumented if, for, or while statement.  */
int R2False(char * R2srcfile_ptr, int line);
/*  Entered when a expresion for an if, for, or while statement is */
/*  encountered and returns false.  Writes to the current trace,  */
/*  gCurrentTrace.  Inputs include the source file and the line number of */
/*  the instrumented if, for, or while statement. */
int R2Switch(char * R2srcfile_ptr, int line, int switchValue);
/*  Entered when a switch statement is encountered.  Writes to the current */
/*  trace, gCurrentTrace.  Inputs include the source file, the line */
/*  number, and the switch value for the instrumented switch.*/
int R2Close(int RtnValue);
/*  Close the current trace, gCurrentTrace.*/
int R2Suspend();
/*  Sets R2STATUS to suspend for the current trace.*/
int R2Resume();
/*  If R2STATUS is currently in R2SUSPEND then status will be changed to*/
/*  R2OPEN for the current trace.*/
int R2Comment(char *msg_ptr);
/*  Writes the message to the current trace file, gCurrentTrace.*/
int R2NewTrace(char *r2newfile);
/*  Closes the current trace if R2STATUS not R2CLOSED already.  Then calls*/
/*  R2Open to open the new trace file r2newfile.  */
int R2Entry(char * R2srcfile_ptr, int line);
/*  Entered at the beginning of a function and returns the value 1. Writes*/
/*  to the current trace, gCurrentTrace.  Inputs include the source file  */
/*  and the line number of the instrumented entry point. */


#ifdef __cplusplus
}
#endif

#endif  /* __R2PROTOS_H__ */

⌨️ 快捷键说明

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