Whitespace

This commit is contained in:
Brian Anderson 2012-12-15 22:38:04 -08:00
parent 20ea37b336
commit 7f8e302a6a
8 changed files with 11 additions and 8 deletions

View File

@ -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)

View File

@ -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();

View File

@ -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);

View File

@ -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;

View File

@ -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;

View File

@ -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,

View File

@ -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.

View File

@ -73,7 +73,10 @@ array_list<T>::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;