1
0
mirror of https://github.com/libssh2/libssh2.git synced 2026-10-24 03:48:58 +03:00

checksrc: stop disabling TYPEDEFSTRUCT globally

Silence locally in public headers. They are part of the documented
public interface, removing them would be a breaking change.

Follow-up to 35aa0b2cd7 #1910
Follow-up to 7dd7e62629 #1909
Follow-up to c07e953a2f #1908
Follow-up to 967647c4da #1907

Closes #1912
This commit is contained in:
Viktor Szakats
2026-05-01 11:57:53 +02:00
parent 100c0ea2e4
commit a73aa23c9f
3 changed files with 5 additions and 1 deletions

View File

@@ -222,6 +222,8 @@ typedef off_t libssh2_struct_stat_size;
void **abstract))
#define LIBSSH2_FREE_FUNC(name) void ((name)(void *ptr, void **abstract))
/* for pre-existing ones: !checksrc! disable TYPEDEFSTRUCT all */
typedef struct _LIBSSH2_USERAUTH_KBDINT_PROMPT
{
unsigned char *text;

View File

@@ -52,6 +52,7 @@
typedef struct _LIBSSH2_PUBLICKEY LIBSSH2_PUBLICKEY;
/* !checksrc! disable TYPEDEFSTRUCT 1 */
typedef struct _libssh2_publickey_attribute {
const char *name;
unsigned long name_len;
@@ -60,6 +61,7 @@ typedef struct _libssh2_publickey_attribute {
char mandatory;
} libssh2_publickey_attribute;
/* !checksrc! disable TYPEDEFSTRUCT 1 */
typedef struct _libssh2_publickey_list {
unsigned char *packet; /* For freeing */

View File

@@ -12,7 +12,7 @@ use Cwd 'abs_path';
my @options = (
"-i4", "-m79",
"-AFIXME", "-AERRNOVAR", "-ATYPEDEFSTRUCT",
"-AFIXME", "-AERRNOVAR",
"-aaccept",
"-aatoi",
"-acalloc",