-
Notifications
You must be signed in to change notification settings - Fork 752
Replace isdigit with OMR_ISDIGIT #21555
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
base: master
Are you sure you want to change the base?
Conversation
runtime/cfdumper/romdump.c
Outdated
@@ -698,14 +700,14 @@ parseROMQuery(J9Pool *allocator, const char *query) | |||
|
|||
if ('[' == *query) { | |||
query++; | |||
if (!isdigit(*query)) { | |||
if (!__isdigit_a(*query)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this a function on z/OS? The code is common to all platforms and needs to compile on all of them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should instead use OMR_ISDIGIT()
once eclipse-omr/omr#7711 is merged.
@keithc-ca fyi |
I proposed a way forward in eclipse-omr/omr#7711 (comment). |
In order to support removal of a2e header redefinitions for isdigit() method, the usage of isdigit() are replaced with OMR_ISDIGIT() to properly recognize ascii digit literals. This is done by conditionally using __isdigit_a() on z/OS platforms. Signed-off-by: Gaurav Chaudhari <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are additional uses of isdigit()
in these files:
runtime/compiler/il/J9DataTypes.cpp
runtime/redirector/redirector.c
runtime/util_core/j9argscan.c
In order to support removal of a2e header redefinitions for
isdigit() method, the usage of isdigit() are replaced with
OMR_ISDIGIT() to properly recognize ascii digit literals.
This is done by conditionally using __isdigit_a() on z/OS
platforms.
Main PR driving this change, that needs to be merged alongside: eclipse-omr/omr#7413
(project tag: Open XL z/OS compiler support)