Bitmap: Difference between revisions

42 bytes added ,  1 year ago
Line 425:
Because this code will be used in other tasks, I have separated it into "static" and "dynamic" source files. The former is the equivalent of an "interface" file in some other languages, and the latter is equivalent of an "implementation" file. I included some test code that gets compiled if you put the correct option on the compiler command line.
 
Here===The is the "static" file, <code>bitmap_task.sats</code>.===
This file should be called <code>bitmap_task.sats</code>.
<syntaxhighlight lang="ats">
#define ATS_PACKNAME "Rosetta_Code.bitmap_task"
Line 619 ⟶ 620:
</syntaxhighlight>
 
Here===The is the "dynamic" file, <code>bitmap_task.dats</code>.===
This file should be called <code>bitmap_task.dats</code>.
<syntaxhighlight lang="ats">
(*------------------------------------------------------------------*)
Line 945 ⟶ 947:
<pre>$ patscc -std=gnu2x -g -O2 -DATS_MEMALLOC_LIBC -DATS BITMAP_TASK_TEST bitmap_task.sats bitmap_task.dats
$ ./a.out</pre>
You should end up with a copy of the data in a file named <code>4.2.07.raw.dumped</code>.
 
You should end up with a copy of the data in a file named <code>4.2.07.raw.dumped</code>.
 
=={{header|AutoHotkey}}==
1,448

edits