about summary refs log tree commit diff stats
path: root/src/html/htmlparser.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2022-12-26 20:43:32 +0100
committerbptato <nincsnevem662@gmail.com>2022-12-26 20:45:17 +0100
commit2d5245d9ecc920c81b39e790bc3e396a61381849 (patch)
treea491b9761dec78f4f53e588f92452a8753848980 /src/html/htmlparser.nim
parent9c78cc3ce8b3345f95cb37a2a9d2101f52ecaa41 (diff)
downloadchawan-2d5245d9ecc920c81b39e790bc3e396a61381849.tar.gz
Correct attribute functions, de-extern jserr
Instead of unnecessarily marking every jserr function as *, add the
used pragma (so the C compiler can get rid of them later.)
Also, use the correct definition of attribute namespace.
Diffstat (limited to 'src/html/htmlparser.nim')
-rw-r--r--src/html/htmlparser.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/html/htmlparser.nim b/src/html/htmlparser.nim
index 310a11aa..5467e321 100644
--- a/src/html/htmlparser.nim
+++ b/src/html/htmlparser.nim
@@ -2225,7 +2225,7 @@ proc parseHTML*(inputStream: Stream, cs = none(Charset), fallbackcs = CHARSET_UT
 proc newDOMParser*(): DOMParser {.jsctor.} =
   new(result)
 
-proc parseFromString*(parser: DOMParser, str: string, t: string): Document {.jserr, jsfunc.} =
+proc parseFromString(parser: DOMParser, str: string, t: string): Document {.jserr, jsfunc.} =
   case t
   of "text/html":
     let (res, _) = parseHTML(newStringStream(str))