From 128faf773a5cfb17fc2339436d51053ed8ee1ff4 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Wed, 13 Jan 2010 06:25:38 +0000 Subject: [PATCH] give sprintf a real prototype --- ruamoko/include/string.h | 2 +- ruamoko/lib/string.r | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ruamoko/include/string.h b/ruamoko/include/string.h index b2d703eac..5c3042e28 100644 --- a/ruamoko/include/string.h +++ b/ruamoko/include/string.h @@ -6,7 +6,7 @@ @extern float (string s) stof; @extern float (string s) strlen; @extern float (string goal, string s) charcount; -@extern string (...) sprintf; +@extern string (string fmt, ...) sprintf; @extern string (integer i) itos; @extern integer (string s) stoi; @extern vector (string s) stov; diff --git a/ruamoko/lib/string.r b/ruamoko/lib/string.r index b53260696..387aed9d9 100644 --- a/ruamoko/lib/string.r +++ b/ruamoko/lib/string.r @@ -5,7 +5,7 @@ string (vector v) vtos = #27; float (string s) stof = #81; float (string s) strlen = #0x000f0000 + 100; float (string goal, string s) charcount = #0x000f0000 + 101; -string (...) sprintf = #0x000f0000 + 109; +string (string fmt, ...) sprintf = #0x000f0000 + 109; string (integer i) itos = #0x000f0000 + 112; integer (string s) stoi = #0x000f0000 + 113; vector (string s) stov = #0x000f0000 + 114;