Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
e3-require
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Anders Lindh Olsson
e3-require
Commits
601883b6
Commit
601883b6
authored
1 year ago
by
Simon Rose
Browse files
Options
Downloads
Patches
Plain Diff
Remove `foreachLoadedLib`
This was a function from the original require, but it wasn't even ever used there...
parent
9d34dce1
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
require-ess/src/require.c
+0
-16
0 additions, 16 deletions
require-ess/src/require.c
require-ess/src/require.h
+0
-3
0 additions, 3 deletions
require-ess/src/require.h
with
0 additions
and
19 deletions
require-ess/src/require.c
+
0
−
16
View file @
601883b6
...
@@ -517,22 +517,6 @@ static void registerExternalModules() {
...
@@ -517,22 +517,6 @@ static void registerExternalModules() {
static
void
registerExternalModules
()
{
;
}
static
void
registerExternalModules
()
{
;
}
#endif
#endif
size_t
foreachLoadedLib
(
size_t
(
*
func
)(
const
char
*
name
,
const
char
*
version
,
const
char
*
path
,
void
*
arg
),
void
*
arg
)
{
moduleitem
*
m
;
int
result
;
for
(
m
=
loadedModules
;
m
;
m
=
m
->
next
)
{
const
char
*
name
=
m
->
content
;
const
char
*
version
=
name
+
strlen
(
name
)
+
1
;
const
char
*
path
=
version
+
strlen
(
version
)
+
1
;
result
=
func
(
name
,
version
,
path
,
arg
);
if
(
result
)
return
result
;
}
return
0
;
}
const
char
*
getLibVersion
(
const
char
*
libname
)
{
const
char
*
getLibVersion
(
const
char
*
libname
)
{
moduleitem
*
m
;
moduleitem
*
m
;
...
...
This diff is collapsed.
Click to expand it.
require-ess/src/require.h
+
0
−
3
View file @
601883b6
...
@@ -14,9 +14,6 @@ extern "C" {
...
@@ -14,9 +14,6 @@ extern "C" {
#endif // __GNUC__
#endif // __GNUC__
int
require
(
const
char
*
libname
,
const
char
*
version
);
int
require
(
const
char
*
libname
,
const
char
*
version
);
size_t
foreachLoadedLib
(
size_t
(
*
func
)(
const
char
*
name
,
const
char
*
version
,
const
char
*
path
,
void
*
arg
),
void
*
arg
);
const
char
*
getLibVersion
(
const
char
*
libname
);
const
char
*
getLibVersion
(
const
char
*
libname
);
const
char
*
getLibLocation
(
const
char
*
libname
);
const
char
*
getLibLocation
(
const
char
*
libname
);
int
libversionShow
(
const
char
*
outfile
);
int
libversionShow
(
const
char
*
outfile
);
...
...
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