kmp_i18n.c File Reference

#include "kmp_i18n.h"
#include "kmp_os.h"
#include "kmp_debug.h"
#include "kmp.h"
#include "kmp_lock.h"
#include "kmp_io.h"
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <locale.h>
#include <stdarg.h>
#include "kmp_i18n_default.inc"
#include "kmp_str.h"
#include "kmp_environment.h"

Go to the source code of this file.

Defines

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

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

void __kmp_i18n_catopen ()
static void __kmp_i18n_do_catopen ()
void __kmp_i18n_dump_catalog (kmp_str_buf_t &buffer)
void __kmp_msg (kmp_msg_severity_t severity, kmp_msg_t message,...)
kmp_msg_t __kmp_msg_error_code (int code)
kmp_msg_t __kmp_msg_error_mesg (char const *mesg)
kmp_msg_t __kmp_msg_format (kmp_i18n_id_t id,...)
static char * sys_error (int err)

Variables

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

Define Documentation

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

Definition at line 69 of file kmp_i18n.c.

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

Definition at line 68 of file kmp_i18n.c.


Typedef Documentation

Definition at line 80 of file kmp_i18n.c.


Enumeration Type Documentation

Enumerator:
KMP_I18N_CLOSED 
KMP_I18N_OPENED 
KMP_I18N_ABSENT 

Definition at line 75 of file kmp_i18n.c.


Function Documentation

void __kmp_i18n_catopen (  ) 
static void __kmp_i18n_do_catopen (  )  [static]

Referenced by __kmp_i18n_catopen().

void __kmp_i18n_dump_catalog ( kmp_str_buf_t buffer  ) 
void __kmp_msg ( kmp_msg_severity_t  severity,
kmp_msg_t  message,
  ... 
)
kmp_msg_t __kmp_msg_error_code ( int  code  ) 

Definition at line 888 of file kmp_i18n.c.

References kmp_mt_syserr, kmp_msg::len, kmp_msg::num, kmp_msg::str, sys_error(), and kmp_msg::type.

kmp_msg_t __kmp_msg_error_mesg ( char const *  mesg  ) 
kmp_msg_t __kmp_msg_format ( kmp_i18n_id_t  id,
  ... 
)
static char* sys_error ( int  err  )  [static]

Definition at line 787 of file kmp_i18n.c.

References __kmp_str_format(), KMP_INTERNAL_FREE, and KMP_INTERNAL_MALLOC.

Referenced by __kmp_msg_error_code().


Variable Documentation

kmp_msg_t __kmp_msg_empty = { kmp_mt_dummy, 0, "", 0 }

Definition at line 71 of file kmp_i18n.c.

kmp_msg_t __kmp_msg_null = { kmp_mt_dummy, 0, NULL, 0 }
kmp_bootstrap_lock_t lock = KMP_BOOTSTRAP_LOCK_INITIALIZER( lock ) [static]

Definition at line 92 of file kmp_i18n.c.

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

Definition at line 73 of file kmp_i18n.c.

volatile kmp_i18n_cat_status_t status = KMP_I18N_CLOSED [static]

Generated on 25 Aug 2013 for libomp_oss by  doxygen 1.6.1