cvs commit: src/sys/sys cdefs.h

Joerg Sonnenberger joerg at crater.dragonflybsd.org
Wed Feb 16 13:51:08 PST 2005


joerg       2005/02/16 13:50:00 PST

DragonFly src repository

  Modified files:
    sys/sys              cdefs.h 
  Log:
  Add __pure as attribute. A __pure function can only depend on the
  arguments, not on global memory. A __pure2 function in contrast
  just has to return the same value for the same arguments. It can
  use a hash table or similiar means.
  
  For GCC before 3.0 __pure is mapped to __pure2.
  
  Inspired-by: FreeBSD
  
  Revision  Changes    Path
  1.15      +7 -0      src/sys/sys/cdefs.h


http://www.dragonflybsd.org/cvsweb/src/sys/sys/cdefs.h.diff?r1=1.14&r2=1.15&f=u





More information about the Commits mailing list