SOAP: Difference between revisions

39 bytes added ,  3 months ago
m
m (syntax highlighting fixup automation)
m (→‎{{header|Wren}}: Minor tidy)
 
Line 608:
{{libheader|libcurl}}
An embedded program so we can ask the C host to communicate with libcurl for us.
<syntaxhighlight lang="ecmascriptwren">/* soapSOAP.wren */
 
var CURLOPT_URL = 10002
Line 677:
<br>
We now embed this in the following C program, compile and run it.
<syntaxhighlight lang="c">#include/* <stdiogcc SOAP.h>c -o SOAP -lcurl -lwren -lm */
 
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Line 852 ⟶ 854:
WrenVM* vm = wrenNewVM(&config);
const char* module = "main";
const char* fileName = "soapSOAP.wren";
char *script = readFile(fileName);
WrenInterpretResult result = wrenInterpret(vm, module, script);
9,476

edits