From 49084953b09a456c66f62bf5f07400fb73de2413 Mon Sep 17 00:00:00 2001 From: David Hilvert Date: Tue, 25 Aug 2009 17:57:34 +0000 Subject: [PATCH] include/ale, src/libale: Remove generic ALE_POINTER NULL, as this shouldn't be necessary, and doesn't obviously make sense. --- include/ale.h | 3 +-- src/libale.h | 6 ------ 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/include/ale.h b/include/ale.h index 1b7c445..165d5b2 100644 --- a/include/ale.h +++ b/include/ale.h @@ -110,8 +110,7 @@ */ #define ALE_POINTER(TYPE, TYPEP) \ - ALE_DATA_TYPE( TYPEP, typedef union { TYPE *p; struct {cl_long index; /* cl_int offset; */} t; cl_long widest_pointer_type; } TYPEP; \ - inline TYPEP TYPEP ## _NULL() { TYPEP result = {.widest_pointer_type = 0}; return result; }) + ALE_DATA_TYPE( TYPEP, typedef union { TYPE *p; struct {cl_long index; /* cl_int offset; */} t; cl_long widest_pointer_type; } TYPEP;) /* * Macro for API type definition diff --git a/src/libale.h b/src/libale.h index 68cb4d7..76ce52e 100644 --- a/src/libale.h +++ b/src/libale.h @@ -146,12 +146,6 @@ void *ale_context_map_index(ale_context ac, cl_long index); int ale_context_unmap_index(ale_context ac, cl_long index, void *p); /* - * Macro for NULL ALE_POINTER. - */ - -#define N(TYPEP) TYPEP ## _NULL() - -/* * Macros for common API type elements and functions. */ -- 2.11.4.GIT