My Project
Loading...
Searching...
No Matches
Public Member Functions | Data Fields
libstack Class Reference

#include <subexpr.h>

Public Member Functions

void push (const char *p, char *libname)
 
libstackv pop (const char *p)
 
char * get ()
 

Data Fields

libstackv next
 
char * libname
 
BOOLEAN to_be_done
 
int cnt
 

Detailed Description

Definition at line 161 of file subexpr.h.

Member Function Documentation

◆ get()

char * libstack::get ( )
inline

Definition at line 170 of file subexpr.h.

170{ return(libname); }
char * libname
Definition: subexpr.h:165

◆ pop()

libstackv libstack::pop ( const char *  p)

Definition at line 1520 of file iplib.cc.

1521{
1522 libstackv ls = this;
1523 omFree((ADDRESS)ls->libname);
1524 library_stack = ls->next;
1526 return(library_stack);
1527}
void * ADDRESS
Definition: auxiliary.h:119
libstackv next
Definition: subexpr.h:164
VAR libstackv library_stack
Definition: iplib.cc:68
#define omFree(addr)
Definition: omAllocDecl.h:261
#define omFreeBin(addr, bin)
Definition: omAllocDecl.h:259
EXTERN_VAR omBin libstack_bin
Definition: subexpr.h:176

◆ push()

void libstack::push ( const char *  p,
char *  libname 
)

Definition at line 1499 of file iplib.cc.

1500{
1501 libstackv lp;
1502 if( !iiGetLibStatus(libn))
1503 {
1504 for(lp = this;lp!=NULL;lp=lp->next)
1505 {
1506 if(strcmp(lp->get(), libn)==0) break;
1507 }
1508 if(lp==NULL)
1509 {
1511 ls->next = this;
1512 ls->libname = omStrDup(libn);
1513 ls->to_be_done = TRUE;
1514 if(library_stack != NULL) ls->cnt = library_stack->cnt+1; else ls->cnt = 0;
1515 library_stack = ls;
1516 }
1517 }
1518}
#define TRUE
Definition: auxiliary.h:100
char * get()
Definition: subexpr.h:170
int cnt
Definition: subexpr.h:167
BOOLEAN to_be_done
Definition: subexpr.h:166
BOOLEAN iiGetLibStatus(const char *lib)
Definition: iplib.cc:77
#define omStrDup(s)
Definition: omAllocDecl.h:263
#define omAlloc0Bin(bin)
Definition: omAllocDecl.h:206
#define NULL
Definition: omList.c:12

Field Documentation

◆ cnt

int libstack::cnt

Definition at line 167 of file subexpr.h.

◆ libname

char* libstack::libname

Definition at line 165 of file subexpr.h.

◆ next

libstackv libstack::next

Definition at line 164 of file subexpr.h.

◆ to_be_done

BOOLEAN libstack::to_be_done

Definition at line 166 of file subexpr.h.


The documentation for this class was generated from the following files: