# HG changeset patch # User Philipe Louchtch - de Raadt # Date 1405188582 -7200 # Node ID d8f96a3bbea45517434ce963e9a93d596343f452 # Parent c05370bd62dd9e07fbf984f6bfba9855399a7232 Updated with newer PRMalloc header and some changes to (...)types.h diff -r c05370bd62dd -r d8f96a3bbea4 PR__primitive_data_types.h --- a/PR__primitive_data_types.h Sun Jun 15 13:06:28 2014 +0200 +++ b/PR__primitive_data_types.h Sat Jul 12 20:09:42 2014 +0200 @@ -36,18 +36,18 @@ #else -typedef char bool8; -typedef char int8; -typedef char uint8; -typedef short int16; -typedef unsigned short uint16; -typedef int int32; -typedef unsigned int uint32; -typedef unsigned int bool32; -typedef long long int64; -typedef unsigned long long uint64; -typedef float float32; -typedef double float64; +typedef char bool8; +typedef char int8; +typedef char uint8; +typedef short int16; +typedef unsigned short uint16; +typedef int int32; +typedef unsigned int uint32; +typedef unsigned int bool32; +typedef long long int int64; +typedef unsigned long long int uint64; +typedef float float32; +typedef double float64; #endif diff -r c05370bd62dd -r d8f96a3bbea4 prmalloc.h --- a/prmalloc.h Sun Jun 15 13:06:28 2014 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,52 +0,0 @@ -/* - * Copyright 2009 OpenSourceCodeStewardshipFoundation.org - * Licensed under GNU General Public License version 2 - * - * Author: seanhalle@yahoo.com - * - * Created on November 14, 2009, 9:07 PM - */ - -#ifndef _PRMALLOC_H -#define _PRMALLOC_H - -#include -#include -#include -#include - -void * -PR_int__malloc( size_t sizeRequested ); - -void * -PR_int__malloc_aligned( size_t sizeRequested ); - -void -PR_int__free( void *ptrToFree ); - -//Use these in application code directly -#define \ -PR__malloc PR_WL__malloc - -#define \ -PR__free PR_WL__free - -//these are implemented in the PR leaf implementation -void * -PR_WL__malloc( int32 sizeRequested ); - -void -PR_WL__free( void *ptrToFree ); - - -/*Allocates memory from the external system -- higher overhead - */ -void * -PR_ext__malloc_in_ext( size_t sizeRequested ); - -/*Frees memory that was allocated in the external system -- higher overhead - */ -void -PR_ext__free_in_ext( void *ptrToFree ); - -#endif \ No newline at end of file