Browse Source

Check for carriage return

master
Macoy Madson 2 months ago
parent
commit
ebed76d7bf
  1. 3
      src/Introspection.cake

3
src/Introspection.cake

@ -1164,7 +1164,8 @@
(unless (and (= 0 (strncmp (+ 1 current-char) (path struct-metadata > name)
struct-name-length))
(or (= ' ' (at (+ 1 struct-name-length) current-char))
(= '\n' (at (+ 1 struct-name-length) current-char))))
(= '\n' (at (+ 1 struct-name-length) current-char))
(= '\r' (at (+ 1 struct-name-length) current-char))))
(fprintf stderr "error: failed to read struct %s from string" \
" (struct type name does not match): \"%s\"\n"
(path struct-metadata > name) (+ 1 current-char))

Loading…
Cancel
Save