⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 stattab.h

📁 基于单片机的 snmp协议解析的一些原代码 给有用的 同行
💻 H
字号:
//  Copyright (c) 1996  Federal Highway Administration
//
//  This software has been developed for the Federal Highway Administration
//  by Viggen Corporation under contract with Oak Ridge National Lab.
//
//  Permission to use, copy, and distribute this software for any purpose
//  without fee is hereby granted, provided that the above copyright notice
//  appears in all copies and that both the copyright and this permission notice
//  appear in the supporting documentation.
//
//  Permission to modify this software is granted provided that the above
//  copyright and this permission notice appears in the modified software.
//
//  This software is provided "as is" with no warranty expressed or implied.
//
//  For additional information, please go to the Web site www.ntcip.org.
//
/*******************************************************************************
 *
 * Copyright (c) 1997 Viggen Corporation
 *
 * Permission to use, copy, and distribute this software for any purpose
 * without fee is hereby granted, provided that this copyright notice
 * appears in all copies and this permission notice appears in the
 * supporting documentation.
 *
 * Permission to modify this software is granted provided that the above
 * copyright and this permission notice appears in the modified software.
 *
 ******************************************************************************/


 /*********************************************
 *
 * stattab.h
 *
 * 9/29/97		Glenn Pruitt
 *********************************************/


struct STTAB
{
	int index;
   long start;
   long end;
   int type;
   int next_statement;
   int jump_statement;
   struct STTAB *next;
};
#define DECLARATION_TYPE   1
#define ASSIGNMENT_TYPE    2
#define FUNCTIONCALL_TYPE  3
#define LABEL_TYPE         4
#define IF_TYPE            5
#define WHILE_TYPE         6
#define GOTO_TYPE          7

void insert_statement_record(struct STTAB **the_table, int index,
		long start, long end, int type, int next, int jump);
char *get_statement_text(struct STTAB *the_table, int index,
		char *filename, char *buffer);
int get_next_index(struct STTAB *the_table, int index);
int set_next_index_to_null(struct STTAB *the_table, int index);
int get_jump_index(struct STTAB *the_table, int index);
int get_statement_type(struct STTAB *the_table, int index);
int count_statements(struct STTAB *the_table); 
int statement_exists(struct STTAB *the_table, int index);
long get_start_position(struct STTAB *the_table, int index);
void delete_statement_table(struct STTAB **the_table);

⌨️ 快捷键说明

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