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

Few code optimization. #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AkshayMohan
Copy link

  • Changed 's_DialogOpened' array's datatype to bool.
  • Replaced 'strlen' on Dialog_Open and under dialog response with faster alternative.
  • Added a macro EASYDIALOG_SANITIZE_INPUT to choose whether to have include's inbuilt inputtext sanitizer. By default, it takes into account that inputtext must be sanitized. But if you define EASYDIALOG_SANITIZE_INPUT to 0 before including easyDialog, it won't perform sanitization. This can be useful in case if the coder wants to explicitly check for '%' symbol.
  • Removed additional strcat under OnDialogResponse with static string initialization.

- Changed 's_DialogOpened' array's datatype to bool.
- Replaced 'strlen' on Dialog_Open and under dialog response with faster alternative.
- Added a macro EASYDIALOG_SANITIZE_INPUT to choose whether to have include's inbuilt inputtext sanitizer. By default, it takes into account that inputtext must be sanitized. But if you define EASYDIALOG_SANITIZE_INPUT to 0 before including easyDialog, it won't perform sanitization. This can be useful in case if the coder wants to explicitly check for '%' symbol.
- Removed additional strcat under OnDialogResponse with static string initialization.
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.

1 participant