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

register keyword used in the generated lexer #3

Closed
khaledmohammed opened this issue Jan 7, 2017 · 6 comments
Closed

register keyword used in the generated lexer #3

khaledmohammed opened this issue Jan 7, 2017 · 6 comments

Comments

@khaledmohammed
Copy link

register keyword used in the generated lexer such as the following:
register yy_size_t number_to_move = (yy_n_chars) + 2;

c++11 has deprecated the "register" keyword. register keyword is a hint to the compiler.

It would be nice if we can remove the "register" keyword from the generated scanner for at least c++, if not for c.

Some compilers have started printing a warning message if c++11x option is choosen to compile the scanner, and causes issue in the build system

Thanks,
-Khaled

@lexxmark
Copy link
Owner

lexxmark commented Jan 9, 2017

Ok, will look into it

@lexxmark
Copy link
Owner

Sorry for delay, I was sick a little. I will try to upgrade win_flex to version 2.6.3
Seems there is no any register words in the generated code.
Will it works for you? Or do you depend on 2.5.37 version?

@khaledmohammed
Copy link
Author

khaledmohammed commented Jan 18, 2017 via email

@lexxmark
Copy link
Owner

Hi Khaled,

just finished upgrading win_flex, now testing it.
Could you please take a new version from releses section here and try it.
And let me know in case any issues.

Regards,
Alex

@khaledmohammed
Copy link
Author

khaledmohammed commented Jan 30, 2017 via email

@lexxmark
Copy link
Owner

You are welcome.
I've released flex 2.6.3 so you can get it from http://sourceforge.net/projects/winflexbison/

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

No branches or pull requests

2 participants