home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / x / xcu16.zip / wlmCompiler / CuStack.h < prev    next >
C/C++ Source or Header  |  1991-10-03  |  2KB  |  53 lines

  1. /*
  2.  * Copyright 1991 Cornell University
  3.  *
  4.  * Permission to use, copy, modify, and distribute this software and its
  5.  * documentation for any purpose and without fee is hereby granted, provided
  6.  * that the above copyright notice appear in all copies and that both that
  7.  * copyright notice and this permission notice appear in supporting
  8.  * documentation, and that the name of Cornell U. not be used in advertising
  9.  * or publicity pertaining to distribution of the software without specific,
  10.  * written prior permission.  Cornell U. makes no representations about the
  11.  * suitability of this software for any purpose.  It is provided "as is"
  12.  * without express or implied warranty.
  13.  *
  14.  * CORNELL UNIVERSITY DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
  15.  * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
  16.  * EVENT SHALL CORNELL UNIVERSITY BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  17.  * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
  18.  * USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  19.  * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  20.  * PERFORMANCE OF THIS SOFTWARE.
  21.  *
  22.  * Author:  Gene W. Dykes, Program of Computer Graphics
  23.  *          580 Theory Center, Cornell University, Ithaca, NY 14853
  24.  *          (607) 255-6713   gwd@graphics.cornell.edu
  25.  */
  26.  
  27.  
  28. #ifndef _Cu_Stack_h
  29. #define _Cu_Stack_h
  30.  
  31. #include "CuGrow.h"
  32.  
  33. #define STACK_NEXT_POP  -1
  34. #define STACK_NEXT_PULL -2
  35.  
  36. typedef
  37. struct s_stack
  38.     {
  39.     char *name ;
  40.     int    n ;
  41.     Grow *grow ;
  42.     } Stack ;
  43.  
  44. void Cu_stack_create () ;
  45. void Cu_stack_push () ;
  46. int Cu_stack_pull () ;
  47. int Cu_stack_pop () ;
  48. int Cu_stack_peek () ;
  49. void Cu_stack_kill () ;
  50. int Cu_stack_size () ;
  51.  
  52. #endif _Cu_Stack_h
  53.