]> de.git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - pak.c
Implement constant folding on ternary operations via fold_cond.
[xonotic/gmqcc.git] / pak.c
diff --git a/pak.c b/pak.c
index 4bf7e5f423f4f96666b72009ec5f1f7763b062d9..0b3f2216e2b4777c7892cedc0d04f72dfd4378f4 100644 (file)
--- a/pak.c
+++ b/pak.c
@@ -304,7 +304,7 @@ static bool pak_extract_one(pak_file_t *pak, const char *file, const char *outdi
 
     mem_d(dat);
     return true;
-    
+
 err:
     if (dat) mem_d(dat);
     if (out) fs_file_close(out);
@@ -396,7 +396,8 @@ err:
  * Like pak_insert_one, except this collects files in all directories
  * from a root directory, and inserts them all.
  */
-bool pak_insert_all(pak_file_t *pak, const char *dir) {
+#if 0
+static bool pak_insert_all(pak_file_t *pak, const char *dir) {
     DIR           *dp;
     struct dirent *dirp;
 
@@ -416,6 +417,7 @@ bool pak_insert_all(pak_file_t *pak, const char *dir) {
     fs_dir_close(dp);
     return true;
 }
+#endif /*!if 0 renable when ready to use */
 
 static bool pak_close(pak_file_t *pak) {
     size_t itr;