comparison src/gui_photon.c @ 24768:7334bf933510 v8.2.2922

patch 8.2.2922: computing array length is done in various ways Commit: https://github.com/vim/vim/commit/eeec2548785b2dd245a31ab25d7bde0f88ea1a6d Author: K.Takata <kentkt@csc.jp> Date: Wed Jun 2 13:28:16 2021 +0200 patch 8.2.2922: computing array length is done in various ways Problem: Computing array length is done in various ways. Solution: Use ARRAY_LENGTH everywhere. (Ken Takata, closes https://github.com/vim/vim/issues/8305)
author Bram Moolenaar <Bram@vim.org>
date Wed, 02 Jun 2021 13:30:05 +0200
parents f260c1411833
children fc859aea8cec
comparison
equal deleted inserted replaced
24767:00b56eac455d 24768:7334bf933510
32 # define PhTile_t int 32 # define PhTile_t int
33 # define PtWidget_t int 33 # define PtWidget_t int
34 # define PhImage_t int 34 # define PhImage_t int
35 #endif 35 #endif
36 36
37 #define ARRAY_LENGTH(a) (sizeof(a) / sizeof(a[0]))
38 #define RGB(r, g, b) PgRGB(r, g, b) 37 #define RGB(r, g, b) PgRGB(r, g, b)
39 38
40 #define EVENT_BUFFER_SIZE sizeof(PhEvent_t) + 1000 39 #define EVENT_BUFFER_SIZE sizeof(PhEvent_t) + 1000
41 40
42 // Some defines for gui_mch_mousehide() 41 // Some defines for gui_mch_mousehide()