From 7f8e302a6a46f175b2f8709b83900288f34164ed Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Sat, 15 Dec 2012 22:38:04 -0800 Subject: [PATCH] Whitespace --- src/rt/boxed_region.h | 2 +- src/rt/circular_buffer.h | 2 +- src/rt/memory_region.h | 2 +- src/rt/rust_sched_launcher.h | 2 +- src/rt/rust_sched_loop.h | 2 +- src/rt/rust_scheduler.h | 2 +- src/rt/rust_task.h | 2 +- src/rt/util/array_list.h | 5 ++++- 8 files changed, 11 insertions(+), 8 deletions(-) diff --git a/src/rt/boxed_region.h b/src/rt/boxed_region.h index 5578a7198b0..4097b6d41b7 100644 --- a/src/rt/boxed_region.h +++ b/src/rt/boxed_region.h @@ -39,7 +39,7 @@ private: // private and undefined to disable copying boxed_region(const boxed_region& rhs); boxed_region& operator=(const boxed_region& rhs); - + public: boxed_region(rust_env *e, memory_region *br) : env(e) diff --git a/src/rt/circular_buffer.h b/src/rt/circular_buffer.h index f632ff73ee6..172fa5c625b 100644 --- a/src/rt/circular_buffer.h +++ b/src/rt/circular_buffer.h @@ -39,7 +39,7 @@ private: // private and undefined to disable copying circular_buffer(const circular_buffer& rhs); circular_buffer& operator=(const circular_buffer& rhs); - + private: size_t initial_size(); void grow(); diff --git a/src/rt/memory_region.h b/src/rt/memory_region.h index 39b8cf1643e..7a68a0f8af5 100644 --- a/src/rt/memory_region.h +++ b/src/rt/memory_region.h @@ -73,7 +73,7 @@ private: // private and undefined to disable copying memory_region(const memory_region& rhs); memory_region& operator=(const memory_region& rhs); - + public: memory_region(rust_env *env, bool synchronized); memory_region(memory_region *parent); diff --git a/src/rt/rust_sched_launcher.h b/src/rt/rust_sched_launcher.h index 9073e70b3f1..a981fad24f8 100644 --- a/src/rt/rust_sched_launcher.h +++ b/src/rt/rust_sched_launcher.h @@ -27,7 +27,7 @@ private: // private and undefined to disable copying rust_sched_launcher(const rust_sched_launcher& rhs); rust_sched_launcher& operator=(const rust_sched_launcher& rhs); - + protected: rust_sched_driver driver; diff --git a/src/rt/rust_sched_loop.h b/src/rt/rust_sched_loop.h index d1cfa2090a2..a5e6bc231e6 100644 --- a/src/rt/rust_sched_loop.h +++ b/src/rt/rust_sched_loop.h @@ -86,7 +86,7 @@ private: // private and undefined to disable copying rust_sched_loop(const rust_sched_loop& rhs); rust_sched_loop& operator=(const rust_sched_loop& rhs); - + public: rust_kernel *kernel; rust_scheduler *sched; diff --git a/src/rt/rust_scheduler.h b/src/rt/rust_scheduler.h index 4a6c4ccccd3..30e0626ddd3 100644 --- a/src/rt/rust_scheduler.h +++ b/src/rt/rust_scheduler.h @@ -62,7 +62,7 @@ private: // private and undefined to disable copying rust_scheduler(const rust_scheduler& rhs); rust_scheduler& operator=(const rust_scheduler& rhs); - + public: rust_scheduler(rust_kernel *kernel, size_t max_num_threads, rust_sched_id id, bool allow_exit, bool killed, diff --git a/src/rt/rust_task.h b/src/rt/rust_task.h index 5b3c0568edc..27694becdfb 100644 --- a/src/rt/rust_task.h +++ b/src/rt/rust_task.h @@ -309,7 +309,7 @@ private: // private and undefined to disable copying rust_task(const rust_task& rhs); rust_task& operator=(const rust_task& rhs); - + public: // Only a pointer to 'name' is kept, so it must live as long as this task. diff --git a/src/rt/util/array_list.h b/src/rt/util/array_list.h index 666ce56006a..4bef26750db 100644 --- a/src/rt/util/array_list.h +++ b/src/rt/util/array_list.h @@ -73,7 +73,10 @@ array_list::push(T value) { size_t new_capacity = _capacity * 2; void* buffer = realloc(_data, new_capacity * sizeof(T)); if (buffer == NULL) { - fprintf(stderr, "array_list::push> Out of memory allocating %ld bytes", (long int) (new_capacity * sizeof(T))); + fprintf(stderr, + "array_list::push> " + "Out of memory allocating %ld bytes", + (long int) (new_capacity * sizeof(T))); abort(); } _data = (T *) buffer;