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 OFFSETOF macro to WolfSSL specific WC_OFFSETOF name #8484

Merged
merged 1 commit into from
Feb 23, 2025

Conversation

jmalak
Copy link
Contributor

@jmalak jmalak commented Feb 21, 2025

Description

There are the following reasons for this

  • it conflicts with the OFFSETOF macro in the OS/2 header (Open Watcom)
  • it is compiler-specific and should use the C standard offsetof definition in the header file stddef.h
  • it is more transparent unique name

Testing

How did you test?

Checklist

  • added tests
  • updated/added doxygen
  • updated appropriate READMEs
  • Updated manual and documentation

@wolfSSL-Bot
Copy link

Can one of the admins verify this patch?

@embhorn
Copy link
Member

embhorn commented Feb 21, 2025

@jmalak is an approved contributor

dgarske
dgarske previously approved these changes Feb 21, 2025
Copy link
Contributor

@douzzer douzzer left a comment

Choose a reason for hiding this comment

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

This is a good idea. Just one tweak -- the macro is defined in the wolfCrypt layer, so it should be renamed to WC_OFFSETOF.

@douzzer douzzer assigned jmalak and unassigned wolfSSL-Bot Feb 22, 2025
@jmalak jmalak changed the title Rename OFFSETOFF macro to WolfSSL specific WOLFSSL_OFFSETOF name Rename OFFSETOFF macro to WolfSSL specific WC_OFFSETOF name Feb 22, 2025
@jmalak jmalak requested a review from douzzer February 22, 2025 08:42
@jmalak jmalak changed the title Rename OFFSETOFF macro to WolfSSL specific WC_OFFSETOF name Rename OFFSETOF macro to WolfSSL specific WC_OFFSETOF name Feb 22, 2025
There are the following reasons for this
- it conflicts with the OFFSETOF macro in the OS/2 header (Open Watcom)
- it is compiler-specific and should use the C standard offsetof definition in the header file stddef.h
- it is more transparent unique name
@douzzer
Copy link
Contributor

douzzer commented Feb 23, 2025

ok to test.

@douzzer
Copy link
Contributor

douzzer commented Feb 23, 2025

retest this please (org.jenkinsci.plugins.workflow.support.steps.AgentOfflineException)

@douzzer douzzer merged commit 0116ab6 into wolfSSL:master Feb 23, 2025
177 of 178 checks passed
@douzzer
Copy link
Contributor

douzzer commented Feb 23, 2025

merged through failing workflow "mosquitto Tests" (expired certs at runtime, no possible connection to PR)

@jmalak jmalak deleted the offsetof branch February 23, 2025 22:39
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.

5 participants