Macros | Functions | Variables
qgarray.cpp File Reference
#include "qgarray.h"
#include "qstring.h"
#include <stdlib.h>

Go to the source code of this file.

Macros

#define QGARRAY_CPP
 
#define USE_MALLOC
 
#define NEW(type, size)   ((type*)malloc(size*sizeof(type)))
 
#define DELETE(array)   (free((char*)array))
 

Functions

static int cmp_arr (const void *n1, const void *n2)
 

Variables

static int cmp_item_size = 0
 

Macro Definition Documentation

#define DELETE (   array)    (free((char*)array))

Definition at line 50 of file qgarray.cpp.

#define NEW (   type,
  size 
)    ((type*)malloc(size*sizeof(type)))

Definition at line 49 of file qgarray.cpp.

#define QGARRAY_CPP

Definition at line 38 of file qgarray.cpp.

#define USE_MALLOC

Definition at line 43 of file qgarray.cpp.

Function Documentation

static int cmp_arr ( const void *  n1,
const void *  n2 
)
static

Definition at line 635 of file qgarray.cpp.

636 {
637  return ( n1 && n2 ) ? memcmp( n1, n2, cmp_item_size )
638  : (int)((intptr_t)n1 - (intptr_t)n2);
639  // Qt 3.0: Add a virtual compareItems() method and call that instead
640 }
static int cmp_item_size
Definition: qgarray.cpp:629

Variable Documentation

int cmp_item_size = 0
static

Definition at line 629 of file qgarray.cpp.