Skip to content

CDRIVER-5702 rename and relocate common headers #1771

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

Merged
merged 15 commits into from
Oct 15, 2024

Conversation

kevinAlbs
Copy link
Collaborator

Follow-up to #1762 and #1745.

Update headers in src/common for consistency:

  • Rename mcd-string.h to common-string-private.h. Rename symbols mcd_string_* to mcommon_string_*.
  • Rename bson-dsl.h to common-bson-dsl-private.h. Symbols are not renamed (e.g. bsonParse is not renamed).

Split the src/common directory into two subdirectories: src/common/src and src/common/tests. This is intended to group test files for common and to ease selecting non-test source files (libbson recursively globs).

Update macro guards in common headers for consistency (e.g. COMMON_B64_PRIVATE_H to MONGO_C_DRIVER_COMMON_B64_PRIVATE_H).

Verified with this patch build: https://spruce.mongodb.com/version/670d7563d37beb0007386898

@kevinAlbs kevinAlbs marked this pull request as ready for review October 15, 2024 12:27
@kevinAlbs kevinAlbs requested review from a user and eramongodb October 15, 2024 12:27
Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

Looks good to me! I like how clear the new header names are.

@kevinAlbs kevinAlbs merged commit 1392d21 into mongodb:master Oct 15, 2024
42 of 44 checks passed
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.

2 participants