WiktionaryDumps to words: Difference between revisions
m
→{{header|Wren}}: Minor tidy and rerun
(than => to) |
m (→{{header|Wren}}: Minor tidy and rerun) |
||
Line 727:
An embedded program so we can use libcurl and libbzip2.
Rather than downloading the full 800MB .bz2 file and then decompressing it, we abort the download after receiving no more than the first 512 KB and then decompress that ignoring the resultant BZ_UNEXPECTED_EOF error. This turns out to be enough to find the first
<syntaxhighlight lang="
import "./pattern" for Pattern
Line 792:
<br>
We now embed this script in the following C program, build and run.
<syntaxhighlight lang="c">/* gcc
#include <stdio.h>
Line 988:
WrenVM* vm = wrenNewVM(&config);
const char* module = "main";
const char* fileName = "
char *script = readFile(fileName);
WrenInterpretResult result = wrenInterpret(vm, module, script);
Line 1,030:
fable
a-
</pre>
|