-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add date field check #169
Add date field check #169
Conversation
🎋 |
3b7136d
to
9fa8b76
Compare
|
||
precondition: n >= 8 */ | ||
static inline bool match_ymd(char *buf, size_t n) { | ||
/* 0xc0 = 0x80 | 0x40 - if these bits are set, the byte is too |
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.
Probably want to make that const char * buf
unless you intend to modify it.
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.
Good point, thanks.
Apart from a couple of places where parameters should be passed as |
Something in the build process generates code which violates the warn-on-unused rule.
Unlikely as that may be. Have a bunch of LE-specific optimisations in place.
Add basic "does this look like a date/datetime" check.
Working towards #113. No behavioural changes in warden yet, just adding groundwork.
@thumphries @erikd-ambiata