summaryrefslogtreecommitdiff
path: root/backgraph.c
diff options
context:
space:
mode:
authorivmai <ivmai>2009-10-17 12:12:52 +0200
committerIvan Maidanski <ivmai@mail.ru>2011-07-26 19:06:50 +0200
commit8274f8d1e2e748fba76be6ddf2d09c105e7af778 (patch)
tree6ade0316134cce3c7699fe77b8be651391bed1c5 /backgraph.c
parent454d418dec1eda78f7dedfebeec978a87d6ff773 (diff)
2009-10-17 Ivan Maidanski <ivmai@mail.ru>
* alloc.c (GC_never_stop_func, GC_check_fl_marks, GC_finish_collection): Reformat the code (make opening bracket style uniform across the file). * allchblk.c (GC_allochblk): Ditto. * backgraph.c (add_edge): Ditto. * dbg_mlc.c (GC_marked_for_finalization): Ditto. * dyn_load.c (GC_register_dynamic_libraries, GC_init_dyld): Ditto. * finalize.c (GC_null_finalize_mark_proc): Ditto. * gc_dlopen.c (GC_dlopen): Ditto. * mark.c (GC_push_marked1, GC_push_marked2, GC_push_marked4): Ditto. * misc.c (looping_handler, GC_call_with_gc_active, GC_do_blocking_inner, GC_do_blocking): Ditto. * os_dep.c (GC_get_main_stack_base, GC_read_dirty): Ditto. * pthread_support.c (GC_pthread_create, GC_pthread_sigmask, GC_pthread_join, GC_pthread_detach, GC_check_tls, GC_do_blocking_inner, GC_call_with_gc_active): Ditto. * reclaim.c (GC_reclaim_clear, GC_reclaim_block, GC_print_free_list): Ditto. * os_dep.c (GC_page_was_dirty, GC_page_was_ever_dirty, GC_remove_protection): Reformat the code (wrap long lines).
Diffstat (limited to 'backgraph.c')
-rw-r--r--backgraph.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/backgraph.c b/backgraph.c
index 92a4135..40d6cff 100644
--- a/backgraph.c
+++ b/backgraph.c
@@ -245,8 +245,8 @@ static void add_edge(ptr_t p, ptr_t q)
ensure_struct(q);
old_back_ptr = GET_OH_BG_PTR(q);
be = (back_edges *)((word)old_back_ptr & ~FLAG_MANY);
- for (i = be -> n_edges, be_cont = be; i > MAX_IN;
- be_cont = be_cont -> cont, i -= MAX_IN) {}
+ for (i = be -> n_edges, be_cont = be; i > MAX_IN; i -= MAX_IN)
+ be_cont = be_cont -> cont;
if (i == MAX_IN) {
be_cont -> cont = new_back_edges();
be_cont = be_cont -> cont;