OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [gdb/] [gdbtcl/] [data.ith] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
# Data-type class definitions for GDBtk.
2
# Copyright 1997, 1998, 1999 Cygnus Solutions
3
#
4
# This program is free software; you can redistribute it and/or modify it
5
# under the terms of the GNU General Public License (GPL) as published by
6
# the Free Software Foundation; either version 2 of the License, or (at
7
# your option) any later version.
8
#
9
# This program is distributed in the hope that it will be useful,
10
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
# GNU General Public License for more details.
13
 
14
# Generic Stack
15
class Stack {
16
 
17
  public {
18
    method constructor {}
19
    method destructor {}
20
 
21
    # Pop the stack. Empty string means empty stack.
22
    method pop {}
23
 
24
    # Push ARGS onto the stack.
25
    method push {args}
26
  }
27
 
28
  protected variable _stack
29
}
30
 
31
# Generic Queue
32
class Queue {
33
  inherit Stack
34
 
35
  public {
36
    method constructor {}
37
    method destructor {}
38
 
39
    # Pop the queue. Empty string means empty queue.
40
    method pop {}
41
  }
42
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.