Blame extension/stack.h

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