Rename #include guards (#167)

Rename include guard macros (redis -> valkey) and remove the leading double underscore.

---------

Signed-off-by: Lipeng Zhu <lipeng.zhu@intel.com>
Signed-off-by: Viktor Söderqvist <viktor.soderqvist@est.tech>
Co-authored-by: Viktor Söderqvist <viktor.soderqvist@est.tech>
This commit is contained in:
Lipeng Zhu 2024-04-04 05:20:06 +08:00 committed by GitHub
parent e4d61c4825
commit e1cb4c8a8b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
9 changed files with 19 additions and 19 deletions

View File

@ -2,8 +2,8 @@
* It contains alternative structs which omit the parts of the commands table
* that are not suitable for redis-cli, e.g. the command proc. */
#ifndef __REDIS_CLI_COMMANDS_H
#define __REDIS_CLI_COMMANDS_H
#ifndef VALKEY_CLI_COMMANDS_H
#define VALKEY_CLI_COMMANDS_H
#include <stddef.h>
#include "commands.h"

View File

@ -1,5 +1,5 @@
#ifndef __REDIS_COMMANDS_H
#define __REDIS_COMMANDS_H
#ifndef VALKEY_COMMANDS_H
#define VALKEY_COMMANDS_H
/* Must be synced with ARG_TYPE_STR and generate-command-code.py */
typedef enum {

View File

@ -28,8 +28,8 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef __REDIS_CONNECTION_H
#define __REDIS_CONNECTION_H
#ifndef VALKEY_CONNECTION_H
#define VALKEY_CONNECTION_H
#include <errno.h>
#include <stdio.h>

View File

@ -28,8 +28,8 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef __REDIS_CONNHELPERS_H
#define __REDIS_CONNHELPERS_H
#ifndef VALKEY_CONNHELPERS_H
#define VALKEY_CONNHELPERS_H
#include "connection.h"
@ -85,4 +85,4 @@ static inline int callHandler(connection *conn, ConnectionCallbackFunc handler)
return 1;
}
#endif /* __REDIS_CONNHELPERS_H */
#endif /* VALKEY_CONNHELPERS_H */

View File

@ -27,8 +27,8 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef REDIS_RANDOM_H
#define REDIS_RANDOM_H
#ifndef VALKEY_RANDOM_H
#define VALKEY_RANDOM_H
int32_t redisLrand48(void);
void redisSrand48(int32_t seedval);

View File

@ -29,8 +29,8 @@
*/
#ifndef __REDIS_RIO_H
#define __REDIS_RIO_H
#ifndef VALKEY_RIO_H
#define VALKEY_RIO_H
#include <stdio.h>
#include <stdint.h>

View File

@ -27,8 +27,8 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef __REDIS_H
#define __REDIS_H
#ifndef VALKEY_H
#define VALKEY_H
#include "fmacros.h"
#include "config.h"

View File

@ -35,8 +35,8 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef __REDIS_ASSERT_H__
#define __REDIS_ASSERT_H__
#ifndef VALKEY_ASSERT_H
#define VALKEY_ASSERT_H
#include "config.h"

View File

@ -27,8 +27,8 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef __REDIS_UTIL_H
#define __REDIS_UTIL_H
#ifndef VALKEY_UTIL_H
#define VALKEY_UTIL_H
#include <stdint.h>
#include "sds.h"