Nathan Scott
11cd983d58
Annotate module API functions in redismodule.h for use with -fno-common ( #6900 )
...
In order to keep the redismodule.h self-contained but still usable with
gcc v10 and later, annotate each API function tentative definition with
the __common__ attribute. This avoids the 'multiple definition' errors
modules will otherwise see for all API functions at link time.
Further details at gcc.gnu.org/gcc-10/porting_to.html
Turn the existing __attribute__ ((unused)), ((__common__)) and ((print))
annotations into conditional macros for any compilers not accepting this
syntax. These macros only expand to API annotations under gcc.
Provide a pre- and post- macro for every API function, so that they can
be defined differently by the file that includes redismodule.h.
Removing REDISMODULE_API_FUNC in the interest of keeping the function
declarations readable.
Co-authored-by: Yossi Gottlieb <yossigo@gmail.com>
Co-authored-by: Oran Agra <oran@redislabs.com>
2020-08-14 14:45:34 +03:00
..
2020-08-12 11:16:41 +08:00
2020-08-08 14:42:32 +03:00
2020-04-08 12:55:57 +02:00
2020-04-08 12:55:57 +02:00
2019-10-07 21:06:30 +03:00
2016-06-07 16:46:00 -04:00
2020-05-14 08:49:11 -07:00
2020-05-14 08:49:11 -07:00
2019-10-07 21:06:13 +03:00
2019-10-07 21:06:13 +03:00
2020-07-21 08:13:05 +03:00
2020-03-07 19:38:27 +08:00
2018-10-16 15:48:03 +08:00
2020-08-11 19:16:10 +08:00
2019-11-20 20:39:04 -05:00
2020-08-11 20:04:54 -07:00
2020-08-11 08:18:09 +03:00
2019-07-17 16:40:24 +03:00
2020-08-07 13:01:14 -07:00
2020-06-16 11:45:11 +02:00
2020-08-12 17:58:56 +03:00
2020-08-12 17:58:56 +03:00
2020-07-28 11:32:47 +03:00
2020-05-14 10:06:27 +02:00
2020-03-22 14:42:03 +02:00
2019-03-01 17:53:14 +01:00
2020-05-05 10:20:48 +02:00
2020-04-24 17:00:03 -07:00
2020-04-24 17:11:21 -07:00
2020-04-24 17:11:21 -07:00
2020-08-11 08:18:09 +03:00
2020-08-06 16:47:27 +03:00
2016-08-04 15:12:12 +08:00
2020-07-21 08:13:05 +03:00
2020-08-10 22:36:34 -07:00
2019-02-18 18:27:18 +01:00
2018-07-03 18:19:46 +02:00
2020-04-30 15:54:14 +08:00
2020-07-10 10:02:37 +03:00
2020-08-11 20:04:54 -07:00
2017-07-03 19:38:31 +02:00
2016-07-06 16:31:11 +02:00
2020-04-09 17:48:29 +08:00
2016-07-27 11:34:25 +02:00
2019-02-24 21:38:15 +01:00
2020-06-12 12:16:19 +02:00
2020-04-21 10:51:46 +02:00
2018-10-16 15:48:03 +08:00
2016-06-20 23:08:06 +03:00
2020-07-15 12:38:22 +03:00
2019-10-24 14:24:55 +03:00
2020-04-09 10:24:46 +02:00
2017-12-01 10:24:24 +01:00
2020-06-16 17:50:38 +08:00
2017-12-01 10:24:24 +01:00
2018-09-18 17:04:00 +08:00
2019-10-07 18:24:34 +02:00
2019-10-28 11:10:58 +01:00
2019-10-07 18:24:34 +02:00
2020-05-05 23:35:08 -04:00
2018-09-28 13:00:44 +02:00
2017-11-19 16:23:42 +00:00
2020-08-11 22:01:15 +03:00
2019-11-19 17:23:47 +08:00
2020-08-11 08:18:09 +03:00
2020-06-23 12:01:33 +03:00
2020-08-11 18:59:29 +08:00
2020-02-03 15:43:44 +05:30
2020-08-11 20:04:54 -07:00
2020-03-31 12:40:08 +02:00
2020-04-02 23:43:47 +08:00
2020-02-18 17:22:32 +02:00
2017-03-27 16:37:22 +02:00
2020-08-12 10:23:55 +03:00
2018-10-13 14:17:38 +02:00
2020-07-23 12:38:51 +03:00
2020-04-09 12:10:10 +02:00
2020-08-11 20:51:27 +08:00
2019-05-08 12:13:45 +01:00
2020-04-09 10:24:46 +02:00
2020-08-11 21:57:21 +03:00
2018-07-13 10:51:58 +02:00
2018-07-03 18:19:46 +02:00
2020-08-14 14:45:34 +03:00
2019-10-02 11:30:20 +02:00
2020-08-13 14:30:51 +03:00
2020-07-24 14:40:19 +08:00
2019-10-07 21:06:30 +03:00
2020-04-06 19:27:06 +08:00
2020-08-08 00:19:18 +03:00
2019-12-21 11:47:31 -08:00
2020-02-22 11:38:51 -05:00
2020-08-08 12:28:44 -07:00
2020-08-12 13:15:58 -07:00
2020-08-12 17:58:56 +03:00
2020-05-12 21:21:22 +01:00
2018-11-11 18:49:55 +00:00
2019-09-12 12:21:37 +02:00
2019-09-12 12:21:37 +02:00
2019-09-04 12:14:25 +00:00
2019-01-09 17:00:29 +01:00
2019-12-02 00:28:41 -05:00
2020-04-21 10:51:46 +02:00
2020-05-04 11:40:42 +03:00
2020-08-11 20:04:54 -07:00
2020-08-11 20:04:54 -07:00
2020-08-11 20:04:54 -07:00
2020-08-11 20:04:54 -07:00
2020-08-11 20:04:54 -07:00
2020-08-11 20:04:54 -07:00
2020-07-21 08:13:05 +03:00
2020-07-28 11:32:47 +03:00
2020-07-15 10:53:41 -07:00
2020-05-06 16:18:21 +02:00
2019-11-21 10:06:15 +01:00
2020-07-11 14:51:44 -05:00
2016-12-16 09:02:50 +01:00
2020-07-31 13:01:39 +03:00
2019-12-02 09:13:29 +01:00