Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PySWIFTsim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
SWIFT
PySWIFTsim
Commits
7c68829c
Commit
7c68829c
authored
7 years ago
by
lhausamm
Browse files
Options
Downloads
Patches
Plain Diff
fix some unrespected const
parent
3cb41315
No related branches found
No related tags found
1 merge request
!3
Grackle3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/pyswiftsim_tools.c
+3
-3
3 additions, 3 deletions
src/pyswiftsim_tools.c
src/pyswiftsim_tools.h
+1
-1
1 addition, 1 deletion
src/pyswiftsim_tools.h
with
4 additions
and
4 deletions
src/pyswiftsim_tools.c
+
3
−
3
View file @
7c68829c
...
...
@@ -9,7 +9,7 @@ const size_t class_size[class_count] = {
sizeof
(
struct
cooling_function_data
)
};
const
char
*
class_name
[
class_count
]
=
{
char
*
class_name
[
class_count
]
=
{
"UnitSystem"
,
"Part"
,
"SwiftParams"
,
...
...
@@ -66,7 +66,7 @@ PyObject* pytools_return(void *p, int class)
/* get class information */
nber_bytes
=
class_size
[
class
];
const
char
*
class_pyname
=
class_name
[
class
];
char
*
class_pyname
=
class_name
[
class
];
/* import python class */
python_class
=
pytools_import
(
module_name
,
class_pyname
);
...
...
@@ -131,7 +131,7 @@ char* pytools_get_type_name(PyObject *obj)
char
*
pytools_construct
(
PyObject
*
obj
,
int
class
)
{
char
*
module_name
=
"pyswiftsim.structure"
;
const
char
*
class_pyname
;
char
*
class_pyname
;
/* check python class */
if
(
class
>=
class_count
)
...
...
This diff is collapsed.
Click to expand it.
src/pyswiftsim_tools.h
+
1
−
1
View file @
7c68829c
...
...
@@ -55,7 +55,7 @@ enum swift_class {
/* size of each structure in enum swift_class */
extern
const
size_t
class_size
[];
/* name of each Python class representing a swift class */
extern
const
char
*
class_name
[];
extern
char
*
class_name
[];
/* error code in pyswiftsim */
enum
error_code
{
...
...
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