Blame extension/stack.h

Packit 575503
/*
Packit 575503
 * stack.h -- Definitions for stack functions for use by extensions.
Packit 575503
 */
Packit 575503
Packit 575503
/* 
Packit 575503
 * Copyright (C) 2012, 2013 the Free Software Foundation, Inc.
Packit 575503
 * 
Packit 575503
 * This file is part of GAWK, the GNU implementation of the
Packit 575503
 * AWK Programming Language.
Packit 575503
 * 
Packit 575503
 * GAWK is free software; you can redistribute it and/or modify
Packit 575503
 * it under the terms of the GNU General Public License as published by
Packit 575503
 * the Free Software Foundation; either version 3 of the License, or
Packit 575503
 * (at your option) any later version.
Packit 575503
 * 
Packit 575503
 * GAWK is distributed in the hope that it will be useful,
Packit 575503
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 575503
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit 575503
 * GNU General Public License for more details.
Packit 575503
 * 
Packit 575503
 * You should have received a copy of the GNU General Public License
Packit 575503
 * along with this program; if not, write to the Free Software
Packit 575503
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
Packit 575503
 */
Packit 575503
Packit 575503
extern int stack_empty();	/* return true if stack is empty */
Packit 575503
extern void *stack_top();	/* return top object on the stack */
Packit 575503
extern void *stack_pop();	/* pop top object and return it */
Packit 575503
extern int stack_push(void *);	/* push an object onto the stack,
Packit 575503
				 * return 0 if failed, 1 if success 
Packit 575503
				 */