diff options
author | Nicolas Dandrimont <nicolas.dandrimont@gmail.com> | 2007-11-25 00:20:23 +0100 |
---|---|---|
committer | Nicolas Dandrimont <nicolas.dandrimont@gmail.com> | 2007-11-25 00:20:23 +0100 |
commit | 84a2bfb98f1bcd76f37cc10068984be2f770b697 (patch) | |
tree | 5d7a2834daf1a9ff4baf7e9beef04e717abf5cc9 | |
parent | 3167a3d1d5d88e741f502e72c47e492f82a1697c (diff) | |
download | gmathlib-olasd.tar.gz gmathlib-olasd.tar.bz2 |
Fix spacingolasd
-rw-r--r-- | core/gmathlib.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/core/gmathlib.c b/core/gmathlib.c index b3e53b8..a75dae2 100644 --- a/core/gmathlib.c +++ b/core/gmathlib.c @@ -252,7 +252,7 @@ gmathsymbol_new (GMathContext *context, gchar *type) symbol->type = g_strdup (type); symbol->value = NULL; - symbol->children = (void**)g_new0 (GMathSymbol*, template->children_count); + symbol->children = (void**) g_new0 (GMathSymbol*, template->children_count); symbol->parent = NULL; @@ -277,14 +277,14 @@ gmathsymbol_new_array (GMathContext *context, guint hsize, guint vsize, array = g_new (GMathArray, 1); symbol->children = g_new0 (void*, 1); - symbol->children[0] = (void*)array; + symbol->children[0] = (void*) array; array->hsize = hsize; array->vsize = vsize; array->children = contents; - for(i = 0; i < vsize*hsize; i++) + for (i = 0; i < vsize*hsize; i++) array->children[i]->parent = array; return symbol; @@ -301,11 +301,11 @@ gmathsymbol_free (GMathSymbol *symbol) if (!symbol) return; - if(strcmp (symbol->type, "array") == 0) + if (strcmp (symbol->type, "array") == 0) { - array = (GMathArray*)symbol->children[0]; + array = (GMathArray*) symbol->children[0]; arraysize = array->hsize * array->vsize; - for(i = 0; i < arraysize; i++) + for (i = 0; i < arraysize; i++) gmathsymbol_free (array->children[i]); g_free (array); } |