Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename #include guards. #167

Merged
merged 2 commits into from
Apr 3, 2024
Merged

Conversation

lipzhu
Copy link
Contributor

@lipzhu lipzhu commented Apr 3, 2024

Rename macro guard and remove the leading double underscore.

Fixes #137

Signed-off-by: Lipeng Zhu <[email protected]>
Copy link
Member

@hwware hwware left a comment

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

@@ -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
Member

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
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.

src/redismodule.h Outdated Show resolved Hide resolved
src/redismodule.h Outdated Show resolved Hide resolved
@@ -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
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 <[email protected]>
@zuiderkwast zuiderkwast merged commit e1cb4c8 into valkey-io:unstable Apr 3, 2024
14 checks passed
@zuiderkwast
Copy link
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.

@lipzhu lipzhu 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 <[email protected]>
Signed-off-by: Viktor Söderqvist <[email protected]>
Co-authored-by: Viktor Söderqvist <[email protected]>
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