Back to index

glibc  2.9
Defines | Functions | Variables
global-locale.c File Reference
#include <locale.h>
#include "localeinfo.h"
#include "categories.def"
#include <tls.h>

Go to the source code of this file.

Defines

#define DEFINE_CATEGORY(category, category_name, items, a)   extern struct locale_data _nl_C_##category; weak_extern (_nl_C_##category)
#define DEFINE_CATEGORY(category, category_name, items, a)   [category] = &_nl_C_##category,
#define DEFINE_CATEGORY(category, category_name, items, a)   [category] = _nl_C_name,

Functions

 weak_extern (_nl_C_LC_CTYPE_class)

Variables

const char _nl_C_LC_CTYPE_class[] attribute_hidden

Define Documentation

#define DEFINE_CATEGORY (   category,
  category_name,
  items,
  a 
)    extern struct locale_data _nl_C_##category; weak_extern (_nl_C_##category)

Definition at line 23 of file global-locale.c.

#define DEFINE_CATEGORY (   category,
  category_name,
  items,
  a 
)    [category] = &_nl_C_##category,

Definition at line 23 of file global-locale.c.

#define DEFINE_CATEGORY (   category,
  category_name,
  items,
  a 
)    [category] = _nl_C_name,

Definition at line 23 of file global-locale.c.


Function Documentation

weak_extern ( _nl_C_LC_CTYPE_class  )

Definition at line 32 of file global-locale.c.

  {
    .__locales =
    {
#define DEFINE_CATEGORY(category, category_name, items, a) \
      [category] = &_nl_C_##category,
#include "categories.def"
#undef DEFINE_CATEGORY
    },
    .__names =
    {
      [LC_ALL] = _nl_C_name,
#define DEFINE_CATEGORY(category, category_name, items, a) \
      [category] = _nl_C_name,
#include "categories.def"
#undef DEFINE_CATEGORY
    },
    .__ctype_b = (const unsigned short int *) _nl_C_LC_CTYPE_class + 128,
    .__ctype_tolower = (const int *) _nl_C_LC_CTYPE_tolower + 128,
    .__ctype_toupper = (const int *) _nl_C_LC_CTYPE_toupper + 128
  };

Here is the call graph for this function:


Variable Documentation

const char _nl_C_LC_CTYPE_tolower [] attribute_hidden

Definition at line 30 of file global-locale.c.