Open64 (mfef90, whirl2f, and IR tools)  TAG: version-openad; SVN changeset: 916
s_cat_kai.c File Reference
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "cmplrs/host.h"
Include dependency graph for s_cat_kai.c:

Go to the source code of this file.

Classes

struct  OVERHEAD
struct  bufstruct

Defines

#define BUFSIZE   ((size_t)8192)

Typedefs

typedef char BUF [BUFSIZE-sizeof(OVERHEAD)]
typedef struct bufstruct KAI_MARKED_HEAP

Functions

void f77fatal (int32, char *)
char * kai_mhalloc (size_t len)
string s_cat_kai (string strings[], fsize_t lengths[], int32 count, fsize_t *result_len)

Variables

static KAI_MARKED_HEAPKAI_heap_stack = NULL
static size_t len_used = 0
size_t _kai_mhalloc_tos_ = 0

Define Documentation

#define BUFSIZE   ((size_t)8192)

Definition at line 46 of file s_cat_kai.c.

Referenced by kai_mhalloc().


Typedef Documentation

typedef char BUF[BUFSIZE-sizeof(OVERHEAD)]

Definition at line 52 of file s_cat_kai.c.

typedef struct bufstruct KAI_MARKED_HEAP

Function Documentation

void f77fatal ( int32  ,
char *   
)
char* kai_mhalloc ( size_t  len)

Definition at line 75 of file s_cat_kai.c.

References _kai_mhalloc_tos_, bufstruct::buffer, BUFSIZE, f77fatal(), free(), bufstruct::header, KAI_heap_stack, len, OVERHEAD::len_so_far, len_used, OVERHEAD::next, NULL, and result.

Referenced by s_cat_kai().

Here is the call graph for this function:

string s_cat_kai ( string  strings[],
fsize_t  lengths[],
int32  count,
fsize_t result_len 
)

Definition at line 128 of file s_cat_kai.c.

References kai_mhalloc(), len, and result.

Here is the call graph for this function:


Variable Documentation

Definition at line 64 of file s_cat_kai.c.

Referenced by kai_mhalloc().

Definition at line 61 of file s_cat_kai.c.

Referenced by kai_mhalloc().

size_t len_used = 0 [static]

Definition at line 62 of file s_cat_kai.c.

Referenced by kai_mhalloc().

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines