Hi. Thanks to the author for writing the regex utility. I can see this as being extremely useful on the Mac and iPhone.
I overlooked the fact that this forum existed when I posted a note to the mailing list that accompanies this project.
The issue relates to NSScannedOption not being resolved at compile time for the release config on the iPhone. When building for the device in the release configuration, this error is obtained (no error obtains for building for the simulator configuration):
error: 'NSScannedOption' undeclared (first use in this function) RegexKitLite.m line 579
My workaround was to simply use the constant value for NSScannedOption when building on the iPhone:
I know this is inelegant, but I hesitated to modify the headers to ensure the inclusion of NSZone.h (where NSScannedOption is actually defined) to correct.
Have others run into this problem with NSScannedOption, and if yes, how did you solve it?
Thanks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi. Thanks to the author for writing the regex utility. I can see this as being extremely useful on the Mac and iPhone.
I overlooked the fact that this forum existed when I posted a note to the mailing list that accompanies this project.
The issue relates to NSScannedOption not being resolved at compile time for the release config on the iPhone. When building for the device in the release configuration, this error is obtained (no error obtains for building for the simulator configuration):
error: 'NSScannedOption' undeclared (first use in this function) RegexKitLite.m line 579
My workaround was to simply use the constant value for NSScannedOption when building on the iPhone:
#ifndef iPhone
else { if((splitStrings = rkl_realloc(&scratchBuffer[1], splitStringsSize, (NSUInteger)NSScannedOption)) == NULL) { goto exitNow; } } # original line 579 in RegexKitLite.m
#else
else { if((splitStrings = rkl_realloc(&scratchBuffer[1], splitStringsSize, (NSUInteger)1)) == NULL) { goto exitNow; } }
#endif
I know this is inelegant, but I hesitated to modify the headers to ensure the inclusion of NSZone.h (where NSScannedOption is actually defined) to correct.
Have others run into this problem with NSScannedOption, and if yes, how did you solve it?
Thanks.