Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add packet read syntax to c parser #22

Merged
merged 1 commit into from
May 29, 2015
Merged

Add packet read syntax to c parser #22

merged 1 commit into from
May 29, 2015

Conversation

drzaeus77
Copy link
Collaborator

  • C macro-based state machine
  • Add lookup_or_init helper routine instead of array syntax
  • Recognize references to protocol headers and translate into dext call

Signed-off-by: Brenden Blanco [email protected]

* C macro-based state machine
* Add lookup_or_init helper routine instead of array syntax
* Recognize references to protocol headers and translate into dext call

Signed-off-by: Brenden Blanco <[email protected]>
txt += "if (!leaf) {";
txt += " " + update + ", " + arg0 + ", " + arg1 + ", " + map_update_policy + ");";
txt += " leaf = " + lookup + ", " + arg0 + ");";
txt += " if (!leaf) return -1;";
Copy link
Member

Choose a reason for hiding this comment

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

needs to be 'return 0' to match div_by_zero and load out of bounds. zero is a standard exception path.

4ast pushed a commit that referenced this pull request May 29, 2015
Add packet read syntax to c parser
@4ast 4ast merged commit d550d32 into master May 29, 2015
@balasu balasu mentioned this pull request Aug 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants