Basic Types

Basic Types

Synopsis


#include <glib.h>

typedef             gboolean;
typedef             gpointer;
typedef             gconstpointer;
typedef             gchar;
typedef             guchar;

typedef             gint;
typedef             guint;
typedef             gshort;
typedef             gushort;
typedef             glong;
typedef             gulong;

typedef             gint8;
typedef             guint8;
typedef             gint16;
typedef             guint16;
typedef             gint32;
typedef             guint32;

#define             G_HAVE_GINT64
typedef             gint64;
typedef             guint64;
#define             G_GINT64_CONSTANT                   (val)
#define             G_GUINT64_CONSTANT                  (val)

typedef             gfloat;
typedef             gdouble;

typedef             gsize;
typedef             gssize;
typedef             goffset;
#define             G_GOFFSET_CONSTANT                  (val)

typedef             gintptr;
typedef             guintptr;

Description

Details

gboolean

typedef gint   gboolean;


gpointer

typedef void* gpointer;


gconstpointer

typedef const void *gconstpointer;


gchar

typedef char   gchar;


guchar

typedef unsigned char   guchar;


gint

typedef int    gint;


guint

typedef unsigned int    guint;


gshort

typedef short  gshort;


gushort

typedef unsigned short  gushort;


glong

typedef long   glong;


gulong

typedef unsigned long   gulong;


gint8

typedef signed char gint8;


guint8

typedef unsigned char guint8;


gint16

typedef signed short gint16;


guint16

typedef unsigned short guint16;


gint32

typedef signed int gint32;


guint32

typedef unsigned int guint32;


G_HAVE_GINT64

#define G_HAVE_GINT64 1          /* deprecated, always true */


gint64

G_GNUC_EXTENSION typedef signed long long gint64;


guint64

G_GNUC_EXTENSION typedef unsigned long long guint64;


G_GINT64_CONSTANT()

#define G_GINT64_CONSTANT(val)	(G_GNUC_EXTENSION (val##LL))

val :


G_GUINT64_CONSTANT()

#define G_GUINT64_CONSTANT(val)	(G_GNUC_EXTENSION (val##ULL))

val :


gfloat

typedef float   gfloat;


gdouble

typedef double  gdouble;


gsize

typedef unsigned int gsize;


gssize

typedef signed int gssize;


goffset

typedef gint64 goffset;


G_GOFFSET_CONSTANT()

#define G_GOFFSET_CONSTANT(val) G_GINT64_CONSTANT(val)

val :


gintptr

typedef signed int gintptr;


guintptr

typedef unsigned int guintptr;