-
Notifications
You must be signed in to change notification settings - Fork 17
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
String cilkrts alert options #31
Conversation
Just noticed NOBUF was no longer used because I accidentally removed it. Need to fix. |
Can you rebase so the pull request contains your changes? |
c918a5b
to
9a4f35b
Compare
I suggest |
A few things look more complicated than necessary. See branch jfc/alert for simplifications.
|
Sorry, forgot to turn into a draft. I'm technically on vacation, and just tinkering a bit here and there. Latest commits were pre-coffee, so not the best.
|
|
Re strcasecmp, I meant it isn't part of the C standard itself, though it is part of the Single Unix Specification v4, and I only find sources saying they are unable to use strcasecmp in Windows. Windows has a nearly identical function _stricmp, and working around using those case insensitive compare is clunky, so I don't mind using strcasecmp here. Windows (allegedly) warns if you use strdup, and I think malloc + strcpy is better than the ifdefs that would be required for switching between strdup (Unix) and _strdup (Windows), so I am currently using malloc + strcpy instead of strdup. |
d2c3e47
to
8b1069c
Compare
Modify CILK_ALERT such that the method for enabling specific alert types is more memorable.
Still allows specifying just a number (as before), but will also accept a comma-separated list of options (excluding numbers).
For example,
CILK_ALERT=fiber,closure
enables ALERT_FIBER and ALERT_CLOSURE printouts from cilkrts_alert.