lint(format): change format rules a bit

This commit is contained in:
2025-06-10 23:44:40 +02:00
parent 22c3f7c896
commit bb1ca09fd8
7 changed files with 20 additions and 27 deletions

View File

@@ -6,10 +6,7 @@
#include "config.h"
#include "sessions.h"
bool launch(char* user,
char* passwd,
struct session session,
void (*cb)(void),
bool launch(char* user, char* passwd, struct session session, void (*cb)(void),
struct behavior* behavior);
#endif

View File

@@ -11,7 +11,8 @@ struct status {
int ret;
};
int read_desktop(FILE* fd, void* ctx, struct status (*cb)(void* ctx, char* NULLABLE table,
char* key, char* value));
int read_desktop(FILE* fd, void* ctx,
struct status (*cb)(void* ctx, char* NULLABLE table, char* key,
char* value));
#endif

View File

@@ -1,12 +1,12 @@
// Do we just replace the compiler with clang??
#if defined(__clang__)
#define NULLABLE _Nullable
#define NULLABLE _Nullable
#else
#define NULLABLE
#define NULLABLE
#endif
#if defined(__clang__)
#define NNULLABLE _Nonnull
#define NNULLABLE _Nonnull
#else
#define NNULLABLE
#define NNULLABLE
#endif