mirror of
https://github.com/curl/curl.git
synced 2025-02-17 14:59:45 +08:00
tidy-up: whitespace, fix CI spacecheck for docs
Also: fixup CI spacecheck to apply to docs again. Closes #15423
This commit is contained in:
parent
0cececef0f
commit
9acecc923d
10
.github/workflows/checkdocs.yml
vendored
10
.github/workflows/checkdocs.yml
vendored
@ -147,3 +147,13 @@ jobs:
|
||||
|
||||
- name: verify examples
|
||||
run: .github/scripts/verify-examples.pl docs/libcurl/curl*.3 docs/libcurl/opts/*.3
|
||||
|
||||
miscchecks:
|
||||
runs-on: ubuntu-24.04
|
||||
timeout-minutes: 5
|
||||
steps:
|
||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
||||
name: checkout
|
||||
|
||||
- name: spacecheck
|
||||
run: .github/scripts/spacecheck.pl
|
||||
|
@ -38,13 +38,13 @@ unset(CURL_CFLAG_SYMBOLS_HIDE)
|
||||
if(CURL_HIDDEN_SYMBOLS)
|
||||
if(CMAKE_C_COMPILER_ID MATCHES "Clang" AND NOT MSVC)
|
||||
set(CURL_HIDES_PRIVATE_SYMBOLS TRUE)
|
||||
set(CURL_EXTERN_SYMBOL "__attribute__ ((__visibility__ (\"default\")))")
|
||||
set(CURL_EXTERN_SYMBOL "__attribute__((__visibility__(\"default\")))")
|
||||
set(CURL_CFLAG_SYMBOLS_HIDE "-fvisibility=hidden")
|
||||
elseif(CMAKE_COMPILER_IS_GNUCC)
|
||||
if(NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 3.4)
|
||||
# Note: This is considered buggy prior to 4.0 but the autotools do not care, so let us ignore that fact
|
||||
set(CURL_HIDES_PRIVATE_SYMBOLS TRUE)
|
||||
set(CURL_EXTERN_SYMBOL "__attribute__ ((__visibility__ (\"default\")))")
|
||||
set(CURL_EXTERN_SYMBOL "__attribute__((__visibility__(\"default\")))")
|
||||
set(CURL_CFLAG_SYMBOLS_HIDE "-fvisibility=hidden")
|
||||
endif()
|
||||
elseif(CMAKE_C_COMPILER_ID MATCHES "SunPro" AND NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 8.0)
|
||||
@ -53,7 +53,7 @@ if(CURL_HIDDEN_SYMBOLS)
|
||||
set(CURL_CFLAG_SYMBOLS_HIDE "-xldscope=hidden")
|
||||
elseif(CMAKE_C_COMPILER_ID MATCHES "Intel" AND NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 9.0) # Requires 9.1.045
|
||||
set(CURL_HIDES_PRIVATE_SYMBOLS TRUE)
|
||||
set(CURL_EXTERN_SYMBOL "__attribute__ ((__visibility__ (\"default\")))")
|
||||
set(CURL_EXTERN_SYMBOL "__attribute__((__visibility__(\"default\")))")
|
||||
set(CURL_CFLAG_SYMBOLS_HIDE "-fvisibility=hidden")
|
||||
elseif(MSVC)
|
||||
set(CURL_HIDES_PRIVATE_SYMBOLS TRUE)
|
||||
|
@ -14,6 +14,7 @@ Doing a "POST" publishes the post data to the topic and exits.
|
||||
|
||||
|
||||
### Subscribing
|
||||
|
||||
Command usage:
|
||||
|
||||
curl mqtt://host/topic
|
||||
@ -25,6 +26,7 @@ Example subscribe:
|
||||
This will send an MQTT SUBSCRIBE packet for the topic `bedroom/temp` and listen in for incoming PUBLISH packets.
|
||||
|
||||
### Publishing
|
||||
|
||||
Command usage:
|
||||
|
||||
curl -d payload mqtt://host/topic
|
||||
|
@ -170,7 +170,7 @@ int Curl_cpool_init(struct cpool *cpool,
|
||||
* Probably better to have an internal handle owned by the multi that
|
||||
* can be used for cpool operations. */
|
||||
cpool->idata->multi = multi;
|
||||
#ifdef DEBUGBUILD
|
||||
#ifdef DEBUGBUILD
|
||||
if(getenv("CURL_DEBUG"))
|
||||
cpool->idata->set.verbose = TRUE;
|
||||
#endif
|
||||
|
@ -35,7 +35,7 @@
|
||||
#include "memdebug.h"
|
||||
|
||||
#if defined(__GNUC__)
|
||||
#define CURL_ALIGN8 __attribute__ ((aligned(8)))
|
||||
#define CURL_ALIGN8 __attribute__((aligned(8)))
|
||||
#else
|
||||
#define CURL_ALIGN8
|
||||
#endif
|
||||
|
@ -1379,7 +1379,7 @@ AC_DEFUN([CURL_CHECK_COMPILER_SYMBOL_HIDING], [
|
||||
case "$compiler_id" in
|
||||
CLANG|APPLECLANG)
|
||||
dnl All versions of clang support -fvisibility=
|
||||
tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
|
||||
tmp_EXTERN="__attribute__((__visibility__(\"default\")))"
|
||||
tmp_CFLAGS="-fvisibility=hidden"
|
||||
supports_symbol_hiding="yes"
|
||||
;;
|
||||
@ -1387,7 +1387,7 @@ AC_DEFUN([CURL_CHECK_COMPILER_SYMBOL_HIDING], [
|
||||
dnl Only gcc 3.4 or later
|
||||
if test "$compiler_num" -ge "304"; then
|
||||
if $CC --help --verbose 2>/dev/null | grep fvisibility= >/dev/null ; then
|
||||
tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
|
||||
tmp_EXTERN="__attribute__((__visibility__(\"default\")))"
|
||||
tmp_CFLAGS="-fvisibility=hidden"
|
||||
supports_symbol_hiding="yes"
|
||||
fi
|
||||
@ -1406,7 +1406,7 @@ AC_DEFUN([CURL_CHECK_COMPILER_SYMBOL_HIDING], [
|
||||
printf("icc fvisibility bug test");
|
||||
]])
|
||||
],[
|
||||
tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
|
||||
tmp_EXTERN="__attribute__((__visibility__(\"default\")))"
|
||||
tmp_CFLAGS="-fvisibility=hidden"
|
||||
supports_symbol_hiding="yes"
|
||||
])
|
||||
|
Loading…
Reference in New Issue
Block a user