Skip to content

Commit 045c8b9

Browse files
fingolfinChrisJefferson
authored andcommitted
Use GVAR_FUNC, don't assume Obj == UInt**
1 parent 58255a6 commit 045c8b9

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/ferret.cc

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
extern "C" {
1414

15-
Obj FuncSOLVE(Obj self, Obj conlist, Obj options) {
15+
static Obj FuncYAPB_SOLVE(Obj self, Obj conlist, Obj options) {
1616
(void)self; // remove warning
1717

1818
if(!IS_REC(options))
@@ -22,7 +22,7 @@ Obj FuncSOLVE(Obj self, Obj conlist, Obj options) {
2222
return solver(conlist, options);
2323
}
2424

25-
Obj FuncSOLVE_COSET(Obj self, Obj conlistC, Obj conlistL, Obj conlistR, Obj options) {
25+
static Obj FuncYAPB_SOLVE_COSET(Obj self, Obj conlistC, Obj conlistL, Obj conlistR, Obj options) {
2626
(void)self; // remove warning
2727

2828
if(!IS_REC(options))
@@ -33,11 +33,9 @@ Obj FuncSOLVE_COSET(Obj self, Obj conlistC, Obj conlistL, Obj conlistR, Obj opti
3333
}
3434

3535
static StructGVarFunc GVarFuncs [] = {
36-
{ "YAPB_SOLVE", 2, "object, object", (UInt**(*)())FuncSOLVE, "src/string.c:FuncSOLVE" },
37-
{ "YAPB_SOLVE_COSET", 4, "object, object, object, object", (UInt**(*)())FuncSOLVE_COSET, "src/string.c:FuncSOLVE_COSET" },
38-
39-
{ 0 }
40-
36+
GVAR_FUNC(YAPB_SOLVE, 2, "object, object"),
37+
GVAR_FUNC(YAPB_SOLVE_COSET, 4, "object, object, object, object"),
38+
{ 0 }
4139
};
4240

4341

0 commit comments

Comments
 (0)