File tree Expand file tree Collapse file tree 3 files changed +14
-14
lines changed
Expand file tree Collapse file tree 3 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -232,7 +232,7 @@ void list_dump(mmc_List* list)
232232 }
233233 else
234234 {
235- fprintf (stderr , "\nElements in the List: " );
235+ fprintf (stderr , "\nElements in the List: " );
236236 /* traverse the entire linked list */
237237 while (curPtr != NULL )
238238 {
@@ -269,16 +269,16 @@ int list_reverse(mmc_List* list)
269269/* clone a list in reverse! */
270270mmc_List list_clone (mmc_List list )
271271{
272- mmc_List lst = NULL , curPtr = list ;
272+ mmc_List lst = NULL , curPtr = list ;
273273
274- /* if empty return empty */
275- if (!curPtr )
276- return lst ;
274+ /* if empty return empty */
275+ if (!curPtr )
276+ return lst ;
277277
278278 while (curPtr != NULL )
279279 {
280- list_cons (& lst , curPtr -> el );
281- curPtr = curPtr -> next ;
280+ list_cons (& lst , curPtr -> el );
281+ curPtr = curPtr -> next ;
282282 }
283283
284284 return lst ;
Original file line number Diff line number Diff line change @@ -41,16 +41,16 @@ extern "C" {
4141/* a free slot */
4242struct mmc_GC_free_slot
4343{
44- modelica_metatype start ; /* the start of the free slot */
45- long size ; /* the free slot size */
44+ modelica_metatype start ; /* the start of the free slot */
45+ long size ; /* the free slot size */
4646};
4747typedef struct mmc_GC_free_slot mmc_GC_free_slot ;
4848
4949/* a linked list */
5050struct mmc_ListElement
5151{
52- mmc_GC_free_slot el ;
53- struct mmc_ListElement * next ;
52+ mmc_GC_free_slot el ;
53+ struct mmc_ListElement * next ;
5454};
5555typedef struct mmc_ListElement * mmc_List ;
5656
Original file line number Diff line number Diff line change @@ -49,9 +49,9 @@ extern "C" {
4949/* GC statistics, add more here if needed */
5050struct mmc_GC_stats_type
5151{
52- long allocated ; /* the total allocated memory */
53- long collected ; /* the total collected memory */
54- long collections ; /* the number of performed collections */
52+ long allocated ; /* the total allocated memory */
53+ long collected ; /* the total collected memory */
54+ long collections ; /* the number of performed collections */
5555};
5656typedef struct mmc_GC_stats_type mmc_GC_stats_type ;
5757
You can’t perform that action at this time.
0 commit comments