diff options
author | Michal Krol <[email protected]> | 2005-04-22 10:15:32 +0000 |
---|---|---|
committer | Michal Krol <[email protected]> | 2005-04-22 10:15:32 +0000 |
commit | b10d080b1e1f64c2663dde5532b7bcae4fa75325 (patch) | |
tree | 8913a87eadead6a02219ca3536f6d0b5d4e28222 /src/mesa/shader/slang/slang_compile.c | |
parent | 3ed1f07686d33abae54f6599260aa4e77354f901 (diff) |
Move some utility functions to slang_utility.c.
Diffstat (limited to 'src/mesa/shader/slang/slang_compile.c')
-rw-r--r-- | src/mesa/shader/slang/slang_compile.c | 43 |
1 files changed, 2 insertions, 41 deletions
diff --git a/src/mesa/shader/slang/slang_compile.c b/src/mesa/shader/slang/slang_compile.c index 5ecef00c1d0..d49d104323c 100644 --- a/src/mesa/shader/slang/slang_compile.c +++ b/src/mesa/shader/slang/slang_compile.c @@ -29,8 +29,9 @@ */ #include "imports.h" -#include "slang_compile.h" #include "grammar_mesa.h" +#include "slang_utility.h" +#include "slang_compile.h" #include "slang_preprocess.h" /* @@ -40,46 +41,6 @@ may be accepted resulting in undefined behaviour. */ -void slang_alloc_free (void *ptr) -{ - _mesa_free (ptr); -} - -void *slang_alloc_malloc (unsigned int size) -{ - return _mesa_malloc (size); -} - -void *slang_alloc_realloc (void *ptr, unsigned int old_size, unsigned int size) -{ - return _mesa_realloc (ptr, old_size, size); -} - -int slang_string_compare (const char *str1, const char *str2) -{ - return _mesa_strcmp (str1, str2); -} - -char *slang_string_copy (char *dst, const char *src) -{ - return _mesa_strcpy (dst, src); -} - -char *slang_string_concat (char *dst, const char *src) -{ - return _mesa_strcpy (dst + _mesa_strlen (dst), src); -} - -char *slang_string_duplicate (const char *src) -{ - return _mesa_strdup (src); -} - -unsigned int slang_string_length (const char *str) -{ - return _mesa_strlen (str); -} - static void slang_variable_construct (slang_variable *); static int slang_variable_copy (slang_variable *, const slang_variable *); static void slang_struct_construct (slang_struct *); |