File: stack.h%2Cv

package info (click to toggle)
rpncalc 1.20-2
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 244 kB
  • ctags: 101
  • sloc: ansic: 871; sed: 72; makefile: 70
file content (99 lines) | stat: -rw-r--r-- 2,334 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
head	1.2;
access;
symbols;
locks; strict;
comment	@ * @;


1.2
date	97.01.19.18.56.40;	author david;	state Rel;
branches;
next	1.1;

1.1
date	97.01.19.18.19.23;	author david;	state Exp;
branches;
next	;


desc
@Header file for stack.c
@


1.2
log
@Declaration of all stack related functions.
@
text
@/************************************************************************
 * stack.h -- part of rpncalc.c						*
 *									*
 * Refer to rpncalc.c for copyrights and license permissions.           *
 ************************************************************************/

/* $Id: stack.h,v 1.1 1997/01/19 18:19:23 david Exp david $
 * $Log: stack.h,v $
 * Revision 1.1  1997/01/19 18:19:23  david
 * Initial revision
 *
 */

struct elm
{
  double value;
  struct elm *prev, *next;
};

double push(double elem);
double pop(void);
double pick(double op1);
double drop(void);
double dupel(double d);
double dupel2(double d);
double dupn(double n, double d);
double dropn(double n);
double clear(void);
double over(void);
double depth(void);
double swap(void);
double roll(void);
double showstack(void);
double sethex(void);
double setdec(void);
double setoct(void);
double setchar(void);
@


1.1
log
@Initial revision
@
text
@d4 1
a4 19
 * A little RPN (Reverse Polish Notation) calculator,                   *
 * rudimentary emulating a HP 28S. 					*
 * 								        *
 * rpncalc is (c) David Frey, 1993, 1994, 1995				*
 *								        * 
 * This program is free software; you can redistribute it and/or modify *
 * it under the terms of the GNU General Public License as published by *
 * the Free Software Foundation; either version 2 of the License, or    *
 * (at your option) any later version.                                  *
 *									* 
 * This program is distributed in the hope that it will be useful,      *
 * but WITHOUT ANY WARRANTY; without even the implied warranty of       *
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the        *
 * GNU General Public License for more details.                         *
 *									* 
 * You should have received a copy of the GNU General Public License    *
 * along with this program; if not, write to the Free Software          *
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.            *
 *									* 
d7 5
a11 2
/* $Id$
 * $Log$
@