User: Password:
|
|
Subscribe / Log in / New account

Pure and constant external functions

Pure and constant external functions

Posted Jun 13, 2008 16:38 UTC (Fri) by giraffedata (subscriber, #1954)
Parent article: Implications of pure and constant functions

Has anyone thought of having the compiler generate header files?

In addition to saving one from having to code every function declaration twice, it would let the compiler detect attributes like pureness that I'm too lazy to declare manually.

Alternatively, the compiler might warn when the declaration doesn't have all the apparently applicable attributes.


(Log in to post comments)

Pure and constant external functions

Posted Jun 19, 2008 19:38 UTC (Thu) by olecom (guest, #42886) [Link]

> Has anyone thought of having the compiler generate header files?

http://kerneltrap.org/node/16293

Pure and constant external functions

Posted Jun 21, 2008 3:28 UTC (Sat) by giraffedata (subscriber, #1954) [Link]

Has anyone thought of having the compiler generate header files?
http://kerneltrap.org/node/16293

The reference is to a posting about kbuild and dependencies and build issues. I don't see any mention of having the compiler generate header files.


Copyright © 2018, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds