My Project
Loading...
Searching...
No Matches
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 1531 of file iplib.cc.

1532{
1533 libstackv ls = this;
1534 omFree((ADDRESS)ls->libname);
1535 library_stack = ls->next;
1537 return(library_stack);
1538}
void * ADDRESS
Definition auxiliary.h:120
libstackv next
Definition subexpr.h:164
VAR libstackv library_stack
Definition iplib.cc:68
#define omFree(addr)
#define omFreeBin(addr, bin)
EXTERN_VAR omBin libstack_bin
Definition subexpr.h:176
libstack * libstackv
Definition subexpr.h:159

◆ push()

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

Definition at line 1510 of file iplib.cc.

1511{
1512 libstackv lp;
1513 if( !iiGetLibStatus(libn))
1514 {
1515 for(lp = this;lp!=NULL;lp=lp->next)
1516 {
1517 if(strcmp(lp->get(), libn)==0) break;
1518 }
1519 if(lp==NULL)
1520 {
1521 libstackv ls = (libstack *)omAlloc0Bin(libstack_bin);
1522 ls->next = this;
1523 ls->libname = omStrDup(libn);
1524 ls->to_be_done = TRUE;
1525 if(library_stack != NULL) ls->cnt = library_stack->cnt+1; else ls->cnt = 0;
1526 library_stack = ls;
1527 }
1528 }
1529}
#define TRUE
Definition auxiliary.h:101
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)
#define omAlloc0Bin(bin)
#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: