test/gs/ctest.html

changeset 80
0f1c55d2a90a
parent 75
c72b250866ab
--- a/test/gs/ctest.html	Thu Jul 11 19:41:06 2024 +0200
+++ b/test/gs/ctest.html	Thu Jul 11 20:05:21 2024 +0200
@@ -135,7 +135,7 @@
 <a class="c2html-lineno" name="l82" href="#l82"> 82 </a>
 <a class="c2html-lineno" name="l83" href="#l83"> 83 </a><span class="c2html-keyword">int</span> util_strtoint(<span class="c2html-keyword">char</span> *str, <span class="c2html-type">int64_t</span> *value) {
 <a class="c2html-lineno" name="l84" href="#l84"> 84 </a>    <span class="c2html-keyword">char</span> *end;
-<a class="c2html-lineno" name="l85" href="#l85"> 85 </a>    <span class="c2html-type">int64_t</span> val = strtoll(str, &end, <span class="c2html-macroconst">0</span>);
+<a class="c2html-lineno" name="l85" href="#l85"> 85 </a>    <span class="c2html-type">int64_t</span> val = strtoll(str, &amp;end, <span class="c2html-macroconst">0</span>);
 <a class="c2html-lineno" name="l86" href="#l86"> 86 </a>    <span class="c2html-keyword">if</span>(strlen(end) == <span class="c2html-macroconst">0</span>) {
 <a class="c2html-lineno" name="l87" href="#l87"> 87 </a>        *value = val;
 <a class="c2html-lineno" name="l88" href="#l88"> 88 </a>        <span class="c2html-keyword">return</span> <span class="c2html-macroconst">1</span>;
@@ -149,9 +149,9 @@
 <a class="c2html-lineno" name="l96" href="#l96"> 96 </a>    <span class="c2html-type">size_t</span> len = strlen(url);
 <a class="c2html-lineno" name="l97" href="#l97"> 97 </a>    <span class="c2html-keyword">int</span> slashcount = <span class="c2html-macroconst">0</span>;
 <a class="c2html-lineno" name="l98" href="#l98"> 98 </a>    <span class="c2html-keyword">int</span> slmax;
-<a class="c2html-lineno" name="l99" href="#l99"> 99 </a>    <span class="c2html-keyword">if</span>(len &gt; <span class="c2html-macroconst">7</span> && !strncasecmp(url, <span class="c2html-string">"http://"</span>, <span class="c2html-macroconst">7</span>)) {
+<a class="c2html-lineno" name="l99" href="#l99"> 99 </a>    <span class="c2html-keyword">if</span>(len &gt; <span class="c2html-macroconst">7</span> &amp;&amp; !strncasecmp(url, <span class="c2html-string">"http://"</span>, <span class="c2html-macroconst">7</span>)) {
 <a class="c2html-lineno" name="l100" href="#l100">100 </a>        slmax = <span class="c2html-macroconst">3</span>;
-<a class="c2html-lineno" name="l101" href="#l101">101 </a>    } <span class="c2html-keyword">else</span> <span class="c2html-keyword">if</span>(len &gt; <span class="c2html-macroconst">8</span> && !strncasecmp(url, <span class="c2html-string">"https://"</span>, <span class="c2html-macroconst">8</span>)) {
+<a class="c2html-lineno" name="l101" href="#l101">101 </a>    } <span class="c2html-keyword">else</span> <span class="c2html-keyword">if</span>(len &gt; <span class="c2html-macroconst">8</span> &amp;&amp; !strncasecmp(url, <span class="c2html-string">"https://"</span>, <span class="c2html-macroconst">8</span>)) {
 <a class="c2html-lineno" name="l102" href="#l102">102 </a>        slmax = <span class="c2html-macroconst">3</span>;
 <a class="c2html-lineno" name="l103" href="#l103">103 </a>    } <span class="c2html-keyword">else</span> {
 <a class="c2html-lineno" name="l104" href="#l104">104 </a>        slmax = <span class="c2html-macroconst">1</span>;
@@ -265,7 +265,7 @@
 <a class="c2html-lineno" name="l212" href="#l212">212 </a>    
 <a class="c2html-lineno" name="l213" href="#l213">213 </a>    <span class="c2html-type">sstr_t</span> p = sstr(path);
 <a class="c2html-lineno" name="l214" href="#l214">214 </a>    <span class="c2html-type">ssize_t</span> ntk = <span class="c2html-macroconst">0</span>;
-<a class="c2html-lineno" name="l215" href="#l215">215 </a>    <span class="c2html-type">sstr_t</span> *tks = sstrsplit(p, <span class="c2html-macroconst">S</span>(<span class="c2html-string">"/"</span>), &ntk);
+<a class="c2html-lineno" name="l215" href="#l215">215 </a>    <span class="c2html-type">sstr_t</span> *tks = sstrsplit(p, <span class="c2html-macroconst">S</span>(<span class="c2html-string">"/"</span>), &amp;ntk);
 <a class="c2html-lineno" name="l216" href="#l216">216 </a>    
 <a class="c2html-lineno" name="l217" href="#l217">217 </a>    <span class="c2html-keyword">for</span>(<span class="c2html-keyword">int</span> i=<span class="c2html-macroconst">0</span>;i&lt;ntk;i++) {
 <a class="c2html-lineno" name="l218" href="#l218">218 </a>        <span class="c2html-type">sstr_t</span> node = tks[i];
@@ -315,7 +315,7 @@
 <a class="c2html-lineno" name="l262" href="#l262">262 </a>
 <a class="c2html-lineno" name="l263" href="#l263">263 </a><span class="c2html-keyword">char</span>* util_base64decode(<span class="c2html-keyword">char</span> *in) {
 <a class="c2html-lineno" name="l264" href="#l264">264 </a>    <span class="c2html-keyword">int</span> len = <span class="c2html-macroconst">0</span>;
-<a class="c2html-lineno" name="l265" href="#l265">265 </a>    <span class="c2html-keyword">return</span> util_base64decode_len(in, &len);
+<a class="c2html-lineno" name="l265" href="#l265">265 </a>    <span class="c2html-keyword">return</span> util_base64decode_len(in, &amp;len);
 <a class="c2html-lineno" name="l266" href="#l266">266 </a>}
 <a class="c2html-lineno" name="l267" href="#l267">267 </a>
 <a class="c2html-lineno" name="l268" href="#l268">268 </a><span class="c2html-keyword">char</span>* util_base64decode_len(<span class="c2html-keyword">char</span>* in, <span class="c2html-keyword">int</span> *outlen) {
@@ -345,7 +345,7 @@
 <a class="c2html-lineno" name="l292" href="#l292">292 </a>    BIO_write(e, in, len);
 <a class="c2html-lineno" name="l293" href="#l293">293 </a>    BIO_flush(e);
 <a class="c2html-lineno" name="l294" href="#l294">294 </a>    
-<a class="c2html-lineno" name="l295" href="#l295">295 </a>    BIO_get_mem_ptr(e, &mem);
+<a class="c2html-lineno" name="l295" href="#l295">295 </a>    BIO_get_mem_ptr(e, &amp;mem);
 <a class="c2html-lineno" name="l296" href="#l296">296 </a>    <span class="c2html-keyword">char</span> *out = malloc(mem-&gt;length);
 <a class="c2html-lineno" name="l297" href="#l297">297 </a>    memcpy(out, mem-&gt;data, mem-&gt;length -<span class="c2html-macroconst">1</span>);
 <a class="c2html-lineno" name="l298" href="#l298">298 </a>    out[mem-&gt;length - <span class="c2html-macroconst">1</span>] = <span class="c2html-string">'\0'</span>;

mercurial