<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto">






<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">---</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">testsuites/samples/utf32/init.c | 43 +-</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">1 file changed, 43 insertions(+), 0 deletion(-)</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">create mode 100644 testsuites/samples/utf32/init.c</span></p>
<p class="p2"><span style="background-color: rgba(255, 255, 255, 0);"><span class="s1"></span><br></span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">diff --git a/testsuites/samples/utf32/init.c b/testsuites/samples/utf32/init.c</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">index 83f6342ab3..5ebcdc9ef2 100644</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">--- /dev/null</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+++ b/testsuites/samples/utf32/init.c</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">@@ -0,0 +1,43 @@</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+/*</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+ Author: John Howard</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+ Date: April 5, 2024</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+ Subject: How to compile and execute this test?</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+  $ gcc init.c</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+  $ mv a.out utf32</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+  $ ./utf32</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+*/</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+#include <stdio.h></span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+#include “utf32.h”</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+int main (void)</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+{</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+ utf32 v;</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+ unsigned i;</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+ printf (“Author: John Howard\n”);</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+ v=0xDEADBEEF; printf (“%s %X\n”, “v=0xDEADBEEF; =>”, v);</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+ i=v; i=CODEPOINT_(i); printf (“%s %X\n”, “i=v; i=CODEPOINT_(i); =>”, i);</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+ v=CONVERT_(v); printf (“%s %X\n”, “v=CONVERT_(v); =>”, v);</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+ i=TESTBIT_(v, 0); printf (“%s %X\n”, “i=TESTBIT_(v, 0); =>”, i);</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+ v=SETBIT_(v, 0); printf (“%s %X\n”, “v=SETBIT_(v, 0); =>”, v);</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+ v=UNSETBIT_(v, 0); printf (“%s %X\n”, “v=UNSETBIT_(v, 0); =>”, v);</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+ i=TESTBIT_(v, 31); printf (“%s %X\n”, “i=TESTBIT_(v, 31); =>”, i);</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+ v=UNSETBIT_(v, 31); printf (“%s %X\n”, “v=UNSETBIT_(v, 31); =>”, v);</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+ v=SETBIT_(v, 31); printf (“%s %X\n”, “v=SETBIT_(v, 31); =>”, v);</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+ i=v; i=CODEPOINT_(i); printf (“%s %X\n”, “i=v; i=CODEPOINT_(i); =>”, i);</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+ v=CONVERT_(v); printf (“%s %X\n”, “v=CONVERT_(v); =>”, v);</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+ i=TESTBIT_(v, 0); printf (“%s %X\n”, “i=TESTBIT_(v, 0); =>”, i);</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+ v=UNSETBIT_(v, 0); printf (“%s %X\n”, “v=UNSETBIT_(v, 0); =>”, v);</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+ v=SETBIT_(v, 0); printf (“%s %X\n”, “v=SETBIT_(v, 0); =>”, v);</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+ i=TESTBIT_(v, 31); printf (“%s %X\n”, “i=TESTBIT_(v, 31); =>”, i);</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+ v=UNSETBIT_(v, 31); printf (“%s %X\n”, “v=UNSETBIT_(v, 31); =>”, v);</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+ v=SETBIT_(v, 31); printf (“%s %X\n”, “v=SETBIT_(v, 31); =>”, v);</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+ i=CODEPOINT_(v); printf (“%s %X\n”, “i=CODEPOINT_(v); =>”, i);</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+ printf (“%s %X\n”, “side effect where v is  =>”, v);</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+ v=SETMODEL_(v, 0); printf (“%s %X\n”, “v=SETMODEL_(v, 0); VGA 256 color =>”, v);</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+ v=SETTEXTURE_(v, 0); printf (“%s %X\n”, “v=SETTEXTURE_(v, 0); =>”, v);</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+ v=SETTEXTURE_(v, 255); printf (“%s %X\n”, “v=SETTEXTURE_(v, 255); =>”, v);</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+ v=SETMODEL_(v, 7); printf (“%s %X\n”, “v=SETMODEL_(v, 7); CUBITS Fiery =>”, v);</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+ v=UNSETBIT_(v, 23); v=UNSETBIT_(v, 22); v=UNSETBIT_(v, 21); v=SETMODEL_(v, 1); printf (“%s %X\n”, “v=SETMODEL_(v, 1); CGA 16 color Blink =>”, v);</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">+}</span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">-- </span></p>
<p class="p1"><span class="s1" style="background-color: rgba(255, 255, 255, 0);">2.42.0</span></p><div dir="ltr"></div></body></html>