Fix spacing issues in the code.

Remove space at the end of line and space before tab since they serve
no purpose.
This commit is contained in:
Cary R 2011-07-28 16:40:15 -07:00 committed by Stephen Williams
parent 547ea61be8
commit 836e61e878
8 changed files with 15 additions and 15 deletions

View File

@ -145,12 +145,12 @@ TU [munpf]
"<=" { return K_LE; }
">=" { return K_GE; }
"=>" { return K_EG; }
"+=>"|"-=>" {
"+=>"|"-=>" {
/*
* Resolve the ambiguity between the += assignment
* operator and +=> polarity edge path operator
*
* +=> should be treated as two separate tokens '+' and
*
* +=> should be treated as two separate tokens '+' and
* '=>' (K_EG), therefore we only consume the first
* character of the matched pattern i.e. either + or -
* and push back the rest of the matches text (=>) in

View File

@ -330,7 +330,7 @@ static long check_enum_seq_value(const YYLTYPE&loc, verinum *arg, bool zero_ok)
%token <text> PATHPULSE_IDENTIFIER
%token <number> BASED_NUMBER DEC_NUMBER
%token <realtime> REALTIME
%token K_PLUS_EQ K_MINUS_EQ
%token K_PLUS_EQ K_MINUS_EQ
%token K_LE K_GE K_EG K_EQ K_NE K_CEQ K_CNE K_LS K_RS K_RSS K_SG
/* K_CONTRIBUTE is <+, the contribution assign. */
%token K_CONTRIBUTE

View File

@ -3143,7 +3143,7 @@ static struct vector_info draw_unary_expr(ivl_expr_t expr, unsigned wid)
res.base = allocate_vector(wid);
res.wid = wid;
fprintf(vvp_out, " %%cvt/vr %d, %d, %u;\n", res.base, word, wid);
clr_word(word);
clr_word(word);
break;
default:

View File

@ -117,7 +117,7 @@ static void delete_global_scope(void)
delete active_scope;
}
//delete global entities that were gathered over the parsing process
//delete global entities that were gathered over the parsing process
static void delete_design_entities(void)
{
for(map<perm_string,Entity*>::iterator cur = design_entities.begin()
@ -162,7 +162,7 @@ const VType*parse_type_by_name(perm_string name)
IfSequential::Elsif*elsif;
std::list<IfSequential::Elsif*>*elsif_list;
CaseSeqStmt::CaseStmtAlternative* case_alt;
std::list<CaseSeqStmt::CaseStmtAlternative*>* case_alt_list;
@ -234,7 +234,7 @@ const VType*parse_type_by_name(perm_string name)
%type <expr> choice expression factor primary relation
%type <expr> expression_logical expression_logical_and expression_logical_or
%type <expr> expression_logical_xnor expression_logical_xor
%type <expr> name
%type <expr> name
%type <expr> shift_expression simple_expression term waveform_element
%type <expr_list> waveform waveform_elements
@ -446,7 +446,7 @@ case_statement_alternative_list
}
| case_statement_alternative
{
std::list<CaseSeqStmt::CaseStmtAlternative*>*tmp =
std::list<CaseSeqStmt::CaseStmtAlternative*>*tmp =
new std::list<CaseSeqStmt::CaseStmtAlternative*>();
tmp->push_back($1);
$$ = tmp;
@ -456,7 +456,7 @@ case_statement_alternative_list
case_statement_alternative
: K_when choice ARROW sequence_of_statements
{
CaseSeqStmt::CaseStmtAlternative* tmp =
CaseSeqStmt::CaseStmtAlternative* tmp =
new CaseSeqStmt::CaseStmtAlternative($2, $4);
FILE_NAME(tmp, @1);
delete $4;
@ -1091,7 +1091,7 @@ loop_statement
sorrymsg(@1, "Loop statements are not supported");
$$ = tmp;
};
mode
: K_in { $$ = PORT_IN; }
| K_out { $$ = PORT_OUT; }

View File

@ -79,6 +79,6 @@ class range_t {
bool direction_;
private: //not implemented
range_t(const range_t&);
range_t operator=(const range_t&);
range_t operator=(const range_t&);
};
#endif

View File

@ -154,7 +154,7 @@ class ActiveScope : public ScopeBase {
old_constants_.erase(it);
new_constants_[name] = new const_t(obj, val);
}
void destroy_global_scope()
{
cleanup();

View File

@ -169,7 +169,7 @@ LoopStatement::~LoopStatement()
ForLoopStatement::ForLoopStatement(perm_string it, range_t* range, list<SequentialStmt*>* stmts)
: LoopStatement(stmts), it_(it), range_(range)
{
{
}
ForLoopStatement::~ForLoopStatement()

View File

@ -110,7 +110,7 @@ class CaseSeqStmt : public SequentialStmt {
CaseStmtAlternative(Expression* exp, list<SequentialStmt*>* stmts);
~CaseStmtAlternative();
void dump(ostream& out, int indent) const;
//TODO: implement the following:
//int elaborate(Entity*ent, Architecture*arc);
//int emit(ostream&out, Entity*entity, Architecture*arc);