Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
csm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository 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
labrobotica
algorithms
csm
Commits
dc52416a
Commit
dc52416a
authored
15 years ago
by
Andrea Censi
Browse files
Options
Downloads
Patches
Plain Diff
No commit message
No commit message
parent
a0e722cb
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
sm/CMakeLists.txt
+0
-11
0 additions, 11 deletions
sm/CMakeLists.txt
sm/lib/json-c/json_more_utils.c
+3
-0
3 additions, 0 deletions
sm/lib/json-c/json_more_utils.c
sm/lib/json-c/json_more_utils.h
+1
-0
1 addition, 0 deletions
sm/lib/json-c/json_more_utils.h
with
4 additions
and
11 deletions
sm/CMakeLists.txt
+
0
−
11
View file @
dc52416a
...
@@ -204,17 +204,6 @@ INSTALL(PROGRAMS hsm_test00 DESTINATION bin)
...
@@ -204,17 +204,6 @@ INSTALL(PROGRAMS hsm_test00 DESTINATION bin)
ENDIF
(
COMPILE_HSM
)
ENDIF
(
COMPILE_HSM
)
IF
(
COMPILE_STRUCTPRIOR
)
INCLUDE_DIRECTORIES
(
/sw/include
)
LINK_DIRECTORIES
(
/sw/lib
)
ADD_EXECUTABLE
(
structprior ./csm/structprior/structprior_test.cpp
)
TARGET_LINK_LIBRARIES
(
structprior csm-static
)
INSTALL
(
PROGRAMS structprior DESTINATION bin
)
ENDIF
(
COMPILE_STRUCTPRIOR
)
SUBDIRS
(
pkg-config
)
SUBDIRS
(
pkg-config
)
...
...
This diff is collapsed.
Click to expand it.
sm/lib/json-c/json_more_utils.c
+
3
−
0
View file @
dc52416a
...
@@ -257,6 +257,9 @@ int jo_read_int(JO jo, const char*name, int*p) {
...
@@ -257,6 +257,9 @@ int jo_read_int(JO jo, const char*name, int*p) {
double
convert_to_double
(
JO
jo
)
{
double
convert_to_double
(
JO
jo
)
{
if
(
json_object_is_type
(
jo
,
(
enum
json_type
)
json_type_double
))
if
(
json_object_is_type
(
jo
,
(
enum
json_type
)
json_type_double
))
return
json_object_get_double
(
jo
);
return
json_object_get_double
(
jo
);
else
if
(
json_object_is_type
(
jo
,
(
enum
json_type
)
json_type_int
))
{
return
json_object_get_int
(
jo
);
}
else
else
return
NAN
;
return
NAN
;
}
}
...
...
This diff is collapsed.
Click to expand it.
sm/lib/json-c/json_more_utils.h
+
1
−
0
View file @
dc52416a
...
@@ -44,6 +44,7 @@ void jo_add_string (JO parent, const char*name, const char*v);
...
@@ -44,6 +44,7 @@ void jo_add_string (JO parent, const char*name, const char*v);
/** Return 0 if there isn't a field called 'name' */
/** Return 0 if there isn't a field called 'name' */
int
jo_read_int
(
JO
parent
,
const
char
*
name
,
int
*
p
)
;
int
jo_read_int
(
JO
parent
,
const
char
*
name
,
int
*
p
)
;
/** This also tolerates an integer */
int
jo_read_double
(
JO
parent
,
const
char
*
name
,
double
*
p
);
int
jo_read_double
(
JO
parent
,
const
char
*
name
,
double
*
p
);
/* Returns 0 if there isn't a field called "name", or it's not an array, or
/* Returns 0 if there isn't a field called "name", or it's not an array, or
...
...
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