Skip to content

Commit

Permalink
remove comments
Browse files Browse the repository at this point in the history
Signed-off-by: James Rubingh <james@wrive.com>
  • Loading branch information
ephesus committed Jan 25, 2011
1 parent 7df4ab5 commit 38882e1
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lib/pass.c
Expand Up @@ -381,18 +381,13 @@ struct instruction *parse_source(FILE *infile, struct instruction* initial_root,
cur = new_instruction();

if (isblank(buffer[0]) || (buffer[0] == '\n') || (buffer[0] == '#') || (buffer[0] == '.')) {
/** if the first char is blank, treat as an instruction
* or a blank line.
*/

if (buffer[0] == '#') //make preprocessor directives .<directive>
buffer[0] = '.';

/** split line, get instruction and operands */
if ((buf = (char *) strtok(buffer, whitespace))) {
instructions++;

/* if first element, point root to it */
if (!inst_root)
inst_root = cur;

Expand All @@ -403,7 +398,6 @@ struct instruction *parse_source(FILE *infile, struct instruction* initial_root,

strncpy(cur->mnumonic, buf, MNUMONIC_TXT_LENGTH);

/* attach any operands we find */
get_operands(cur);
}

Expand Down

1 comment on commit 38882e1

@ephesus
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note to self: fix label_root references

Please sign in to comment.