RT RT/krbdev.mit.edu: Ticket #3522 Error code definitions are outside macros to prevent multiple inclusion in public headers Signed in as guest.
[Logout]

[Home] [Search] [Configuration]

[Display] [History] [Basics] [Dates] [People] [Links] [Jumbo]

 
 

 The Basics  
Id
3522
Status
resolved
Worked
0 min
Priority
0/0
Queue
krb5
 

 Keyword Selections  
Component
  • krb5-build
Version_reported
  • 1.4.4
Version_Fixed
  • 1.6
Target_Version
  • next
Tags
 

 Relationships  
Depends on:
Depended on by:
Parents:
Children:

Refers to:
Referred to by:
 
 Dates  
Created: Tue Mar 14 14:11:52 2006
Starts: Not set
Started: Thu Sep 7 18:16:51 2006
Last Contact: Thu Sep 7 18:16:55 2006
Due: Not set
Updated: Fri Oct 27 18:57:12 2006 by tlyu
 

 People  
Owner
 raeburn
Requestors
 lxs@mit.edu
Cc
 
AdminCc
 
 

 More about Alexandra Ellwood  
Comments about this user:
No comment entered about this user
This user's 25 highest priority tickets:
 

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