FV3 Bundle
adStack.c File Reference
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
Include dependency graph for adStack.c:

Go to the source code of this file.

Classes

struct  _doubleChainedBlock
 

Macros

#define ONE_BLOCK_SIZE   16384
 
#define STACK_SIZE_TRACING   1
 

Typedefs

typedef struct _doubleChainedBlock DoubleChainedBlock
 

Functions

int chcksum (char *contents, int len)
 
void pushNarray (char *x, unsigned int nbChars)
 
void popNarray (char *x, unsigned int nbChars)
 
void lookNarray (char *x, unsigned int nbChars)
 
void resetadlookstack_ ()
 
void pushcharacterarray_ (char *x, unsigned int *n)
 
void popcharacterarray_ (char *x, unsigned int *n)
 
void lookcharacterarray_ (char *x, unsigned int *n)
 
void pushbooleanarray_ (char *x, unsigned int *n)
 
void popbooleanarray_ (char *x, unsigned int *n)
 
void lookbooleanarray_ (char *x, unsigned int *n)
 
void pushinteger4array_ (void *x, unsigned int *n)
 
void popinteger4array_ (void *x, unsigned int *n)
 
void lookinteger4array_ (void *x, unsigned int *n)
 
void pushinteger8array_ (void *x, unsigned int *n)
 
void popinteger8array_ (void *x, unsigned int *n)
 
void lookinteger8array_ (void *x, unsigned int *n)
 
void pushinteger16array_ (void *x, unsigned int *n)
 
void popinteger16array_ (void *x, unsigned int *n)
 
void lookinteger16array_ (void *x, unsigned int *n)
 
void pushreal4array_ (void *x, unsigned int *n)
 
void popreal4array_ (void *x, unsigned int *n)
 
void lookreal4array_ (void *x, unsigned int *n)
 
void pushreal8array_ (void *x, unsigned int *n)
 
void popreal8array_ (void *x, unsigned int *n)
 
void lookreal8array_ (void *x, unsigned int *n)
 
void pushreal16array_ (void *x, unsigned int *n)
 
void popreal16array_ (void *x, unsigned int *n)
 
void lookreal16array_ (void *x, unsigned int *n)
 
void pushreal32array_ (void *x, unsigned int *n)
 
void popreal32array_ (void *x, unsigned int *n)
 
void lookreal32array_ (void *x, unsigned int *n)
 
void pushcomplex4array_ (void *x, unsigned int *n)
 
void popcomplex4array_ (void *x, unsigned int *n)
 
void lookcomplex4array_ (void *x, unsigned int *n)
 
void pushcomplex8array_ (void *x, unsigned int *n)
 
void popcomplex8array_ (void *x, unsigned int *n)
 
void lookcomplex8array_ (void *x, unsigned int *n)
 
void pushcomplex16array_ (void *x, unsigned int *n)
 
void popcomplex16array_ (void *x, unsigned int *n)
 
void lookcomplex16array_ (void *x, unsigned int *n)
 
void pushcomplex32array_ (void *x, unsigned int *n)
 
void popcomplex32array_ (void *x, unsigned int *n)
 
void lookcomplex32array_ (void *x, unsigned int *n)
 
void pushcharacterarray (char *x, int n)
 
void popcharacterarray (char *x, int n)
 
void lookcharacterarray (char *x, int n)
 
void pushbooleanarray (char *x, int n)
 
void popbooleanarray (char *x, int n)
 
void lookbooleanarray (char *x, int n)
 
void pushinteger4array (int *x, int n)
 
void popinteger4array (int *x, int n)
 
void lookinteger4array (int *x, int n)
 
void pushinteger8array (long int *x, int n)
 
void popinteger8array (long int *x, int n)
 
void lookinteger8array (long int *x, int n)
 
void pushinteger16array (long long int *x, int n)
 
void popinteger16array (long long int *x, int n)
 
void lookinteger16array (long long int *x, int n)
 
void pushreal4array (float *x, int n)
 
void popreal4array (float *x, int n)
 
void lookreal4array (float *x, int n)
 
void pushreal8array (double *x, int n)
 
void popreal8array (double *x, int n)
 
void lookreal8array (double *x, int n)
 
void pushreal16array (void *x, int n)
 
void popreal16array (void *x, int n)
 
void lookreal16array (void *x, int n)
 
void pushreal32array (void *x, int n)
 
void popreal32array (void *x, int n)
 
void lookreal32array (void *x, int n)
 
void pushcomplex4array (void *x, int n)
 
void popcomplex4array (void *x, int n)
 
void lookcomplex4array (void *x, int n)
 
void pushcomplex8array (void *x, int n)
 
void popcomplex8array (void *x, int n)
 
void lookcomplex8array (void *x, int n)
 
void pushcomplex16array (void *x, int n)
 
void popcomplex16array (void *x, int n)
 
void lookcomplex16array (void *x, int n)
 
void pushcomplex32array (void *x, int n)
 
void popcomplex32array (void *x, int n)
 
void lookcomplex32array (void *x, int n)
 
void pushpointer4array (void *x, int n)
 
void poppointer4array (void *x, int n)
 
void lookpointer4array (void *x, int n)
 
void pushpointer8array (void *x, int n)
 
void poppointer8array (void *x, int n)
 
void lookpointer8array (void *x, int n)
 
void printbigbytes (long int nbblocks, long int blocksz, long int nbunits)
 
void printctraffic_ ()
 
void printftrafficinc_ (long int *mmfM, int *mmfsz, int *mmf)
 
void printtotaltraffic_ (long int *mmfM, int *mmfsz, int *mmf)
 
void printtopplace_ ()
 
void printtopplacenum_ (int *n)
 
void printstackmax_ ()
 
void printlookingplace_ ()
 
void showrecentcstack_ ()
 
void getnbblocksinstack_ (int *nbblocks)
 
void getbigcsizes_ (int *nbblocks, int *remainder, int *nbblockslook, int *lookremainder)
 

Variables

static char adSid [] ="$Id: adStack.c,v 1.1 2017/07/24 21:18:32 drholdaw Exp $"
 
static DoubleChainedBlockcurStack = NULL
 
static char * curStackTop = NULL
 
static DoubleChainedBlocklookStack = NULL
 
static char * lookStackTop = NULL
 
static long int mmctraffic = 0
 
static long int mmctrafficM = 0
 
long int bigStackSize = 0
 

Macro Definition Documentation

◆ ONE_BLOCK_SIZE

#define ONE_BLOCK_SIZE   16384

Definition at line 8 of file adStack.c.

◆ STACK_SIZE_TRACING

#define STACK_SIZE_TRACING   1

Definition at line 10 of file adStack.c.

Typedef Documentation

◆ DoubleChainedBlock

Function Documentation

◆ chcksum()

int chcksum ( char *  contents,
int  len 
)

Definition at line 33 of file adStack.c.

◆ getbigcsizes_()

void getbigcsizes_ ( int *  nbblocks,
int *  remainder,
int *  nbblockslook,
int *  lookremainder 
)

Definition at line 674 of file adStack.c.

◆ getnbblocksinstack_()

void getnbblocksinstack_ ( int *  nbblocks)

Definition at line 661 of file adStack.c.

◆ lookbooleanarray()

void lookbooleanarray ( char *  x,
int  n 
)

Definition at line 328 of file adStack.c.

Here is the call graph for this function:

◆ lookbooleanarray_()

void lookbooleanarray_ ( char *  x,
unsigned int *  n 
)

Definition at line 195 of file adStack.c.

Here is the call graph for this function:

◆ lookcharacterarray()

void lookcharacterarray ( char *  x,
int  n 
)

Definition at line 318 of file adStack.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ lookcharacterarray_()

void lookcharacterarray_ ( char *  x,
unsigned int *  n 
)

Definition at line 185 of file adStack.c.

Here is the call graph for this function:

◆ lookcomplex16array()

void lookcomplex16array ( void *  x,
int  n 
)

Definition at line 428 of file adStack.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ lookcomplex16array_()

void lookcomplex16array_ ( void *  x,
unsigned int *  n 
)

Definition at line 295 of file adStack.c.

Here is the call graph for this function:

◆ lookcomplex32array()

void lookcomplex32array ( void *  x,
int  n 
)

Definition at line 438 of file adStack.c.

Here is the call graph for this function:

◆ lookcomplex32array_()

void lookcomplex32array_ ( void *  x,
unsigned int *  n 
)

Definition at line 305 of file adStack.c.

Here is the call graph for this function:

◆ lookcomplex4array()

void lookcomplex4array ( void *  x,
int  n 
)

Definition at line 408 of file adStack.c.

Here is the call graph for this function:

◆ lookcomplex4array_()

void lookcomplex4array_ ( void *  x,
unsigned int *  n 
)

Definition at line 275 of file adStack.c.

Here is the call graph for this function:

◆ lookcomplex8array()

void lookcomplex8array ( void *  x,
int  n 
)

Definition at line 418 of file adStack.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ lookcomplex8array_()

void lookcomplex8array_ ( void *  x,
unsigned int *  n 
)

Definition at line 285 of file adStack.c.

Here is the call graph for this function:

◆ lookinteger16array()

void lookinteger16array ( long long int *  x,
int  n 
)

Definition at line 358 of file adStack.c.

Here is the call graph for this function:

◆ lookinteger16array_()

void lookinteger16array_ ( void *  x,
unsigned int *  n 
)

Definition at line 225 of file adStack.c.

Here is the call graph for this function:

◆ lookinteger4array()

void lookinteger4array ( int *  x,
int  n 
)

Definition at line 338 of file adStack.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ lookinteger4array_()

void lookinteger4array_ ( void *  x,
unsigned int *  n 
)

Definition at line 205 of file adStack.c.

Here is the call graph for this function:

◆ lookinteger8array()

void lookinteger8array ( long int *  x,
int  n 
)

Definition at line 348 of file adStack.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ lookinteger8array_()

void lookinteger8array_ ( void *  x,
unsigned int *  n 
)

Definition at line 215 of file adStack.c.

Here is the call graph for this function:

◆ lookNarray()

void lookNarray ( char *  x,
unsigned int  nbChars 
)

Definition at line 142 of file adStack.c.

Here is the caller graph for this function:

◆ lookpointer4array()

void lookpointer4array ( void *  x,
int  n 
)

Definition at line 448 of file adStack.c.

Here is the call graph for this function:

◆ lookpointer8array()

void lookpointer8array ( void *  x,
int  n 
)

Definition at line 458 of file adStack.c.

Here is the call graph for this function:

◆ lookreal16array()

void lookreal16array ( void *  x,
int  n 
)

Definition at line 388 of file adStack.c.

Here is the call graph for this function:

◆ lookreal16array_()

void lookreal16array_ ( void *  x,
unsigned int *  n 
)

Definition at line 255 of file adStack.c.

Here is the call graph for this function:

◆ lookreal32array()

void lookreal32array ( void *  x,
int  n 
)

Definition at line 398 of file adStack.c.

Here is the call graph for this function:

◆ lookreal32array_()

void lookreal32array_ ( void *  x,
unsigned int *  n 
)

Definition at line 265 of file adStack.c.

Here is the call graph for this function:

◆ lookreal4array()

void lookreal4array ( float *  x,
int  n 
)

Definition at line 368 of file adStack.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ lookreal4array_()

void lookreal4array_ ( void *  x,
unsigned int *  n 
)

Definition at line 235 of file adStack.c.

Here is the call graph for this function:

◆ lookreal8array()

void lookreal8array ( double *  x,
int  n 
)

Definition at line 378 of file adStack.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ lookreal8array_()

void lookreal8array_ ( void *  x,
unsigned int *  n 
)

Definition at line 245 of file adStack.c.

Here is the call graph for this function:

◆ popbooleanarray()

void popbooleanarray ( char *  x,
int  n 
)

Definition at line 325 of file adStack.c.

Here is the call graph for this function:

◆ popbooleanarray_()

void popbooleanarray_ ( char *  x,
unsigned int *  n 
)

Definition at line 192 of file adStack.c.

Here is the call graph for this function:

◆ popcharacterarray()

void popcharacterarray ( char *  x,
int  n 
)

Definition at line 315 of file adStack.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ popcharacterarray_()

void popcharacterarray_ ( char *  x,
unsigned int *  n 
)

Definition at line 182 of file adStack.c.

Here is the call graph for this function:

◆ popcomplex16array()

void popcomplex16array ( void *  x,
int  n 
)

Definition at line 425 of file adStack.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ popcomplex16array_()

void popcomplex16array_ ( void *  x,
unsigned int *  n 
)

Definition at line 292 of file adStack.c.

Here is the call graph for this function:

◆ popcomplex32array()

void popcomplex32array ( void *  x,
int  n 
)

Definition at line 435 of file adStack.c.

Here is the call graph for this function:

◆ popcomplex32array_()

void popcomplex32array_ ( void *  x,
unsigned int *  n 
)

Definition at line 302 of file adStack.c.

Here is the call graph for this function:

◆ popcomplex4array()

void popcomplex4array ( void *  x,
int  n 
)

Definition at line 405 of file adStack.c.

Here is the call graph for this function:

◆ popcomplex4array_()

void popcomplex4array_ ( void *  x,
unsigned int *  n 
)

Definition at line 272 of file adStack.c.

Here is the call graph for this function:

◆ popcomplex8array()

void popcomplex8array ( void *  x,
int  n 
)

Definition at line 415 of file adStack.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ popcomplex8array_()

void popcomplex8array_ ( void *  x,
unsigned int *  n 
)

Definition at line 282 of file adStack.c.

Here is the call graph for this function:

◆ popinteger16array()

void popinteger16array ( long long int *  x,
int  n 
)

Definition at line 355 of file adStack.c.

Here is the call graph for this function:

◆ popinteger16array_()

void popinteger16array_ ( void *  x,
unsigned int *  n 
)

Definition at line 222 of file adStack.c.

Here is the call graph for this function:

◆ popinteger4array()

void popinteger4array ( int *  x,
int  n 
)

Definition at line 335 of file adStack.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ popinteger4array_()

void popinteger4array_ ( void *  x,
unsigned int *  n 
)

Definition at line 202 of file adStack.c.

Here is the call graph for this function:

◆ popinteger8array()

void popinteger8array ( long int *  x,
int  n 
)

Definition at line 345 of file adStack.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ popinteger8array_()

void popinteger8array_ ( void *  x,
unsigned int *  n 
)

Definition at line 212 of file adStack.c.

Here is the call graph for this function:

◆ popNarray()

void popNarray ( char *  x,
unsigned int  nbChars 
)

Definition at line 106 of file adStack.c.

Here is the caller graph for this function:

◆ poppointer4array()

void poppointer4array ( void *  x,
int  n 
)

Definition at line 445 of file adStack.c.

Here is the call graph for this function:

◆ poppointer8array()

void poppointer8array ( void *  x,
int  n 
)

Definition at line 455 of file adStack.c.

Here is the call graph for this function:

◆ popreal16array()

void popreal16array ( void *  x,
int  n 
)

Definition at line 385 of file adStack.c.

Here is the call graph for this function:

◆ popreal16array_()

void popreal16array_ ( void *  x,
unsigned int *  n 
)

Definition at line 252 of file adStack.c.

Here is the call graph for this function:

◆ popreal32array()

void popreal32array ( void *  x,
int  n 
)

Definition at line 395 of file adStack.c.

Here is the call graph for this function:

◆ popreal32array_()

void popreal32array_ ( void *  x,
unsigned int *  n 
)

Definition at line 262 of file adStack.c.

Here is the call graph for this function:

◆ popreal4array()

void popreal4array ( float *  x,
int  n 
)

Definition at line 365 of file adStack.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ popreal4array_()

void popreal4array_ ( void *  x,
unsigned int *  n 
)

Definition at line 232 of file adStack.c.

Here is the call graph for this function:

◆ popreal8array()

void popreal8array ( double *  x,
int  n 
)

Definition at line 375 of file adStack.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ popreal8array_()

void popreal8array_ ( void *  x,
unsigned int *  n 
)

Definition at line 242 of file adStack.c.

Here is the call graph for this function:

◆ printbigbytes()

void printbigbytes ( long int  nbblocks,
long int  blocksz,
long int  nbunits 
)

Definition at line 464 of file adStack.c.

Here is the caller graph for this function:

◆ printctraffic_()

void printctraffic_ ( )

Definition at line 542 of file adStack.c.

Here is the call graph for this function:

◆ printftrafficinc_()

void printftrafficinc_ ( long int *  mmfM,
int *  mmfsz,
int *  mmf 
)

Definition at line 548 of file adStack.c.

Here is the call graph for this function:

◆ printlookingplace_()

void printlookingplace_ ( )

Definition at line 610 of file adStack.c.

Here is the call graph for this function:

◆ printstackmax_()

void printstackmax_ ( )

Definition at line 590 of file adStack.c.

Here is the call graph for this function:

◆ printtopplace_()

void printtopplace_ ( )

Definition at line 562 of file adStack.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ printtopplacenum_()

void printtopplacenum_ ( int *  n)

Definition at line 576 of file adStack.c.

Here is the call graph for this function:

◆ printtotaltraffic_()

void printtotaltraffic_ ( long int *  mmfM,
int *  mmfsz,
int *  mmf 
)

Definition at line 554 of file adStack.c.

Here is the call graph for this function:

◆ pushbooleanarray()

void pushbooleanarray ( char *  x,
int  n 
)

Definition at line 322 of file adStack.c.

Here is the call graph for this function:

◆ pushbooleanarray_()

void pushbooleanarray_ ( char *  x,
unsigned int *  n 
)

Definition at line 189 of file adStack.c.

Here is the call graph for this function:

◆ pushcharacterarray()

void pushcharacterarray ( char *  x,
int  n 
)

Definition at line 312 of file adStack.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ pushcharacterarray_()

void pushcharacterarray_ ( char *  x,
unsigned int *  n 
)

Definition at line 179 of file adStack.c.

Here is the call graph for this function:

◆ pushcomplex16array()

void pushcomplex16array ( void *  x,
int  n 
)

Definition at line 422 of file adStack.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ pushcomplex16array_()

void pushcomplex16array_ ( void *  x,
unsigned int *  n 
)

Definition at line 289 of file adStack.c.

Here is the call graph for this function:

◆ pushcomplex32array()

void pushcomplex32array ( void *  x,
int  n 
)

Definition at line 432 of file adStack.c.

Here is the call graph for this function:

◆ pushcomplex32array_()

void pushcomplex32array_ ( void *  x,
unsigned int *  n 
)

Definition at line 299 of file adStack.c.

Here is the call graph for this function:

◆ pushcomplex4array()

void pushcomplex4array ( void *  x,
int  n 
)

Definition at line 402 of file adStack.c.

Here is the call graph for this function:

◆ pushcomplex4array_()

void pushcomplex4array_ ( void *  x,
unsigned int *  n 
)

Definition at line 269 of file adStack.c.

Here is the call graph for this function:

◆ pushcomplex8array()

void pushcomplex8array ( void *  x,
int  n 
)

Definition at line 412 of file adStack.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ pushcomplex8array_()

void pushcomplex8array_ ( void *  x,
unsigned int *  n 
)

Definition at line 279 of file adStack.c.

Here is the call graph for this function:

◆ pushinteger16array()

void pushinteger16array ( long long int *  x,
int  n 
)

Definition at line 352 of file adStack.c.

Here is the call graph for this function:

◆ pushinteger16array_()

void pushinteger16array_ ( void *  x,
unsigned int *  n 
)

Definition at line 219 of file adStack.c.

Here is the call graph for this function:

◆ pushinteger4array()

void pushinteger4array ( int *  x,
int  n 
)

Definition at line 332 of file adStack.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ pushinteger4array_()

void pushinteger4array_ ( void *  x,
unsigned int *  n 
)

Definition at line 199 of file adStack.c.

Here is the call graph for this function:

◆ pushinteger8array()

void pushinteger8array ( long int *  x,
int  n 
)

Definition at line 342 of file adStack.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ pushinteger8array_()

void pushinteger8array_ ( void *  x,
unsigned int *  n 
)

Definition at line 209 of file adStack.c.

Here is the call graph for this function:

◆ pushNarray()

void pushNarray ( char *  x,
unsigned int  nbChars 
)

Definition at line 44 of file adStack.c.

Here is the caller graph for this function:

◆ pushpointer4array()

void pushpointer4array ( void *  x,
int  n 
)

Definition at line 442 of file adStack.c.

Here is the call graph for this function:

◆ pushpointer8array()

void pushpointer8array ( void *  x,
int  n 
)

Definition at line 452 of file adStack.c.

Here is the call graph for this function:

◆ pushreal16array()

void pushreal16array ( void *  x,
int  n 
)

Definition at line 382 of file adStack.c.

Here is the call graph for this function:

◆ pushreal16array_()

void pushreal16array_ ( void *  x,
unsigned int *  n 
)

Definition at line 249 of file adStack.c.

Here is the call graph for this function:

◆ pushreal32array()

void pushreal32array ( void *  x,
int  n 
)

Definition at line 392 of file adStack.c.

Here is the call graph for this function:

◆ pushreal32array_()

void pushreal32array_ ( void *  x,
unsigned int *  n 
)

Definition at line 259 of file adStack.c.

Here is the call graph for this function:

◆ pushreal4array()

void pushreal4array ( float *  x,
int  n 
)

Definition at line 362 of file adStack.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ pushreal4array_()

void pushreal4array_ ( void *  x,
unsigned int *  n 
)

Definition at line 229 of file adStack.c.

Here is the call graph for this function:

◆ pushreal8array()

void pushreal8array ( double *  x,
int  n 
)

Definition at line 372 of file adStack.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ pushreal8array_()

void pushreal8array_ ( void *  x,
unsigned int *  n 
)

Definition at line 239 of file adStack.c.

Here is the call graph for this function:

◆ resetadlookstack_()

void resetadlookstack_ ( )

Definition at line 172 of file adStack.c.

◆ showrecentcstack_()

void showrecentcstack_ ( )

Definition at line 627 of file adStack.c.

Variable Documentation

◆ adSid

char adSid[] ="$Id: adStack.c,v 1.1 2017/07/24 21:18:32 drholdaw Exp $"
static

Definition at line 1 of file adStack.c.

◆ bigStackSize

long int bigStackSize = 0

Definition at line 30 of file adStack.c.

◆ curStack

DoubleChainedBlock* curStack = NULL
static

Definition at line 21 of file adStack.c.

◆ curStackTop

char* curStackTop = NULL
static

Definition at line 22 of file adStack.c.

◆ lookStack

DoubleChainedBlock* lookStack = NULL
static

Definition at line 24 of file adStack.c.

◆ lookStackTop

char* lookStackTop = NULL
static

Definition at line 25 of file adStack.c.

◆ mmctraffic

long int mmctraffic = 0
static

Definition at line 27 of file adStack.c.

◆ mmctrafficM

long int mmctrafficM = 0
static

Definition at line 28 of file adStack.c.