Skip to content

Commit

Permalink
Release 4.3.12 (#260)
Browse files Browse the repository at this point in the history
Signed-off-by: David P. Chassin <david.chassin@me.com>
  • Loading branch information
dchassin authored Jan 9, 2025
1 parent becac96 commit e4f7d20
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion module/optimize/cvx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ cvx *cvx::defaults = NULL;

// convenience objects
PyObject *gld = NULL;
PyObject *mod_list = NULL;
PyObject *class_dict = NULL;
PyObject *global_list = NULL;
PyObject *object_dict = NULL;
Expand Down Expand Up @@ -188,9 +189,11 @@ cvx::cvx(MODULE *module)

// create gld global
gld = PyModule_New("gld");
mod_list = PyList_New(0);
class_dict = PyDict_New();
global_list = PyList_New(0);
object_dict = PyDict_New();
PyModule_AddObject(gld,"modules",mod_list);
PyModule_AddObject(gld,"classes",class_dict);
PyModule_AddObject(gld,"globals",global_list);
PyModule_AddObject(gld,"objects",object_dict);
Expand Down Expand Up @@ -315,8 +318,14 @@ int cvx::init(OBJECT *parent)
PyList_Append(global_list,PyUnicode_FromString(var->prop->name));
}

// construct module list
for ( MODULE *module = gl_module_getfirst() ; module != NULL ; module = module->next )
{
PyList_Append(mod_list,PyUnicode_FromString(module->name));
}

// construct class data dictionary
for ( CLASS *oclass = callback->class_getfirst() ; oclass != NULL ; oclass = oclass->next )
for ( CLASS *oclass = gl_class_get_first() ; oclass != NULL ; oclass = oclass->next )
{
PyObject *defs = PyList_New(0);
for ( PROPERTY *prop = oclass->pmap ; prop != NULL && prop->oclass == oclass ; prop = prop->next )
Expand Down
2 changes: 1 addition & 1 deletion source/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

#define REV_MAJOR 4
#define REV_MINOR 3
#define REV_PATCH 11
#define REV_PATCH 12

#ifdef HAVE_CONFIG_H
#include "config.h"
Expand Down

0 comments on commit e4f7d20

Please sign in to comment.