Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-cpplib
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
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
caosdb
Software
caosdb-cpplib
Commits
75aaa2c1
Verified
Commit
75aaa2c1
authored
6 months ago
by
Daniel Hornung
Browse files
Options
Downloads
Patches
Plain Diff
STY: Style fixes.
parent
e9e4f207
No related branches found
No related tags found
2 merge requests
!61
Release 0.3.0
,
!57
Fix deprecations + updates
Pipeline
#55668
failed
6 months ago
Stage: info
Stage: setup
Stage: test
Stage: deploy
Pipeline: caosdb-cppinttest
#55669
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.docker/Dockerfile
+1
-1
1 addition, 1 deletion
.docker/Dockerfile
src/clinkahead.cpp
+9
-9
9 additions, 9 deletions
src/clinkahead.cpp
with
10 additions
and
10 deletions
.docker/Dockerfile
+
1
−
1
View file @
75aaa2c1
...
...
@@ -9,7 +9,7 @@ RUN apt-get install -y python3-pip python3-venv
RUN
apt-get
install
-y
git
RUN
apt-get
install
-y
curl zip unzip
tar
RUN
apt-get
install
-y
perl pkg-config
RUN
apt-get
install
-y
openjdk-17-jdk-headless
RUN
apt-get
install
-y
openjdk-17-jdk-headless
WORKDIR
/
RUN
python3
-m
venv ./venv
...
...
This diff is collapsed.
Click to expand it.
src/clinkahead.cpp
+
9
−
9
View file @
75aaa2c1
...
...
@@ -86,7 +86,7 @@ extern "C" {
auto *wrapped_entity = WRAPPED_ENTITY_CAST(entity); \
auto *tmp = (char *)malloc(sizeof(char) * wrapped_entity->GetFunction.length() + 1); \
strcpy(tmp, wrapped_entity->GetFunction.c_str()); \
delete[] *out;
\
delete[] *
out; \
*out = tmp; \
return 0; \
})
...
...
@@ -114,7 +114,7 @@ extern "C" {
auto *wrapped_property = WRAPPED_PROPERTY_CAST(property); \
auto *tmp = (char *)malloc(sizeof(char) * wrapped_property->GetFunction.length() + 1); \
strcpy(tmp, wrapped_property->GetFunction.c_str()); \
delete[] *out;
\
delete[] *
out; \
*out = tmp; \
return 0; \
})
...
...
@@ -141,7 +141,7 @@ extern "C" {
auto *wrapped_parent = WRAPPED_PARENT_CAST(parent); \
auto *tmp = (char *)malloc(sizeof(char) * wrapped_parent->GetFunction.length() + 1); \
strcpy(tmp, wrapped_parent->GetFunction.c_str()); \
delete[] *out;
\
delete[] *
out; \
*out = tmp; \
return 0; \
})
...
...
@@ -753,7 +753,7 @@ ERROR_RETURN_CODE(GENERIC_ERROR,
std
::
string
role_str
=
ENUM_NAME_FROM_VALUE
(
wrapped_entity
->
GetRole
(),
Role
);
auto
*
tmp
=
(
char
*
)
malloc
(
sizeof
(
char
)
*
role_str
.
length
()
+
1
);
strcpy
(
tmp
,
role_str
.
c_str
());
delete
[]
*
out
;
delete
[]
*
out
;
*
out
=
tmp
;
return
0
;
})
...
...
@@ -766,7 +766,7 @@ ERROR_RETURN_CODE(GENERIC_ERROR,
auto
path
=
wrapped_entity
->
GetLocalPath
().
string
();
auto
*
tmp
=
(
char
*
)(
malloc
(
sizeof
(
char
)
*
path
.
length
()
+
1
));
strcpy
(
tmp
,
path
.
c_str
());
delete
[]
*
out
;
delete
[]
*
out
;
*
out
=
tmp
;
return
0
;
})
...
...
@@ -917,7 +917,7 @@ ERROR_RETURN_CODE(GENERIC_ERROR,
ENUM_NAME_FROM_VALUE
(
wrapped_property
->
GetImportance
(),
Importance
);
char
*
tmp
=
(
char
*
)
malloc
(
sizeof
(
char
)
*
importance_str
.
length
()
+
1
);
strcpy
(
tmp
,
importance_str
.
c_str
());
delete
[]
*
out
;
delete
[]
*
out
;
*
out
=
tmp
;
return
0
;
})
...
...
@@ -957,7 +957,7 @@ ERROR_RETURN_CODE(
auto
*
wrapped_message
=
static_cast
<
linkahead
::
entity
::
Message
*>
(
message
->
wrapped_message
);
auto
*
tmp
=
(
char
*
)
malloc
(
sizeof
(
char
)
*
wrapped_message
->
GetDescription
().
length
()
+
1
);
strcpy
(
tmp
,
wrapped_message
->
GetDescription
().
c_str
());
delete
[]
*
out
;
delete
[]
*
out
;
*
out
=
tmp
;
return
0
;
})
...
...
@@ -1033,7 +1033,7 @@ ERROR_RETURN_CODE(
}
char
*
tmp
=
(
char
*
)
malloc
(
sizeof
(
char
)
*
datatype_name
.
length
()
+
1
);
strcpy
(
tmp
,
datatype_name
.
c_str
());
delete
[]
*
out
;
delete
[]
*
out
;
*
out
=
tmp
;
return
0
;
})
...
...
@@ -1053,7 +1053,7 @@ ERROR_RETURN_CODE(GENERIC_ERROR,
auto
*
tmp
=
(
char
*
)
malloc
(
sizeof
(
char
)
*
wrapped_value
->
GetAsString
().
length
()
+
1
);
strcpy
(
tmp
,
wrapped_value
->
GetAsString
().
c_str
());
delete
[]
*
out
;
delete
[]
*
out
;
*
out
=
tmp
;
return
0
;
})
...
...
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