Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygengrammar_mesa.c
Go to the documentation of this file.
00001 /* 00002 * Mesa 3-D graphics library 00003 * Version: 6.1 00004 * 00005 * Copyright (C) 1999-2004 Brian Paul All Rights Reserved. 00006 * 00007 * Permission is hereby granted, free of charge, to any person obtaining a 00008 * copy of this software and associated documentation files (the "Software"), 00009 * to deal in the Software without restriction, including without limitation 00010 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 00011 * and/or sell copies of the Software, and to permit persons to whom the 00012 * Software is furnished to do so, subject to the following conditions: 00013 * 00014 * The above copyright notice and this permission notice shall be included 00015 * in all copies or substantial portions of the Software. 00016 * 00017 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 00018 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 00019 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 00020 * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 00021 * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 00022 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 00023 */ 00024 00031 #include "grammar_mesa.h" 00032 00033 #define GRAMMAR_PORT_BUILD 1 00034 #include "grammar.c" 00035 #undef GRAMMAR_PORT_BUILD 00036 00037 00038 void grammar_alloc_free (void *ptr) 00039 { 00040 _mesa_free (ptr); 00041 } 00042 00043 void *grammar_alloc_malloc (size_t size) 00044 { 00045 return _mesa_malloc (size); 00046 } 00047 00048 void *grammar_alloc_realloc (void *ptr, size_t old_size, size_t size) 00049 { 00050 return _mesa_realloc (ptr, old_size, size); 00051 } 00052 00053 void *grammar_memory_copy (void *dst, const void * src, size_t size) 00054 { 00055 return _mesa_memcpy (dst, src, size); 00056 } 00057 00058 int grammar_string_compare (const byte *str1, const byte *str2) 00059 { 00060 return _mesa_strcmp ((const char *) str1, (const char *) str2); 00061 } 00062 00063 int grammar_string_compare_n (const byte *str1, const byte *str2, size_t n) 00064 { 00065 return _mesa_strncmp ((const char *) str1, (const char *) str2, n); 00066 } 00067 00068 byte *grammar_string_copy (byte *dst, const byte *src) 00069 { 00070 return (byte *) _mesa_strcpy ((char *) dst, (const char *) src); 00071 } 00072 00073 byte *grammar_string_copy_n (byte *dst, const byte *src, size_t n) 00074 { 00075 return (byte *) _mesa_strncpy ((char *) dst, (const char *) src, n); 00076 } 00077 00078 byte *grammar_string_duplicate (const byte *src) 00079 { 00080 return (byte *) _mesa_strdup ((const char *) src); 00081 } 00082 00083 unsigned int grammar_string_length (const byte *str) 00084 { 00085 return (unsigned int)_mesa_strlen ((const char *) str); 00086 } 00087 Generated on Sun May 27 2012 04:20:34 for ReactOS by
1.7.6.1
|