curl/include/curl
Marcel Raad cbb59ed9ce
typecheck-gcc: handle function pointers properly
All the callbacks passed to curl_easy_setopt are defined as function
pointers. The possibility to pass both functions and function pointers
was handled for the callbacks that typecheck-gcc.h defined as
compatible, but not for the public callback types themselves.

This makes all compatible callback types defined in typecheck-gcc.h
function pointers too and checks all functions uniformly with
_curl_callback_compatible, which handles both functions and function
pointers.

A symptom of the problem was a warning in tool_operate.c with
--disable-libcurl-option and without --enable-debug as that file
passes the callback functions to curl_easy_setopt directly.

Fixes https://github.com/curl/curl/issues/1403
Closes https://github.com/curl/curl/pull/1404
2017-04-21 23:18:59 +02:00
..
.gitignore gitignore: Sort for readability 2015-08-18 01:03:05 -04:00
Makefile.am include: curl/system.h is a run-time version of curlbuild.h 2017-04-03 23:24:39 +02:00
curl.h include: curl/system.h is a run-time version of curlbuild.h 2017-04-03 23:24:39 +02:00
curlbuild.h.cmake URLs: Change more haxx.se URLs from http: to https: 2016-02-03 01:45:21 +01:00
curlbuild.h.dist curlbuild.h.dist: check __LP64__ as well to fix MIPS build 2016-05-18 14:10:36 +02:00
curlbuild.h.in URLs: Change more haxx.se URLs from http: to https: 2016-02-03 01:45:21 +01:00
curlrules.h include: curl/system.h is a run-time version of curlbuild.h 2017-04-03 23:24:39 +02:00
curlver.h bump: start working on next release 2017-04-19 23:16:10 +02:00
easy.h checksrc: code style: use 'char *name' style 2016-11-24 23:58:22 +01:00
mprintf.h curl/mprintf.h: remove support for _MPRINTF_REPLACE 2016-04-01 10:46:36 +02:00
multi.h spelling fixes 2017-03-26 23:56:23 +02:00
stdcheaders.h checksrc: stricter no-space-before-paren enforcement 2016-12-13 23:39:11 +01:00
system.h system.h: fix mingw section 2017-04-11 15:54:42 +02:00
typecheck-gcc.h typecheck-gcc: handle function pointers properly 2017-04-21 23:18:59 +02:00