rename cmdlib and imagelib to fix name clashes
This commit is contained in:
parent
b0b997e493
commit
522f6f907e
12
Makefile
12
Makefile
|
|
@ -523,7 +523,7 @@ $(INSTALLDIR)/q3map2.$(EXE): LIBS_EXTRA := $(LIBS_XML) $(LIBS_GLIB) $(LIBS_PNG)
|
|||
$(INSTALLDIR)/q3map2.$(EXE): CPPFLAGS_EXTRA := $(CPPFLAGS_XML) $(CPPFLAGS_GLIB) $(CPPFLAGS_PNG) $(CPPFLAGS_JPEG) -Itools/quake3/common -Ilibs -Iinclude -Ilibs/assimp/include
|
||||
$(INSTALLDIR)/q3map2.$(EXE): \
|
||||
tools/quake3/common/cmdlib.o \
|
||||
tools/quake3/common/imagelib.o \
|
||||
tools/quake3/common/qimagelib.o \
|
||||
tools/quake3/common/inout.o \
|
||||
tools/quake3/common/jpeg.o \
|
||||
tools/quake3/common/md4.o \
|
||||
|
|
@ -902,7 +902,7 @@ $(INSTALLDIR)/radiant.$(EXE): \
|
|||
radiant/windowobservers.o \
|
||||
radiant/xmlstuff.o \
|
||||
radiant/xywindow.o \
|
||||
libcmdlib.$(A) \
|
||||
libcommandlib.$(A) \
|
||||
libgtkutil.$(A) \
|
||||
libl_net.$(A) \
|
||||
libprofile.$(A) \
|
||||
|
|
@ -914,9 +914,9 @@ libfilematch.$(A): CPPFLAGS_EXTRA := -Ilibs
|
|||
libfilematch.$(A): \
|
||||
libs/filematch.o \
|
||||
|
||||
libcmdlib.$(A): CPPFLAGS_EXTRA := -Ilibs
|
||||
libcmdlib.$(A): \
|
||||
libs/cmdlib/cmdlib.o \
|
||||
libcommandlib.$(A): CPPFLAGS_EXTRA := -Ilibs
|
||||
libcommandlib.$(A): \
|
||||
libs/commandlib.o \
|
||||
|
||||
libprofile.$(A): CPPFLAGS_EXTRA := -Ilibs -Iinclude
|
||||
libprofile.$(A): \
|
||||
|
|
@ -1099,7 +1099,7 @@ $(INSTALLDIR)/plugins/bobtoolz.$(DLL): \
|
|||
contrib/bobtoolz/ScriptParser.o \
|
||||
contrib/bobtoolz/shapes.o \
|
||||
contrib/bobtoolz/visfind.o \
|
||||
libcmdlib.$(A) \
|
||||
libcommandlib.$(A) \
|
||||
libmathlib.$(A) \
|
||||
libprofile.$(A) \
|
||||
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@
|
|||
#include "DTreePlanter.h"
|
||||
|
||||
#include "dialogs/dialogs-gtk.h"
|
||||
#include "../../libs/cmdlib.h"
|
||||
#include "commandlib.h"
|
||||
|
||||
#include "bobToolz-GTK.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#include "bsploader.h"
|
||||
#include "dialogs/dialogs-gtk.h"
|
||||
#include "cmdlib.h"
|
||||
#include "commandlib.h"
|
||||
|
||||
int numnodes;
|
||||
int numplanes;
|
||||
|
|
|
|||
|
|
@ -182,7 +182,7 @@ extern char* PLUGIN_NAME;
|
|||
return buffer;
|
||||
}*/
|
||||
|
||||
#include "cmdlib.h"
|
||||
#include "commandlib.h"
|
||||
|
||||
void StartBSP(){
|
||||
char exename[256];
|
||||
|
|
|
|||
|
|
@ -1,3 +0,0 @@
|
|||
*.dsp -m 'COPY' -k 'b'
|
||||
*.dsw -m 'COPY' -k 'b'
|
||||
*.scc -m 'COPY' -k 'b'
|
||||
|
|
@ -23,14 +23,13 @@
|
|||
// start of shared cmdlib stuff
|
||||
//
|
||||
|
||||
#include "cmdlib.h"
|
||||
#include "commandlib.h"
|
||||
|
||||
#include <cstring>
|
||||
#include <cstdio>
|
||||
|
||||
#include "string/string.h"
|
||||
#include "os/path.h"
|
||||
#include "container/array.h"
|
||||
|
||||
|
||||
#if defined ( POSIX )
|
||||
|
|
@ -44,36 +44,6 @@
|
|||
|
||||
bool Q_Exec( const char *cmd, char *cmdline, const char *execdir, bool bCreateConsole, bool waitfor );
|
||||
|
||||
// some easy portability crap
|
||||
|
||||
|
||||
#define access_owner_read 0400
|
||||
#define access_owner_write 0200
|
||||
#define access_owner_execute 0100
|
||||
#define access_owner_rw_ 0600
|
||||
#define access_owner_r_x 0500
|
||||
#define access_owner__wx 0300
|
||||
#define access_owner_rwx 0700
|
||||
|
||||
#define access_group_read 0040
|
||||
#define access_group_write 0020
|
||||
#define access_group_execute 0010
|
||||
#define access_group_rw_ 0060
|
||||
#define access_group_r_x 0050
|
||||
#define access_group__wx 0030
|
||||
#define access_group_rwx 0070
|
||||
|
||||
#define access_others_read 0004
|
||||
#define access_others_write 0002
|
||||
#define access_others_execute 0001
|
||||
#define access_others_rw_ 0006
|
||||
#define access_others_r_x 0005
|
||||
#define access_others__wx 0003
|
||||
#define access_others_rwx 0007
|
||||
|
||||
|
||||
#define access_rwxrwxr_x ( access_owner_rwx | access_group_rwx | access_others_r_x )
|
||||
#define access_rwxrwxrwx ( access_owner_rwx | access_group_rwx | access_others_rwx )
|
||||
|
||||
// Q_mkdir
|
||||
// returns true if succeeded in creating directory
|
||||
|
|
@ -85,7 +55,7 @@ inline bool Q_mkdir( const char* name ){
|
|||
#else
|
||||
#include <sys/stat.h>
|
||||
inline bool Q_mkdir( const char* name ){
|
||||
return mkdir( name, access_rwxrwxr_x ) != -1;
|
||||
return mkdir( name, S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH ) != -1; // rwxrwxr-x
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
@ -22,7 +22,7 @@
|
|||
#include "archive.h"
|
||||
|
||||
#include "idatastream.h"
|
||||
#include "cmdlib.h"
|
||||
#include "commandlib.h"
|
||||
#include "bytestreamutils.h"
|
||||
#include <algorithm>
|
||||
#include "stream/filestream.h"
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@
|
|||
#include "archive.h"
|
||||
|
||||
#include "idatastream.h"
|
||||
#include "cmdlib.h"
|
||||
#include "commandlib.h"
|
||||
#include "bytestreamutils.h"
|
||||
#include <algorithm>
|
||||
#include "stream/filestream.h"
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
*/
|
||||
|
||||
#include "idatastream.h"
|
||||
#include "cmdlib.h"
|
||||
#include "commandlib.h"
|
||||
#include "bytestreamutils.h"
|
||||
|
||||
#include "modulesystem.h"
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@
|
|||
#include "stringio.h"
|
||||
#include "shaderlib.h"
|
||||
#include "texturelib.h"
|
||||
#include "cmdlib.h"
|
||||
#include "commandlib.h"
|
||||
#include "moduleobservers.h"
|
||||
#include "archivelib.h"
|
||||
#include "imagelib.h"
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@
|
|||
|
||||
#include "os/file.h"
|
||||
#include "os/path.h"
|
||||
#include "cmdlib.h"
|
||||
#include "commandlib.h"
|
||||
#include "stream/stringstream.h"
|
||||
#include "gtkutil/messagebox.h"
|
||||
#include "scenelib.h"
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@
|
|||
#include "container/array.h"
|
||||
#include "scenelib.h"
|
||||
#include "render.h"
|
||||
#include "cmdlib.h"
|
||||
#include "commandlib.h"
|
||||
#include "math/frustum.h"
|
||||
|
||||
#include "gtkutil/widget.h"
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@
|
|||
#include "stream/stringstream.h"
|
||||
#include "moduleobservers.h"
|
||||
|
||||
#include "cmdlib.h"
|
||||
#include "commandlib.h"
|
||||
|
||||
#include "preferences.h"
|
||||
#include "mainframe.h"
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@
|
|||
#include "debugging/debugging.h"
|
||||
#include "os/path.h"
|
||||
#include "os/file.h"
|
||||
#include "cmdlib.h"
|
||||
#include "commandlib.h"
|
||||
|
||||
int g_argc;
|
||||
const char** g_argv;
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@
|
|||
#include "mainframe.h"
|
||||
#include "preferences.h"
|
||||
#include "url.h"
|
||||
#include "cmdlib.h"
|
||||
#include "commandlib.h"
|
||||
|
||||
#include "qerplugin.h"
|
||||
#include "os/file.h"
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@
|
|||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
#include "cmdlib.h"
|
||||
#include "commandlib.h"
|
||||
#include "os/file.h"
|
||||
#include "os/path.h"
|
||||
#include "stream/stringstream.h"
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@
|
|||
#include <gdk/gdkkeysyms.h>
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
#include "cmdlib.h"
|
||||
#include "commandlib.h"
|
||||
#include "scenelib.h"
|
||||
#include "stream/stringstream.h"
|
||||
#include "signal/isignal.h"
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@
|
|||
#include "traverselib.h"
|
||||
#include "maplib.h"
|
||||
#include "eclasslib.h"
|
||||
#include "cmdlib.h"
|
||||
#include "commandlib.h"
|
||||
#include "stream/textfilestream.h"
|
||||
#include "os/path.h"
|
||||
#include "uniquenames.h"
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@
|
|||
#include "stream/stringstream.h"
|
||||
#include "os/path.h"
|
||||
#include "os/file.h"
|
||||
#include "cmdlib.h"
|
||||
#include "commandlib.h"
|
||||
|
||||
#include "map.h"
|
||||
#include "qe3.h"
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@
|
|||
#include "os/dir.h"
|
||||
#include "gtkutil/filechooser.h"
|
||||
#include "gtkutil/messagebox.h"
|
||||
#include "cmdlib.h"
|
||||
#include "commandlib.h"
|
||||
|
||||
#include "error.h"
|
||||
#include "console.h"
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@
|
|||
#include <gtk/gtk.h>
|
||||
|
||||
#include "stream/textfilestream.h"
|
||||
#include "cmdlib.h"
|
||||
#include "commandlib.h"
|
||||
#include "stream/stringstream.h"
|
||||
#include "os/path.h"
|
||||
#include "scenelib.h"
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@
|
|||
#include "stream/memstream.h"
|
||||
#include "stream/textfilestream.h"
|
||||
#include "stream/stringstream.h"
|
||||
#include "cmdlib.h"
|
||||
#include "commandlib.h"
|
||||
#include "texmanip.h"
|
||||
#include "textures.h"
|
||||
#include "convert.h"
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@
|
|||
#include <algorithm>
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
#include "cmdlib.h"
|
||||
#include "commandlib.h"
|
||||
#include "convert.h"
|
||||
#include "string/string.h"
|
||||
#include "stream/stringstream.h"
|
||||
|
|
|
|||
|
|
@ -19,8 +19,6 @@
|
|||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
// cmdlib.h
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "bytebool.h"
|
||||
|
|
|
|||
|
|
@ -19,14 +19,12 @@
|
|||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
// imagelib.c
|
||||
|
||||
#include "inout.h"
|
||||
#include "cmdlib.h"
|
||||
#include "qstringops.h"
|
||||
#include "qpathops.h"
|
||||
#include "etclib.h"
|
||||
#include "imagelib.h"
|
||||
#include "qimagelib.h"
|
||||
#include "vfs.h"
|
||||
|
||||
int fgetLittleShort( FILE *f ){
|
||||
|
|
@ -19,8 +19,6 @@
|
|||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
// cmdlib.h
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "os/path.h"
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@
|
|||
|
||||
/*
|
||||
WriteTGA24()
|
||||
based on WriteTGA() from imagelib.c
|
||||
based on WriteTGA() from qimagelib.cpp
|
||||
*/
|
||||
|
||||
static void WriteTGA24( char *filename, byte *data, int width, int height, bool flip ){
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@
|
|||
|
||||
#include "scriplib.h"
|
||||
#include "polylib.h"
|
||||
#include "imagelib.h"
|
||||
#include "qimagelib.h"
|
||||
#include "qthreads.h"
|
||||
#include "inout.h"
|
||||
#include "inout_xml.h"
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user