OpenNI2 icon indicating copy to clipboard operation
OpenNI2 copied to clipboard

reserved identifier violation

Open elfring opened this issue 11 years ago • 4 comments

I would like to point out that identifiers like "_OPENNI_H_" and "_ONI_C_API_H_" do not fit to the expected naming convention of the C language standard. Would you like to adjust your selection for unique names?

elfring avatar Nov 07 '13 13:11 elfring

Fixed in 69dff6ef5913767e9f4f5c5dbaecc0c5cf6aa113. Thanks!

eddiecohen avatar Nov 12 '13 14:11 eddiecohen

Thanks for your source code improvement.

This update seems to be incomplete so far.

elfring avatar Nov 12 '13 15:11 elfring

  • Viewer.h is an internal include file, not to be used from another project, so I don't think it's really an issue.
  • UUID are a bit too much IMO.
  • usb200.h (which contains _BM_REQUEST_TYPE) is a file taken from Windows DDK (despite what it says in its header), I prefer not to change it.
  • Regarding "hidden" struct names (like _OniFrameSync) - you're right. I'll fix that as well.

eddiecohen avatar Nov 12 '13 15:11 eddiecohen

#pragma once is supported by every major compiler and is in several ways superior to #include guards.

piedar avatar Nov 16 '13 04:11 piedar