# Home    # nevrax.com   
Nevrax
Nevrax.org
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
Docs
 
Documentation  
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  

types_nl.h File Reference

Basic types, define and class. More...

#include <string>
#include <exception>
#include <sys/types.h>
#include "nel/memory/memory_manager.h"

Go to the source code of this file.

Defines

#define NL_OS_UNIX
#define NL_LITTLE_ENDIAN
#define NL_NO_ASM
#define NL_I64   "ll"
 Used to display a int64 in a platform independant way with printf. More...

#define INT64_CONSTANT(c)   (c##LL)

Typedefs

typedef int8_t sint8
 An signed 8 bits integer (use char only as character and not as integer). More...

typedef u_int8_t uint8
 An unsigned 8 bits integer (use char only as character and not as integer). More...

typedef int16_t sint16
 An signed 16 bits integer (don't use short). More...

typedef u_int16_t uint16
 An unsigned 16 bits integer (don't use short). More...

typedef int32_t sint32
 An signed 32 bits integer (don't use int or long). More...

typedef u_int32_t uint32
 An unsigned 32 bits integer (don't use int or long). More...

typedef int64_t sint64
 An signed 64 bits integer (don't use long long or __int64). More...

typedef u_int64_t uint64
 An unsigned 64 bits integer (don't use long long or __int64). More...

typedef signed int sint
 An signed integer at least 32 bits (used only for interal loops or speedy purpose, processor dependant). More...

typedef unsigned int uint
 An unsigned integer, at least 32 bits (used only for interal loops or speedy purpose, processor dependant). More...

typedef uint16 ucchar
 An unicode character (16 bits). More...


Detailed Description

Basic types, define and class.

Id:
types_nl.h,v 1.36 2002/11/15 15:41:21 lecroart Exp

Available constantes:

  • NL_OS_WINDOWS : windows operating system (32bits only)
  • NL_OS_UNIX : unix operating system (GNU/Linux and other)
  • NL_LITTLE_ENDIAN : x86 processor
  • NL_BIG_ENDIAN : other processor
  • NL_DEBUG : no optimization, full debug information, all log for the client
  • NL_RELEASE : full optimization, no debug information, no log for the client

Definition in file types_nl.h.


Define Documentation

#define INT64_CONSTANT      (c##LL)
 

Definition at line 226 of file types_nl.h.

#define NL_I64   "ll"
 

Used to display a int64 in a platform independant way with printf.

 printf("the value is: %"NL_I64"d\n"n, int64value);

Definition at line 209 of file types_nl.h.

#define NL_LITTLE_ENDIAN
 

Definition at line 64 of file types_nl.h.

#define NL_NO_ASM
 

Definition at line 98 of file types_nl.h.

#define NL_OS_UNIX
 

Definition at line 60 of file types_nl.h.


Typedef Documentation

sint
 

An signed integer at least 32 bits (used only for interal loops or speedy purpose, processor dependant).

Definition at line 206 of file types_nl.h.

sint16
 

An signed 16 bits integer (don't use short).

Definition at line 199 of file types_nl.h.

sint32
 

An signed 32 bits integer (don't use int or long).

Definition at line 201 of file types_nl.h.

sint64
 

An signed 64 bits integer (don't use long long or __int64).

Definition at line 203 of file types_nl.h.

sint8
 

An signed 8 bits integer (use char only as character and not as integer).

Definition at line 197 of file types_nl.h.

ucchar
 

An unicode character (16 bits).

Definition at line 219 of file types_nl.h.

Referenced by NLMISC::CEventChar::CEventChar, NLMISC::CI18N::checkASCII7B, NLMISC::CI18N::eatChar, NL3D::CFontGenerator::getBitmap, NL3D::CFontGenerator::getCharIndex, NL3D::CFontGenerator::getKerning, NLMISC::CI18N::getLanguageNames, NL3D::CFontGenerator::getSizes, NLMISC::CI18N::load, operator+, ucstring::operator+=, ucstring::operator=, NLMISC::CI18N::skipComment, and NLMISC::CI18N::skipWS.

uint
 

An unsigned integer, at least 32 bits (used only for interal loops or speedy purpose, processor dependant).

Definition at line 207 of file types_nl.h.

uint16
 

An unsigned 16 bits integer (don't use short).

Definition at line 200 of file types_nl.h.

uint32
 

An unsigned 32 bits integer (don't use int or long).

Definition at line 202 of file types_nl.h.

uint64
 

An unsigned 64 bits integer (don't use long long or __int64).

Definition at line 204 of file types_nl.h.

uint8
 

An unsigned 8 bits integer (use char only as character and not as integer).

Definition at line 198 of file types_nl.h.