MySQL 9.1.0
Source Code Documentation
xcom_memory.h File Reference
#include <rpc/types.h>
#include <rpc/xdr.h>
#include <stdlib.h>

Go to the source code of this file.

Macros

#define X_FREE(x)
 
#define XCOM_XDR_FREE(proc, ptr)
 

Functions

void xcom_xdr_free (xdrproc_t f, char *p)
 
static void * xcom_malloc (size_t size)
 
static void * xcom_calloc (size_t nmemb, size_t size)
 

Variables

int oom_abort
 

Macro Definition Documentation

◆ X_FREE

#define X_FREE (   x)
Value:
{ \
free(x); \
x = nullptr; \
}

◆ XCOM_XDR_FREE

#define XCOM_XDR_FREE (   proc,
  ptr 
)
Value:
{ \
xcom_xdr_free((xdrproc_t)proc, (char *)(ptr)); \
(ptr) = nullptr; \
}
bool_t(* xdrproc_t)(XDR *, void *,...)
Definition: xdr.h:143

Function Documentation

◆ xcom_calloc()

static void * xcom_calloc ( size_t  nmemb,
size_t  size 
)
inlinestatic

◆ xcom_malloc()

static void * xcom_malloc ( size_t  size)
inlinestatic

◆ xcom_xdr_free()

void xcom_xdr_free ( xdrproc_t  f,
char *  p 
)

Variable Documentation

◆ oom_abort

int oom_abort
extern