mirror of
https://github.com/kevinbentley/Descent3.git
synced 2025-12-25 01:00:43 -05:00
Mark functions and variables as static (#185)
* Begin by marking functions and variables as static when needed. * More work. * More work. * More pokes. * More work. * More work. * Initial work on the netgames. * Revert changes to the license header on source files. * clutter.cpp poke. * One final poke. * Move some declarations to headers: Move paged_in_count and paged_in_num to gamesequence.h Move DoneLightInstance and StartLightInstance to polymodel.h * Look over the AI script/plug-ins. * Going over the changes one last time. * Fix rebase errors. * More migration from bare statics to static inlines.
This commit is contained in:
@@ -99,7 +99,7 @@
|
||||
#ifdef __LINUX__
|
||||
#include <dlfcn.h>
|
||||
|
||||
bool mod_FindRealFileNameCaseInsenstive(const char *directory, const char *filename, char *new_filename);
|
||||
static bool mod_FindRealFileNameCaseInsenstive(const char *directory, const char *filename, char *new_filename);
|
||||
#endif
|
||||
|
||||
#include "module.h"
|
||||
@@ -113,7 +113,7 @@ bool mod_FindRealFileNameCaseInsenstive(const char *directory, const char *filen
|
||||
#endif
|
||||
#if defined(WIN32) // INSTEAD OF MAKING MODULE HAVE DEPENDENCIES, PUT THE 2 DDIO FUNCTIONS I NEED HERE
|
||||
// Split a pathname into its component parts
|
||||
void dd_SplitPath(const char *srcPath, char *path, char *filename, char *ext) {
|
||||
static void dd_SplitPath(const char *srcPath, char *path, char *filename, char *ext) {
|
||||
char drivename[_MAX_DRIVE], dirname[_MAX_DIR];
|
||||
_splitpath(srcPath, drivename, dirname, filename, ext);
|
||||
if (path)
|
||||
@@ -125,7 +125,7 @@ void dd_SplitPath(const char *srcPath, char *path, char *filename, char *ext) {
|
||||
// (specified in local file system syntax)
|
||||
// takes a variable number of subdirectories which will be concatenated on to the path
|
||||
// the last argument in the list of sub dirs *MUST* be NULL to terminate the list
|
||||
void dd_MakePath(char *newPath, const char *absolutePathHeader, const char *subDir, ...) {
|
||||
static void dd_MakePath(char *newPath, const char *absolutePathHeader, const char *subDir, ...) {
|
||||
const char delimiter = '\\';
|
||||
va_list args;
|
||||
char *currentDir = NULL;
|
||||
@@ -160,7 +160,7 @@ void dd_MakePath(char *newPath, const char *absolutePathHeader, const char *subD
|
||||
}
|
||||
#elif defined(__LINUX__)
|
||||
// Split a pathname into its component parts
|
||||
void dd_SplitPath(const char *srcPath, char *path, char *filename, char *ext) {
|
||||
static void dd_SplitPath(const char *srcPath, char *path, char *filename, char *ext) {
|
||||
int pathStart = -1;
|
||||
int pathEnd = -1;
|
||||
int fileStart = -1;
|
||||
@@ -237,7 +237,7 @@ void dd_SplitPath(const char *srcPath, char *path, char *filename, char *ext) {
|
||||
// (specified in local file system syntax)
|
||||
// takes a variable number of subdirectories which will be concatenated on to the path
|
||||
// the last argument in the list of sub dirs *MUST* be NULL to terminate the list
|
||||
void dd_MakePath(char *newPath, const char *absolutePathHeader, const char *subDir, ...) {
|
||||
static void dd_MakePath(char *newPath, const char *absolutePathHeader, const char *subDir, ...) {
|
||||
const char delimiter = '/';
|
||||
va_list args;
|
||||
char *currentDir = NULL;
|
||||
|
||||
Reference in New Issue
Block a user