humanshell / cstack

C simple stack implementation
4 stars 0 forks source link

Use proper header guard syntax #2

Closed jwerle closed 10 years ago

jwerle commented 10 years ago

See sphia/sphia #26 Also: https://www.securecoding.cert.org/confluence/display/seccode/DCL37-C.+Do+not+declare+or+define+a+reserved+identifier#DCL37-C.Donotdeclareordefineareservedidentifier-NoncompliantCodeExample%28HeaderGuard%29

Your header guards should be defined as such:


#ifndef CSTACK_H
#define CSTACK_H
  ...
#endif
humanshell commented 10 years ago

Fixed.

https://github.com/humanshell/cstack/commit/6ef3cf996b1c9657f2563f1e129855f71539bfee