Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Prolog mlpack Library
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
general
stups
Prolog mlpack Library
Commits
600dd6c4
"README.md" did not exist on "5f53b4536f228b81b301d9ca582f38b2cadf770d"
Commit
600dd6c4
authored
Jul 18, 2022
by
Dean Samuel Schmitz
Browse files
Options
Downloads
Patches
Plain Diff
Deleted unnecessary Files
parent
5e3ef98f
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/test.c
+0
-50
0 additions, 50 deletions
src/test.c
src/test.pl
+0
-15
0 additions, 15 deletions
src/test.pl
with
0 additions
and
65 deletions
src/test.c
deleted
100644 → 0
+
0
−
50
View file @
5e3ef98f
#include
<sicstus/sicstus.h>
/* ex_glue.h is generated by splfr from the foreign/[2,3] facts.
Always include the glue header in your foreign resource code.
*/
#include
"test_glue.h"
/* c1(+integer, [-integer]) */
SP_integer
c1
(
SP_integer
a
)
{
return
(
a
+
100
);
}
/* c2(-integer) */
void
c2
(
SP_integer
*
a
)
{
*
a
=
99
;
}
/* c11(+atom, [-atom]) */
SP_atom
c11
(
SP_atom
a
)
{
return
(
a
);
}
/* c21(+atom, -atom) */
void
c21
(
SP_atom
a
,
SP_atom
*
b
)
{
*
b
=
a
;
}
/* c3(+float, [-float]) */
double
c3
(
double
a
)
{
return
(
a
+
9
.
0
);
}
/* c4(-float) */
void
c4
(
double
*
a
)
{
*
a
=
9
.
9
;
}
/* c5(string, [-string]) */
char
const
*
c5
(
char
const
*
a
)
{
return
(
a
);
}
/* c6(-string) */
void
c6
(
char
const
*
*
a
)
{
*
a
=
"99"
;
}
This diff is collapsed.
Click to expand it.
src/test.pl
deleted
100644 → 0
+
0
−
15
View file @
5e3ef98f
/*
-
*- Mode:Prolog; coding:iso-8859-1; indent-tabs-mode:nil; prolog-indent-width:8; prolog-paren-indent:4; tab-width:8; -*- */
foreign_resource
(
test
,
[
c1
,
c2
,
c11
,
c21
,
c3
,
c4
,
c5
,
c6
]).
foreign
(
c1
,
c
,
c1
(
+
integer
,
[
-
integer
])).
foreign
(
c2
,
c
,
c2
(
-
integer
)).
foreign
(
c11
,
c
,
c11
(
+
atom
,
[
-
atom
])).
foreign
(
c21
,
c
,
c21
(
+
atom
,
-
atom
)).
foreign
(
c3
,
c
,
c3
(
+
float
,
[
-
float
])).
foreign
(
c4
,
c
,
c4
(
-
float
)).
foreign
(
c5
,
c
,
c5
(
+
string
,[
-
string
])).
foreign
(
c6
,
c
,
c6
(
-
string
)).
:-
load_foreign_resource
(
test
).
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment