common: rename array-size.h to macros.h

This commit is contained in:
John Lindgren 2023-10-20 18:34:14 -04:00 committed by Johan Malm
parent 7f30de1134
commit a036d985d7
8 changed files with 11 additions and 11 deletions

View file

@ -228,12 +228,12 @@ We have a very small, modest API and encourage you to use it.
4. `wl_array_len()` to get number of elements in a `wl_array` [common/array.h]
5. `ARRAY_SIZE()` to get number of elements in visible array
[common/array-size.h]
[common/macros.h]
[common/mem.h]: https://github.com/labwc/labwc/blob/master/include/common/mem.h
[common/list.h]: https://github.com/labwc/labwc/blob/master/include/common/list.h
[common/array.h]: https://github.com/labwc/labwc/blob/master/include/common/array.h
[common/array-size.h]: https://github.com/labwc/labwc/blob/master/include/common/array-size.h
[common/macros.h]: https://github.com/labwc/labwc/blob/master/include/common/macros.h
### The Use of glib

View file

@ -1,6 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef LABWC_ARRAY_SIZE_H
#define LABWC_ARRAY_SIZE_H
#ifndef LABWC_MACROS_H
#define LABWC_MACROS_H
/**
* ARRAY_SIZE() - Get the number of elements in array.
@ -16,4 +16,4 @@
*/
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
#endif /* LABWC_ARRAY_SIZE_H */
#endif /* LABWC_MACROS_H */

View file

@ -3,7 +3,7 @@
#define LABWC_SSD_INTERNAL_H
#include <wlr/util/box.h>
#include "common/array-size.h"
#include "common/macros.h"
#include "ssd.h"
#define FOR_EACH(tmp, ...) \

View file

@ -7,7 +7,7 @@
#include <unistd.h>
#include <wlr/util/log.h>
#include "action.h"
#include "common/array-size.h"
#include "common/macros.h"
#include "common/list.h"
#include "common/mem.h"
#include "common/parse-bool.h"

View file

@ -7,7 +7,7 @@
#include <wlr/types/wlr_primary_selection.h>
#include <wlr/util/region.h>
#include "action.h"
#include "common/array-size.h"
#include "common/macros.h"
#include "common/mem.h"
#include "common/scene-helpers.h"
#include "config/mousebind.h"

View file

@ -14,7 +14,7 @@
#include <wayland-server.h>
#include <wlr/types/wlr_layer_shell_v1.h>
#include <wlr/util/log.h>
#include "common/array-size.h"
#include "common/macros.h"
#include "common/list.h"
#include "common/mem.h"
#include "config/rcxml.h"

View file

@ -16,7 +16,7 @@
#include <wlr/types/wlr_scene.h>
#include <wlr/util/region.h>
#include <wlr/util/log.h>
#include "common/array-size.h"
#include "common/macros.h"
#include "common/mem.h"
#include "labwc.h"
#include "layers.h"

View file

@ -19,7 +19,7 @@
#include <wlr/util/box.h>
#include <wlr/util/log.h>
#include <strings.h>
#include "common/array-size.h"
#include "common/macros.h"
#include "common/dir.h"
#include "common/font.h"
#include "common/graphic-helpers.h"