-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
timediff.[ch]: add curlx helper functions for timeval conversions #8595
Conversation
Should be added to generate.bat curlx section: diff --git a/projects/generate.bat b/projects/generate.bat
index 0bbe3fb..efded08 100644
--- a/projects/generate.bat
+++ b/projects/generate.bat
@@ -215,6 +215,7 @@ rem
call :element %1 lib "curl_multibyte.c" %3
call :element %1 lib "version_win32.c" %3
call :element %1 lib "dynbuf.c" %3
+ call :element %1 lib "timeutil.c" %3
) else if "!var!" == "CURL_SRC_X_H_FILES" (
call :element %1 lib "config-win32.h" %3
call :element %1 lib "curl_setup.h" %3
@@ -225,6 +226,7 @@ rem
call :element %1 lib "curl_multibyte.h" %3
call :element %1 lib "version_win32.h" %3
call :element %1 lib "dynbuf.h" %3
+ call :element %1 lib "timeutil.h" %3
) else if "!var!" == "CURL_LIB_C_FILES" (
for /f "delims=" %%c in ('dir /b ..\lib\*.c') do call :element %1 lib "%%c" %3
) else if "!var!" == "CURL_LIB_H_FILES" ( and also CURLX_ sections in src/Makefile.inc and tests/server/Makefile.inc |
7d9fefd
to
c3f6820
Compare
Maybe one day we should name all these curlx_* header/source files in special way, or put them in a subdir or something, to make it more apparent that they are magic and are used outside of the regular source dir. |
8276bb1
to
1cceafa
Compare
Any curlx refactor would be separate from this. Aside from the gskit comment I just left this pr looks fine to me. |
@jay what do you think of the solution in the most recent version of this PRs changes to |
LGTM. I've marked the review conversations as resolved. |
e27e1af
to
ff20b26
Compare
CI is ✅, can this go in during feature freeze @bagder? |
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.
👍
Also move timediff_t definitions from timeval.h to timediff.h and
then make timeval.h include the new standalone-capable timediff.h.
New version of #5888.