-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
rdstdin (linenoise) breaks the C++ backend #16449
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
see #3720 |
Note that
|
PR is welcome |
proposed approach to fix this: see #16451 (comment) |
@HJarausch I can't reproduce on osx: works on linux: works ya works for me on linux too w 1.5.1 command: |
I have a déjà vu here. This discussion has been there in the past. It had been resolved. The problem was fixed. This is a regression. |
If someone can reproduce this issue, feel free to reopen. |
Uh oh!
There was an error while loading. Please reload this page.
#[
Compiling this with nim cpp -r Hello.nim
gives
/usr/lib/nim/wrappers/linenoise/linenoise.c: In function 'void abAppend(abuf*, const char*, int)':
/usr/lib/nim/wrappers/linenoise/linenoise.c:462:11: error: expected unqualified-id before 'new'
462 | char *new = realloc(ab->b,ab->len+len);
| ^~~
/usr/lib/nim/wrappers/linenoise/linenoise.c:464:13: error: expected type-specifier before '==' token
464 | if (new == NULL) return;
| ^~
/usr/lib/nim/wrappers/linenoise/linenoise.c:465:15: error: expected type-specifier before '+' token
465 | memcpy(new+ab->len,s,len);
| ^
]#
The text was updated successfully, but these errors were encountered: