Macros
delocate.h File Reference
#include <openssl/base.h>
#include "../internal.h"
Include dependency graph for delocate.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DEFINE_BSS_GET(type, name)
 
#define DEFINE_DATA(type, name, accessor_decorations)
 
#define DEFINE_LOCAL_DATA(type, name)   DEFINE_DATA(type, name, static const)
 
#define DEFINE_METHOD_FUNCTION(type, name)   DEFINE_DATA(type, name, const)
 
#define DEFINE_STATIC_EX_DATA_CLASS(name)
 
#define DEFINE_STATIC_MUTEX(name)
 
#define DEFINE_STATIC_ONCE(name)
 

Macro Definition Documentation

◆ DEFINE_BSS_GET

#define DEFINE_BSS_GET (   type,
  name 
)
Value:
static type name; \
static type *name##_bss_get(void) { return &name; }

Definition at line 37 of file delocate.h.

◆ DEFINE_DATA

#define DEFINE_DATA (   type,
  name,
  accessor_decorations 
)
Value:
DEFINE_BSS_GET(type, name##_storage) \
DEFINE_STATIC_ONCE(name##_once) \
static void name##_do_init(type *out); \
static void name##_init(void) { name##_do_init(name##_storage_bss_get()); } \
accessor_decorations type *name(void) { \
CRYPTO_once(name##_once_bss_get(), name##_init); \
/* See http://c-faq.com/ansi/constmismatch.html for why the following \
* cast is needed. */ \
return (const type *)name##_storage_bss_get(); \
} \
static void name##_do_init(type *out)

Definition at line 51 of file delocate.h.

◆ DEFINE_LOCAL_DATA

#define DEFINE_LOCAL_DATA (   type,
  name 
)    DEFINE_DATA(type, name, static const)

Definition at line 86 of file delocate.h.

◆ DEFINE_METHOD_FUNCTION

#define DEFINE_METHOD_FUNCTION (   type,
  name 
)    DEFINE_DATA(type, name, const)

Definition at line 84 of file delocate.h.

◆ DEFINE_STATIC_EX_DATA_CLASS

#define DEFINE_STATIC_EX_DATA_CLASS (   name)
Value:
static CRYPTO_EX_DATA_CLASS *name##_bss_get(void) { return &name; }

Definition at line 46 of file delocate.h.

◆ DEFINE_STATIC_MUTEX

#define DEFINE_STATIC_MUTEX (   name)
Value:
static struct CRYPTO_STATIC_MUTEX *name##_bss_get(void) { return &name; }

Definition at line 43 of file delocate.h.

◆ DEFINE_STATIC_ONCE

#define DEFINE_STATIC_ONCE (   name)
Value:
static CRYPTO_once_t *name##_bss_get(void) { return &name; }

Definition at line 40 of file delocate.h.

CRYPTO_STATIC_MUTEX_INIT
#define CRYPTO_STATIC_MUTEX_INIT
Definition: third_party/boringssl-with-bazel/src/crypto/internal.h:536
gen_build_yaml.out
dictionary out
Definition: src/benchmark/gen_build_yaml.py:24
CRYPTO_EX_DATA_CLASS_INIT
#define CRYPTO_EX_DATA_CLASS_INIT
Definition: third_party/boringssl-with-bazel/src/crypto/internal.h:687
CRYPTO_EX_DATA_CLASS
Definition: third_party/boringssl-with-bazel/src/crypto/internal.h:679
setup.name
name
Definition: setup.py:542
CRYPTO_STATIC_MUTEX
Definition: third_party/boringssl-with-bazel/src/crypto/internal.h:533
CRYPTO_ONCE_INIT
#define CRYPTO_ONCE_INIT
Definition: third_party/boringssl-with-bazel/src/crypto/internal.h:471
CRYPTO_once_t
uint32_t CRYPTO_once_t
Definition: third_party/boringssl-with-bazel/src/crypto/internal.h:470
asyncio_get_stats.type
type
Definition: asyncio_get_stats.py:37
DEFINE_BSS_GET
#define DEFINE_BSS_GET(type, name)
Definition: delocate.h:37


grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:10