From befff826557abbf6c692e95bb142b4f9e33cd5ac Mon Sep 17 00:00:00 2001 From: Larry Doolittle Date: Tue, 10 Jul 2012 15:36:33 -0700 Subject: [PATCH] Spelling fixes Comments and debug messages. --- net_func_eval.cc | 6 +++--- tgt-pcb/scope.cc | 2 +- vhdlpp/expression.h | 2 +- vhdlpp/parse.y | 2 +- vvp/vthread.cc | 12 ++++++------ 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/net_func_eval.cc b/net_func_eval.cc index 35f481acb..79bb859c3 100644 --- a/net_func_eval.cc +++ b/net_func_eval.cc @@ -229,7 +229,7 @@ bool NetWhile::evaluate_function(const LineInfo&loc, bool flag = true; if (debug_eval_tree) { - cerr << get_fileline() << ": debug: NetWhile::evaluate_fuction: " + cerr << get_fileline() << ": debug: NetWhile::evaluate_function: " << "Start loop" << endl; } @@ -252,7 +252,7 @@ bool NetWhile::evaluate_function(const LineInfo&loc, if (val == 0) break; - // The condition is true, so evalutate the statement + // The condition is true, so evaluate the statement // another time. bool tmp_flag = proc_->evaluate_function(loc, context_map); if (! tmp_flag) @@ -260,7 +260,7 @@ bool NetWhile::evaluate_function(const LineInfo&loc, } if (debug_eval_tree) { - cerr << get_fileline() << ": debug: NetWhile::evaluate_fuction: " + cerr << get_fileline() << ": debug: NetWhile::evaluate_function: " << "Done loop" << endl; } diff --git a/tgt-pcb/scope.cc b/tgt-pcb/scope.cc index d9ae6a0cc..106cefe7f 100644 --- a/tgt-pcb/scope.cc +++ b/tgt-pcb/scope.cc @@ -117,7 +117,7 @@ void sheet_box(ivl_scope_t scope, const map&attrs) } /* - * A black box is a component. Do not process the contents, other then + * A black box is a component. Do not process the contents, other than * to get at the ports that we'll attach to the netlist. */ static void black_box(ivl_scope_t scope, const map&attrs) diff --git a/vhdlpp/expression.h b/vhdlpp/expression.h index 6e89174ce..c799b15f7 100644 --- a/vhdlpp/expression.h +++ b/vhdlpp/expression.h @@ -383,7 +383,7 @@ class ExpConcat : public Expression { /* * The conditional expression represents the VHDL when-else * expressions. Note that by the VHDL syntax rules, these cannot show - * up other then at the root of an expression. + * up other than at the root of an expression. */ class ExpConditional : public Expression { diff --git a/vhdlpp/parse.y b/vhdlpp/parse.y index 21abf32ab..1e376f2f6 100644 --- a/vhdlpp/parse.y +++ b/vhdlpp/parse.y @@ -139,7 +139,7 @@ const VType*parse_type_by_name(perm_string name) return active_scope->find_type(name); } -// This funciton is called when an aggregate expression is detected by +// This function is called when an aggregate expression is detected by // the parser. It makes the ExpAggregate. It also tries to detect the // special case that the aggregate is really a primary. The problem is // that this: diff --git a/vvp/vthread.cc b/vvp/vthread.cc index ccef7946b..462b5c9fa 100644 --- a/vvp/vthread.cc +++ b/vvp/vthread.cc @@ -107,7 +107,7 @@ struct vthread_s { unsigned delay_delete :1; /* This points to the children of the thread. */ setchildren; - /* No more then 1 of the children is automatic. */ + /* No more than 1 of the children are automatic. */ setautomatic_children; /* This points to my parent, if I have one. */ struct vthread_s*parent; @@ -243,7 +243,7 @@ static vvp_vector4_t vthread_bits_to_vector(struct vthread_s*thr, /* * Some of the instructions do wide addition to arrays of long. They - * use this add_with_cary function to help. + * use this add_with_carry function to help. */ static inline unsigned long add_with_carry(unsigned long a, unsigned long b, unsigned long&carry) @@ -1538,7 +1538,7 @@ bool of_CMPIS(vthread_t thr, vvp_code_t cp) * in the vector part of the instruction. In this case we know that * there is at least 1 xz bit in the left expression (and there are * none in the imm value) so the eeq result must be false. Otherwise, - * the eq result may me 0 or x, and the lt bit is x. + * the eq result may be 0 or x, and the lt bit is x. */ static bool of_CMPIU_the_hard_way(vthread_t thr, vvp_code_t cp) { @@ -2363,8 +2363,8 @@ bool of_END(vthread_t thr, vvp_code_t) // Detect that the parent is waiting on an automatic // thread. Automatic threads must be reaped first. If - // the parent is waiting on an auto (other then me) then - // go into zomple state to be picked up later. + // the parent is waiting on an auto (other than me) then + // go into zombie state to be picked up later. if (!test_joinable(tmp, thr)) return false; @@ -2909,7 +2909,7 @@ bool of_JOIN(vthread_t thr, vvp_code_t) if (!test_joinable(thr, curp)) continue; - // found somenting! + // found something! do_join(thr, curp); return true; }