kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* is there a macro symbol for strlen($LINUX_SOURCE_PATH)
@ 2019-09-04 21:42 jim.cromie
  2019-09-04 22:18 ` Varun Iyer
  2019-09-05  5:47 ` Greg KH
  0 siblings, 2 replies; 5+ messages in thread
From: jim.cromie @ 2019-09-04 21:42 UTC (permalink / raw)
  To: kernelnewbies

in the kernel, there are a lot of usages of __FILE__

this means that there are a lot of copies of fully rooted paths,
including all the varying ~/src/linux prefixes used by individual builders.

Id hazard a guess that something like __RELPATH_FILE__
would work in many cases and perhaps even be more readable
(by reducing long strings) in the generated output

Do the macros exist to cobble this together for compile-time ?
Does it warrant a short name ? either to wrap __FILE__ uses or replace them ?

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-09-05 20:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-04 21:42 is there a macro symbol for strlen($LINUX_SOURCE_PATH) jim.cromie
2019-09-04 22:18 ` Varun Iyer
2019-09-05 14:31   ` jim.cromie
2019-09-05 20:23     ` Valdis Klētnieks
2019-09-05  5:47 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).