Skip to content
Snippets Groups Projects
Commit 7c68829c authored by lhausamm's avatar lhausamm
Browse files

fix some unrespected const

parent 3cb41315
Branches
No related tags found
1 merge request!3Grackle3
...@@ -9,7 +9,7 @@ const size_t class_size[class_count] = { ...@@ -9,7 +9,7 @@ const size_t class_size[class_count] = {
sizeof(struct cooling_function_data) sizeof(struct cooling_function_data)
}; };
const char *class_name[class_count] = { char *class_name[class_count] = {
"UnitSystem", "UnitSystem",
"Part", "Part",
"SwiftParams", "SwiftParams",
...@@ -66,7 +66,7 @@ PyObject* pytools_return(void *p, int class) ...@@ -66,7 +66,7 @@ PyObject* pytools_return(void *p, int class)
/* get class information */ /* get class information */
nber_bytes = class_size[class]; nber_bytes = class_size[class];
const char *class_pyname = class_name[class]; char *class_pyname = class_name[class];
/* import python class */ /* import python class */
python_class = pytools_import(module_name, class_pyname); python_class = pytools_import(module_name, class_pyname);
...@@ -131,7 +131,7 @@ char* pytools_get_type_name(PyObject *obj) ...@@ -131,7 +131,7 @@ char* pytools_get_type_name(PyObject *obj)
char* pytools_construct(PyObject* obj, int class) char* pytools_construct(PyObject* obj, int class)
{ {
char *module_name = "pyswiftsim.structure"; char *module_name = "pyswiftsim.structure";
const char *class_pyname; char *class_pyname;
/* check python class */ /* check python class */
if (class >= class_count) if (class >= class_count)
......
...@@ -55,7 +55,7 @@ enum swift_class { ...@@ -55,7 +55,7 @@ enum swift_class {
/* size of each structure in enum swift_class */ /* size of each structure in enum swift_class */
extern const size_t class_size[]; extern const size_t class_size[];
/* name of each Python class representing a swift class */ /* name of each Python class representing a swift class */
extern const char *class_name[]; extern char *class_name[];
/* error code in pyswiftsim */ /* error code in pyswiftsim */
enum error_code { enum error_code {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment