Commit 04e9fe45

04e9fe454c48Merged

Yukihiro "Matz" Matsumoto <[email protected]> · 7 months ago · 1 file · ~1 modified

Description

feat: add Kernel#readline as alias for gets

Both now route to sp_gets() for stdin line reading.

Co-Authored-By: Claude Opus 4.6 (1M context) [email protected]

Details

Commit
04e9fe454c48
Parent
f763b946df2e

spinel_codegen.rbmodifiedView file

@@ -1644,7 +1644,7 @@
16441644 if mname == "scan"
16451645 return "str_array"
16461646 end
1647- if mname == "gets"
1647+ if mname == "gets" || mname == "readline"
16481648 return "string"
16491649 end
16501650 if mname == "gsub"
@@ -10987,7 +10987,7 @@
1098710987 end
1098810988 return "0"
1098910989 end
10990- if mname == "gets"
10990+ if mname == "gets" || mname == "readline"
1099110991 return "sp_gets()"
1099210992 end
1099310993 if mname == "rand"