big protototype cleanup. Now, except for a few cases, all non-static

prototypes are in headers files.
This commit is contained in:
Bill Currie 2002-11-05 19:12:51 +00:00
parent 43fa6a4002
commit ca4b3acd6c
102 changed files with 826 additions and 946 deletions

View file

@ -59,8 +59,6 @@ int locations_alloced = 0;
int locations_count = 0;
int location_blocks = 0;
void locs_more (void);
int
locs_nearest (const vec3_t loc)
{
@ -90,6 +88,24 @@ locs_find (const vec3_t target)
return locations[i];
}
void
locs_more (void)
{
size_t size;
location_blocks++;
locations_alloced += LOCATION_BLOCK;
size = (sizeof (location_t *) * LOCATION_BLOCK * location_blocks);
if (locations)
locations = realloc (locations, size);
else
locations = malloc (size);
if (!locations)
Sys_Error ("ERROR! Can not alloc memory for location block!");
}
void
locs_add (const vec3_t location, const char *name)
{
@ -174,24 +190,6 @@ locs_reset (void)
locations = NULL;
}
void
locs_more (void)
{
size_t size;
location_blocks++;
locations_alloced += LOCATION_BLOCK;
size = (sizeof (location_t *) * LOCATION_BLOCK * location_blocks);
if (locations)
locations = realloc (locations, size);
else
locations = malloc (size);
if (!locations)
Sys_Error ("ERROR! Can not alloc memory for location block!");
}
void
locs_save (const char *filename, qboolean gz)
{