mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
cleanup: remove ARRAY_SIZE macro from header
It is only used in a single source file, so no point having it in a (non-generic) header. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
59d678b5b1
commit
aa34afc3f7
2 changed files with 2 additions and 2 deletions
|
@ -18,8 +18,6 @@ extern "C" {
|
|||
#define CLOUD_HOST_PATTERN "ssrf-cloud-..\\.subsurface-divelog\\.org"
|
||||
#define CLOUD_HOST_GENERIC "cloud.subsurface-divelog.org"
|
||||
|
||||
#define ARRAY_SIZE(array) (sizeof(array)/sizeof(array[0]))
|
||||
|
||||
enum remote_transport { RT_LOCAL, RT_HTTPS, RT_SSH, RT_OTHER };
|
||||
|
||||
struct git_oid;
|
||||
|
|
|
@ -30,6 +30,8 @@
|
|||
#include "tag.h"
|
||||
#include "subsurface-time.h"
|
||||
|
||||
#define ARRAY_SIZE(array) (sizeof(array)/sizeof(array[0]))
|
||||
|
||||
const char *saved_git_id = NULL;
|
||||
|
||||
struct git_parser_state {
|
||||
|
|
Loading…
Reference in a new issue