diff options
author | Karl Schultz <kschultz@freedesktop.org> | 2005-05-05 21:08:07 +0000 |
---|---|---|
committer | Karl Schultz <kschultz@freedesktop.org> | 2005-05-05 21:08:07 +0000 |
commit | 6258b76c49f49a56a7c713914b798e80c6553b06 (patch) | |
tree | 2cc86a17fdda506fc9c86daba7ff3900d2d64996 /src/mesa/shader/grammar.h | |
parent | 203dcb733d36cc91107554b0d323ed8ccef6e105 (diff) |
Port Mesa to build on a P64 platform (e.g., Win64). P64 platforms
use 64-bit pointers and 32-bit longs. So, operations like casting pointers
to unsigned long and back to pointer won't work. glheader.h now
includes files to define uintptr_t, which should instead be used for
this sort of operation. It is an integer type that is the same size
as a pointer.
Diffstat (limited to 'src/mesa/shader/grammar.h')
-rw-r--r-- | src/mesa/shader/grammar.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/shader/grammar.h b/src/mesa/shader/grammar.h index 622cdb2398..3b537f6040 100644 --- a/src/mesa/shader/grammar.h +++ b/src/mesa/shader/grammar.h @@ -36,13 +36,13 @@ extern "C" { #endif void grammar_alloc_free (void *); -void *grammar_alloc_malloc (unsigned int); -void *grammar_alloc_realloc (void *, unsigned int, unsigned int); +void *grammar_alloc_malloc (size_t); +void *grammar_alloc_realloc (void *, size_t, size_t); void *grammar_memory_copy (void *, const void *, unsigned int); int grammar_string_compare (const byte *, const byte *); -int grammar_string_compare_n (const byte *, const byte *, unsigned int); +int grammar_string_compare_n (const byte *, const byte *, size_t); byte *grammar_string_copy (byte *, const byte *); -byte *grammar_string_copy_n (byte *, const byte *, unsigned int); +byte *grammar_string_copy_n (byte *, const byte *, size_t); byte *grammar_string_duplicate (const byte *); unsigned int grammar_string_length (const byte *); |