-
Notifications
You must be signed in to change notification settings - Fork 309
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
[WIP] Feature/listp #51
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good! A few minor things, but once fixed we can merge :)
@@ -1276,6 +1276,9 @@ CDR_SAFE (Lisp_Object c) | |||
Lisp_Object Fsetcar(Lisp_Object, Lisp_Object); | |||
Lisp_Object Fsetcdr(Lisp_Object, Lisp_Object); | |||
Lisp_Object Fcar(Lisp_Object); | |||
Lisp_Object Fatom(Lisp_Object, Lisp_Object); | |||
Lisp_Object Flistp(Lisp_Object, Lisp_Object); | |||
Lisp_Object Fnlistp(Lisp_Object, Lisp_Object); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are functions of one argument, which is why the compile is failing on Travis.
@@ -0,0 +1,37 @@ | |||
use std::os::raw::c_char; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since lists are just collections of cons cells, I propose that we move these functions into cons.rs. We could move Fatom
into cons.rs too.
Slistp, | ||
1, 1, | ||
ptr::null(), | ||
"Return t if OBJECT is a list, that is, a cons cell or nil. Otherwise, return nil."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's probably worth adding (fn OBJECT)
at the end of the docstring, or *Help*
will just show (listp ARG)
.
Maybe also will be better to move |
@0xAX aha, I suggested something similar :). Since we're organising functions by type, I think we should either have a cons.rs or a list.rs, but not both. I don't feel strongly as to which. |
fully agree.
as for me - +1 for list.rs :) |
27de6c2
to
f829daf
Compare
0abe913
to
a6ff1b4
Compare
@Wilfred Finally got back to this, sorry for the delay. Wanted to make sure everything was up to date with master. Travis is now green |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, thanks for following up :)
This follows on from the
feature/atom
branch, so some of the changes here will disappear once (if) that gets merged.Had to bump libc because of compiler complaints around panic vs abort