Skip to content

Rename #include guards.#167

Merged
zuiderkwast merged 2 commits into
valkey-io:unstablefrom
zhulipeng:rename_guards
Apr 3, 2024
Merged

Rename #include guards.#167
zuiderkwast merged 2 commits into
valkey-io:unstablefrom
zhulipeng:rename_guards

Conversation

@zhulipeng

@zhulipeng zhulipeng commented Apr 3, 2024

Copy link
Copy Markdown
Member

Rename macro guard and remove the leading double underscore.

Fixes #137

Signed-off-by: Lipeng Zhu <lipeng.zhu@intel.com>

@hwware hwware left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, only one minor issue, Thanks

Comment thread src/cli_commands.h
@@ -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. */

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* that are not suitable for redis-cli, e.g. the command proc. */
* that are not suitable for valkey-cli, e.g. the command proc. */

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hwware Let's leave it for another PR and we change only one thing in each PR. It is faster and more clear.

Comment thread src/redismodule.h Outdated
Comment thread src/redismodule.h Outdated
Comment thread src/cli_commands.h
@@ -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. */

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hwware Let's leave it for another PR and we change only one thing in each PR. It is faster and more clear.

Signed-off-by: Viktor Söderqvist <viktor.soderqvist@est.tech>
@zuiderkwast zuiderkwast merged commit e1cb4c8 into valkey-io:unstable Apr 3, 2024
@zuiderkwast

Copy link
Copy Markdown
Contributor

Suggestion for the future: Include "Fixes #xxx" in the description, where xxx is the issue number. It makes the PR linked to the issue and the issue will be closed automatically when the PR is merged.

@zhulipeng zhulipeng deleted the rename_guards branch April 4, 2024 08:48
PatrickJS pushed a commit to PatrickJS/placeholderkv that referenced this pull request Apr 24, 2024
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Macros for including a file once, like #ifndef __REDIS_COMMANDS_H

3 participants