2 /* : : generated by proto : : */
3 /***********************************************************************
5 * This software is part of the ast package *
6 * Copyright (c) 1985-2010 AT&T Intellectual Property *
7 * and is licensed under the *
8 * Common Public License, Version 1.0 *
9 * by AT&T Intellectual Property *
11 * A copy of the License is available at *
12 * http://www.opensource.org/licenses/cpl1.0.txt *
13 * (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9) *
15 * Information and Software Systems Research *
19 * Glenn Fowler <gsf@research.att.com> *
20 * David Korn <dgk@research.att.com> *
21 * Phong Vo <kpv@research.att.com> *
23 ***********************************************************************/
29 * Interface definitions for a stack-like storage library
34 #if !defined(__PROTO__)
35 #include <prototyped.h>
37 #if !defined(__LINKAGE__)
38 #define __LINKAGE__ /* 2004-08-11 transition */
47 #define STAK_SMALL STK_SMALL
49 #define stakptr(n) stkptr(stkstd,n)
50 #define staktell() stktell(stkstd)
51 #define stakputc(c) sfputc(stkstd,(c))
52 #define stakwrite(b,n) sfwrite(stkstd,(b),(n))
53 #define stakputs(s) (sfputr(stkstd,(s),0),--stkstd->_next)
54 #define stakseek(n) stkseek(stkstd,n)
55 #define stakcreate(n) stkopen(n)
56 #define stakinstall(s,f) stkinstall(s,f)
57 #define stakdelete(s) stkclose(s)
58 #define staklink(s) stklink(s)
59 #define stakalloc(n) stkalloc(stkstd,n)
60 #define stakcopy(s) stkcopy(stkstd,s)
61 #define stakset(c,n) stkset(stkstd,c,n)
62 #define stakfreeze(n) stkfreeze(stkstd,n)