📄 statstak.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.
*
******************************************************************************/
/*********************************************
*
* 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -