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:
parent
e4d61c4825
commit
e1cb4c8a8b
@ -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"
|
||||
|
@ -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 {
|
||||
|
@ -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>
|
||||
|
@ -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 */
|
||||
|
@ -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);
|
||||
|
@ -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>
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
||||
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user