]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - intrin.c
Refactor some util/platform usage and extend file system file interface to accept...
[xonotic/gmqcc.git] / intrin.c
index ae6edaa4df446cb837147e0505518c48ecb8cd64..94b420210a2652a0c9c7781f0bada9623108be0f 100644 (file)
--- a/intrin.c
+++ b/intrin.c
@@ -21,9 +21,7 @@
  * SOFTWARE.
  */
 #include <string.h>
-
 #include "parser.h"
-#include "platform.h"
 
 /*
  * Provides all the "intrinsics" / "builtins" for GMQCC. These can do
@@ -41,8 +39,8 @@ static GMQCC_INLINE ast_function *intrin_value(intrin_t *intrin, ast_value **val
     char          buffer[1024];
     char          stype [1024];
 
-    platform_snprintf(buffer, sizeof(buffer), "__builtin_%s", name);
-    platform_snprintf(stype,  sizeof(stype),   "<%s>",        type_name[vtype]);
+    util_snprintf(buffer, sizeof(buffer), "__builtin_%s", name);
+    util_snprintf(stype,  sizeof(stype),   "<%s>",        type_name[vtype]);
 
     *value                      = ast_value_new(intrin_ctx(intrin), buffer, TYPE_FUNCTION);
     (*value)->intrinsic         = true;