![]() |
RT/krbdev.mit.edu: Ticket #3522 Error code definitions are outside macros to prevent multiple inclusion in public headers |
Signed in as guest. [Logout] |
|
|
| History | Display mode: [Brief headers] [Full headers] |
|   |   | Tue Mar 14 14:11:54 2006 | lxs - Ticket created | ||
|   |
Subject: Error code definitions are outside macros to prevent multiple For example in krb5.h the error codes are appended after the "#endif /* KRB5_GENERAL__ */" This isn't actually causing problems for normal usage of our headers. However, I want to switch to using these headers on KfM (rather than the ones KfM autogenerates for itself). Having the error code definitions outside the macros to prevent multiple inclusion would be a change from what KfM's headers do. |
Download (untitled) 405b |
|||
|   |   | Tue Mar 14 16:47:58 2006 | raeburn - Comments added | ||
|   |
From: Ken Raeburn <raeburn@MIT.EDU> Subject: Re: [krbdev.mit.edu #3522] Error code definitions are outside macros to prevent multiple inclusion in public headers Date: Tue, 14 Mar 2006 16:47:52 -0500 To: rt-comment@krbdev.mit.edu RT-Send-Cc: On Mar 14, 2006, at 14:11, Alexandra Ellwood via RT wrote: > For example in krb5.h the error codes are appended after the > "#endif /* KRB5_GENERAL__ */" > > This isn't actually causing problems for normal usage of our > headers. However, I want to switch > to using these headers on KfM (rather than the ones KfM > autogenerates for itself). Having the > error code definitions outside the macros to prevent multiple > inclusion would be a change from > what KfM's headers do. Since redefinitions to the same expansion are valid, this should only be a problem if some code includes krb5.h (or whatever), redefines one of the error code macros to something else, and then includes krb5.h again. (Or, maybe, include krb5.h, undef a macro, include krb5.h again, test to see if macro is defined.) Is that case important? |
Download (untitled) 839b |
|||
|   |   | Thu Apr 6 00:51:41 2006 | tlyu - Correspondence added | ||
|   |
To: rt@krbdev.mit.edu Subject: Re: [krbdev.mit.edu #3522] Error code definitions are outside macros to prevent multiple inclusion in public headers From: Tom Yu <tlyu@MIT.EDU> Date: Thu, 06 Apr 2006 00:51:35 -0400 RT-Send-Cc: Alternatively, make the com_err generated header files have protection against multiple inclusion. |
Download (untitled) 99b |
|||
|   |   | Mon Jun 19 17:37:23 2006 | tlyu - Target_Version 1.5 changed to next | ||
|   |   | Thu Sep 7 18:16:52 2006 | raeburn - Status changed from new to resolved | ||
|   |   | Thu Sep 7 18:16:53 2006 | raeburn - Given to raeburn | ||
|   |   | Thu Sep 7 18:16:53 2006 | raeburn - Correspondence added | ||
|   |
From: raeburn@mit.edu Subject: SVN Commit * Makefile.in (krb5/krb5.h): Wrap the content in macro test for multiple-inclusion protection. Commit By: raeburn Revision: 18571 Changed Files: U trunk/src/include/Makefile.in |
Download (untitled) 183b |
|||
|   |   | Fri Oct 27 18:57:11 2006 | tlyu - Version_Fixed 1.6 added | ||