[Xapian-tickets] [Xapian] #151: Use function attributes to mark functions as "const" or "pure"

Xapian nobody at xapian.org
Sun May 27 03:08:00 BST 2012


#151: Use function attributes to mark functions as "const" or "pure"
-------------------------+--------------------------------------------------
 Reporter:  olly         |        Owner:  olly     
     Type:  enhancement  |       Status:  assigned 
 Priority:  normal       |    Milestone:  1.3.x    
Component:  Other        |      Version:  SVN trunk
 Severity:  minor        |   Resolution:           
 Keywords:               |    Blockedby:           
 Platform:  All          |     Blocking:           
-------------------------+--------------------------------------------------

Comment(by olly):

 Added XAPIAN_CONST_FUNCTION and XAPIAN_PURE_FUNCTION and used them to mark
 up some obvious cases in the public API in r16632, and updated the
 bindings to ignore them in r16633.

 Still to do:

  * check for any more cases in the API
  * use these internally
  * consider other function attributes (like nonnull)

-- 
Ticket URL: <http://trac.xapian.org/ticket/151#comment:12>
Xapian <http://xapian.org/>
Xapian



More information about the Xapian-tickets mailing list