hiredis icon indicating copy to clipboard operation
hiredis copied to clipboard

reserved identifier violation

Open elfring opened this issue 5 years ago • 5 comments

I would like to point out that identifiers like “__HIREDIS_H” and “__NET_Hdo not fit to the expected naming convention of the C language standard. Would you like to adjust your selection for unique names?

elfring avatar Jul 03 '19 17:07 elfring

I'm all for it! -- unfortunately however, I don't know if a massive commit changing these names is going to be helpful as it's going to pollute the commit logs..

mnunberg avatar Jul 03 '19 18:07 mnunberg

I put together a commit to fix this over on my fork and we'll use #807 to bikeshed whether we want to include it for v1.0.0

michael-grunder avatar May 16 '20 19:05 michael-grunder

Additional analysis tools can point software development concerns out for further source code places.

How do you think about to avoid that this software depends on undefined behaviour?

elfring avatar May 17 '20 06:05 elfring

Hi @elfring I mostly wanted to bump the issue so I didn't forget about it before releasing v1.0.0.

The branch on my fork was just a quick and dirty search/replace. If we choose to include the changes I'll make sure we abide by all naming standards (and yes I don't think NET_H would be nearly unique enough :joy:)

michael-grunder avatar May 17 '20 06:05 michael-grunder

Would you like to reopen this issue until it will be completely fixed?

elfring avatar May 17 '20 06:05 elfring