Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pike
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pikelang
pike
Commits
03f1572e
Commit
03f1572e
authored
28 years ago
by
Fredrik Hübinette (Hubbe)
Browse files
Options
Downloads
Patches
Plain Diff
doc for /precompiled/stack added
Rev: doc/precompiled/stack:1.1
parent
6a87882f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/precompiled/stack
+48
-0
48 additions, 0 deletions
doc/precompiled/stack
with
48 additions
and
0 deletions
doc/precompiled/stack
0 → 100644
+
48
−
0
View file @
03f1572e
NAME
/precompiled/stack - generic stack
DESCRIPTION
/precompiled/stack is a Pike program that implements a generic stack.
The stack can hold any amount of values.
Only three methods are available: push(), pop() and reset()
============================================================================
NAME
push - push a value on the stack
SYNTAX
#include <stack.h>
void stack->push(mixed value)
DESCRIPTION
This function pushes a value on top of the stack. There is always
room for more values on the stack. (Until you run out of memory.)
============================================================================
NAME
pop - pop a value off the stack
SYNTAX
#include <stack.h>
mixed stack->pop()
DESCRIPTION
This function pops the topmost value off the stack. If there are
no values left on the stack a 'stack underflow' error is generated.
============================================================================
NAME
reset - remove all values from the stack
SYNTAX
#include <stack.h>
void stack->reset()
DESCRIPTION
This function simply returns the stack to it's original state: empty.
============================================================================
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment