]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/lib/urllib.qc
Mark [[eraseable]] most of the common functions in the lib directory. Since many...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / lib / urllib.qc
index d1d5c65ed2a3d4bcf34e1a35789a709e44521c07..9f5d3e26fe5ae88a3638b12edf23784835b20d5b 100644 (file)
@@ -24,6 +24,7 @@ const float URL_FH_STDOUT = -2;
 entity url_fromid[NUM_URL_ID];
 int autocvar__urllib_nextslot;
 
+[[eraseable]]
 float url_URI_Get_Callback(int id, float status, string data)
 {
        if (id < MIN_URL_ID) return 0;
@@ -82,6 +83,7 @@ float url_URI_Get_Callback(int id, float status, string data)
        }
 }
 
+[[eraseable]]
 void url_single_fopen(string url, int mode, url_ready_func rdy, entity pass)
 {
        entity e;
@@ -201,6 +203,7 @@ void url_single_fopen(string url, int mode, url_ready_func rdy, entity pass)
 }
 
 // close a file
+[[eraseable]]
 void url_fclose(entity e)
 {
        int i;
@@ -280,6 +283,7 @@ void url_fclose(entity e)
 }
 
 // with \n (blame FRIK_FILE)
+[[eraseable]]
 string url_fgets(entity e)
 {
        if (e.url_fh == URL_FH_CURL)
@@ -304,6 +308,7 @@ string url_fgets(entity e)
 }
 
 // without \n (blame FRIK_FILE)
+[[eraseable]]
 void url_fputs(entity e, string s)
 {
        if (e.url_fh == URL_FH_CURL)
@@ -326,6 +331,7 @@ void url_fputs(entity e, string s)
 }
 
 // multi URL object, tries URLs separated by space in sequence
+[[eraseable]]
 void url_multi_ready(entity fh, entity me, float status)
 {
        float n;
@@ -353,6 +359,8 @@ void url_multi_ready(entity fh, entity me, float status)
        }
        me.url_ready(fh, me.url_ready_pass, status);
 }
+
+[[eraseable]]
 void url_multi_fopen(string url, int mode, url_ready_func rdy, entity pass)
 {
        float n;