Files
bitchx/include/stack.h
Kevin Easton 3f87eb31b1 Standardise header include guards
Tokens that begin with two underscores __* or an underscore and an uppercase letter _X* are reserved,
so we should avoid those for our own include guards.  The standard I'm settling on for foo.h is FOO_H_.
2017-05-10 23:30:11 +10:00

49 lines
983 B
C

/*
* stack.h - header for stack.c
*
* written by matthew green
*
* copyright (c) 1993, 1994.
*
* @(#)$Id$
*/
#ifndef STACK_H_
#define STACK_H_
#include "hook.h"
#include "alias.h"
void stackcmd (char *, char *, char *, char *);
#define STACK_POP 0
#define STACK_PUSH 1
#define STACK_SWAP 2
#define STACK_LIST 3
#define STACK_DO_ALIAS 0x0001
#define STACK_DO_ASSIGN 0x0002
typedef struct AliasStru1
{
char *name; /* name of alias */
char *stuff; /* what the alias is */
char *stub; /* the file its stubbed to */
int mark; /* used to prevent recursive aliasing */
int global; /* set if loaded from `global' */
void *what; /* pointer to structure */
int struct_type; /* type of structure */
struct AliasStru1 *next; /* pointer to next alias in list */
} Alias1;
typedef struct aliasstacklist1
{
int which;
char *name;
IrcVariable *set;
enum VAR_TYPES var_index;
Alias1 *list;
struct aliasstacklist1 *next;
} AliasStack1;
#endif /* STACK_H_ */