LLVM OpenMP 19.0.0git
Macros | Typedefs | Enumerations | Functions | Variables
kmp_i18n.cpp File Reference
#include "kmp_i18n.h"
#include "kmp.h"
#include "kmp_debug.h"
#include "kmp_io.h"
#include "kmp_lock.h"
#include "kmp_os.h"
#include <errno.h>
#include <locale.h>
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
#include "kmp_environment.h"
#include "kmp_i18n_default.inc"
#include "kmp_str.h"

Go to the source code of this file.

Macros

#define get_section(id)   ((id) >> 16)
 
#define get_number(id)   ((id)&0xFFFF)
 

Typedefs

typedef enum kmp_i18n_cat_status kmp_i18n_cat_status_t
 

Enumerations

enum  kmp_i18n_cat_status { KMP_I18N_CLOSED , KMP_I18N_OPENED , KMP_I18N_ABSENT }
 

Functions

static void __kmp_msg (kmp_msg_severity_t severity, kmp_msg_t message, va_list ap)
 
static void __kmp_i18n_do_catopen ()
 
void __kmp_i18n_catopen ()
 
void __kmp_i18n_dump_catalog (kmp_str_buf_t *buffer)
 
kmp_msg_t __kmp_msg_format (unsigned id_arg,...)
 
static charsys_error (int err)
 
kmp_msg_t __kmp_msg_error_code (int code)
 
kmp_msg_t __kmp_msg_error_mesg (char const *mesg)
 
void __kmp_msg (kmp_msg_severity_t severity, kmp_msg_t message,...)
 
void __kmp_fatal (kmp_msg_t message,...)
 

Variables

kmp_msg_t __kmp_msg_null = {kmp_mt_dummy, 0, NULL, 0}
 
static char const * no_message_available = "(No message available)"
 
static volatile kmp_i18n_cat_status_t status = KMP_I18N_CLOSED
 
static kmp_bootstrap_lock_t lock = KMP_BOOTSTRAP_LOCK_INITIALIZER(lock)
 

Macro Definition Documentation

◆ get_number

#define get_number (   id)    ((id)&0xFFFF)

Definition at line 34 of file kmp_i18n.cpp.

◆ get_section

#define get_section (   id)    ((id) >> 16)

Definition at line 33 of file kmp_i18n.cpp.

Typedef Documentation

◆ kmp_i18n_cat_status_t

Definition at line 47 of file kmp_i18n.cpp.

Enumeration Type Documentation

◆ kmp_i18n_cat_status

Enumerator
KMP_I18N_CLOSED 
KMP_I18N_OPENED 
KMP_I18N_ABSENT 

Definition at line 42 of file kmp_i18n.cpp.

Function Documentation

◆ __kmp_fatal()

void __kmp_fatal ( kmp_msg_t  message,
  ... 
)

◆ __kmp_i18n_catopen()

void __kmp_i18n_catopen ( )

◆ __kmp_i18n_do_catopen()

static void __kmp_i18n_do_catopen ( )
static

Referenced by __kmp_i18n_catopen().

◆ __kmp_i18n_dump_catalog()

void __kmp_i18n_dump_catalog ( kmp_str_buf_t buffer)

◆ __kmp_msg() [1/2]

void __kmp_msg ( kmp_msg_severity_t  severity,
kmp_msg_t  message,
va_list  ap 
)
static

◆ __kmp_msg() [2/2]

void __kmp_msg ( kmp_msg_severity_t  severity,
kmp_msg_t  message,
  ... 
)

Definition at line 857 of file kmp_i18n.cpp.

References __kmp_msg(), and args.

◆ __kmp_msg_error_code()

kmp_msg_t __kmp_msg_error_code ( int  code)

◆ __kmp_msg_error_mesg()

kmp_msg_t __kmp_msg_error_mesg ( char const *  mesg)

◆ __kmp_msg_format()

kmp_msg_t __kmp_msg_format ( unsigned  id_arg,
  ... 
)

◆ sys_error()

static char * sys_error ( int  err)
static

Definition at line 671 of file kmp_i18n.cpp.

References __kmp_str_format(), err, KMP_FATAL, KMP_INTERNAL_FREE, KMP_INTERNAL_MALLOC, and size.

Referenced by __kmp_msg_error_code().

Variable Documentation

◆ __kmp_msg_null

kmp_msg_t __kmp_msg_null = {kmp_mt_dummy, 0, NULL, 0}

◆ lock

Definition at line 57 of file kmp_i18n.cpp.

Referenced by __kmp_i18n_catopen(), __kmpc_destroy_lock(), and main().

◆ no_message_available

char const* no_message_available = "(No message available)"
static

Definition at line 37 of file kmp_i18n.cpp.

◆ status

volatile kmp_i18n_cat_status_t status = KMP_I18N_CLOSED
static