-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
timeval: introduce curlval as a struct timeval replacement #1693
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
Conversation
... to make all libcurl internals able to use the same data types for the struct members. The timeval struct differs subtly on several platforms so it makes it cumbersome to use everywhere. Ref: #1652
|
|
||
| return now; | ||
| } | ||
|
|
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.
I agree this is the right move. What do you think about a name like curltime instead of curlval to know it's time related? The (long)s above need to be changed to time_t and unsigned, otherwise looks fine
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.
Changes I needed to get it working in Visual Studio are at bagder/timeval-curlval...jay:pr_1693_amended
|
Renamed the struct to 'curltime', merged @jay's changes (manually). I plan to merge these commits squashed once the CI agrees they're fine. |
... to make all libcurl internals able to use the same data types for
the struct members. The timeval struct differs subtly on several
platforms so it makes it cumbersome to use everywhere.
Ref: #1652