statstak.h

来自「基于单片机的 snmp协议解析的一些原代码 给有用的 同行」· C头文件 代码 · 共 60 行

H
60
字号
//  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.
 *
 ******************************************************************************/


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

//Statement stack header file

struct STSTK
{
	int index;
   int evaluated;
   struct STSTK *next;
};
#define NOT_YET_EVALUATED  0
#define ALREADY_EVALUATED	1

void push(struct STSTK **the_stack, int index, int eval);
void pop(struct STSTK **the_stack);
int get_top_index(struct STSTK *the_stack);
int get_top_evaluated(struct STSTK *the_stack);
int stack_empty(struct STSTK *the_stack);
void set_top_evaluated(struct STSTK *the_stack, int eval);
void extract(struct STSTK **the_stack, int index);
void dump_stat_stak(struct STSTK *the_stack);

⌨️ 快捷键说明

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