summaryrefslogtreecommitdiffstats
path: root/src/mesa/glapi
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2000-03-29 18:46:11 +0000
committerBrian Paul <[email protected]>2000-03-29 18:46:11 +0000
commitfffb809777837c6e77c761c4798967c0fe767880 (patch)
tree4550923925f7544f962ecc74052cf78c8d5b67f3 /src/mesa/glapi
parent57e7108b755074e97434fd791a60009e9a6ab285 (diff)
renamed mesaStrDup() to str_dup()
Diffstat (limited to 'src/mesa/glapi')
-rw-r--r--src/mesa/glapi/glapi.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/mesa/glapi/glapi.c b/src/mesa/glapi/glapi.c
index 7d0ceb50924..63038a6f830 100644
--- a/src/mesa/glapi/glapi.c
+++ b/src/mesa/glapi/glapi.c
@@ -1,4 +1,4 @@
-/* $Id: glapi.c,v 1.39 2000/03/27 21:13:58 rjfrank Exp $ */
+/* $Id: glapi.c,v 1.40 2000/03/29 18:46:11 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -75,13 +75,14 @@ static GLboolean GetSizeCalled = GL_FALSE;
/* strdup is actually not a standard ANSI C or POSIX routine
Irix will not define it if ANSI mode is in effect. */
-static char *mesaStrdup(const char *str)
+static char *str_dup(const char *str)
{
- char *copy;
- copy = (char*) malloc(strlen(str) + 1);
- if (!copy) return(NULL);
- strcpy(copy,str);
- return(copy);
+ char *copy;
+ copy = (char*) malloc(strlen(str) + 1);
+ if (!copy)
+ return NULL;
+ strcpy(copy, str);
+ return copy;
}
@@ -1343,7 +1344,7 @@ _glapi_add_entrypoint(const char *funcName, GLuint offset)
if (!entrypoint)
return GL_FALSE;
- ExtEntryTable[NumExtEntryPoints].Name = mesaStrdup(funcName);
+ ExtEntryTable[NumExtEntryPoints].Name = str_dup(funcName);
ExtEntryTable[NumExtEntryPoints].Offset = offset;
ExtEntryTable[NumExtEntryPoints].Address = entrypoint;
NumExtEntryPoints++;
@@ -1388,7 +1389,7 @@ _glapi_add_entrypoint2(const char *funcName)
entryPoint = generate_entrypoint(offset);
if (entryPoint) {
NextFreeOffset++;
- ExtEntryTable[NumExtEntryPoints].Name = mesaStrdup(funcName);
+ ExtEntryTable[NumExtEntryPoints].Name = str_dup(funcName);
ExtEntryTable[NumExtEntryPoints].Offset = offset;
ExtEntryTable[NumExtEntryPoints].Address = entryPoint;
NumExtEntryPoints++;