From 8ee23054bf771e56802ce21d70229b7f8f2e9654 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 15 Sep 2024 17:34:34 -0400 Subject: Update Inline C syntax and documentation/tests --- examples/http.tm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/http.tm') diff --git a/examples/http.tm b/examples/http.tm index 0a27ece2..bbec3308 100644 --- a/examples/http.tm +++ b/examples/http.tm @@ -12,9 +12,9 @@ _curl := !@Memory func _send(method:_Method, url:Text, data:Text?, headers=[:Text])->HTTPResponse: chunks := @[:Text] save_chunk := func(chunk:CString, size:Int64, n:Int64): - chunks:insert(inline C ( + chunks:insert(inline C:Text { Text$format("%.*s", $size*$n, $chunk) - ) : Text) + }) return n*size inline C { -- cgit v1.2.3