-
Notifications
You must be signed in to change notification settings - Fork 160
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
Added GAP_ValueMacFloat to libgap-api #3007
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.
Hmm, do we also need a wrapper for NEW_MACFLOAT?
Codecov Report
@@ Coverage Diff @@
## master #3007 +/- ##
==========================================
+ Coverage 85.14% 85.21% +0.07%
==========================================
Files 112 112
Lines 56958 57433 +475
==========================================
+ Hits 48495 48943 +448
- Misses 8463 8490 +27
|
a955c8e
to
8ec7f30
Compare
I hopefully adressed all the comments, and added |
src/libgap-api.h
Outdated
@@ -197,4 +197,15 @@ extern Int GAP_ValueOfChar(Obj obj); | |||
// Returns the GAP character object with value <obj>. | |||
extern Obj GAP_CharWithValue(UChar obj); | |||
|
|||
// Assigns the value of the GAP machine float object <obj> |
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.
Nitpick: There should be a section break comment before this, i.e.,
////
//// floats
////
and ideally this section then should be sorted between the "calls" and "integers" section.
@fingolfin The problem for GAPJulia is even bigger, though. I tried a lot of things yesterday, and it seems this way you need to create a Anyway, what would you suggest instead? |
8ec7f30
to
4ecfde9
Compare
I would suggest to change back to |
Sorry to keep changing things. If it's hard to make a double* in julia, then I wouldn't mind changing back. In general, I would like to make it as hard as possible to break type-safety, but only with interfaces which are actually usable. |
@ChrisJefferson Do not worry here. I am not completely sure if I am right with the array, it just appeared that way. @fingolfin Do you suggest removing the typechecks alltogether? |
No, there still should be a check calling Error as a fallback, as I suggested from the start. |
All right then :) |
4ecfde9
to
3fa660a
Compare
3fa660a
to
0f99e73
Compare
I have no edited the commit in this PR to make it look like I'd prefer: with the |
@fingolfin okay, thanks a lot :) |
I decided to use
double
instead ofDouble
to not having to includemacfloats.h
intolibgap-api.h