]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - common.h
colorize cvarlist and completion nicely
[xonotic/darkplaces.git] / common.h
index b5e6fc0fe3357c20fbac9a0500aa44854444d3bc..c48ed390b4d54b3e73c390af75f11823eb8b2e89 100644 (file)
--- a/common.h
+++ b/common.h
@@ -38,7 +38,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
 #ifdef SUNOS
 #include <sys/file.h>          // Needed for FNDELAY
-# define model_t dp_model_t // Workaround conflict with /usr/include/sys/model.h
 #endif
 
 //============================================================================
@@ -282,6 +281,7 @@ typedef enum gamemode_e
        GAME_CONTAGIONTHEORY,
        GAME_EDU2P,
        GAME_BLADEMASTER,
+       GAME_PROPHECY,
        GAME_COUNT
 }
 gamemode_t;
@@ -314,6 +314,7 @@ typedef struct stringlist_s
 } stringlist_t;
 
 int matchpattern(const char *in, const char *pattern, int caseinsensitive);
+int matchpattern_with_separator(const char *in, const char *pattern, int caseinsensitive, const char *separators, qboolean wildcard_least_one);
 void stringlistinit(stringlist_t *list);
 void stringlistfreecontents(stringlist_t *list);
 void stringlistappend(stringlist_t *list, const char *text);
@@ -354,5 +355,7 @@ size_t strlcpy(char *dst, const char *src, size_t siz);
 
 #endif  // #ifndef HAVE_STRLCPY
 
+void FindFraction(double val, int *num, int *denom, int denomMax);
+
 #endif