u-boot-brain/libfdt
David Gibson fc7758ee4f libfdt: Increase namespace-pollution paranoia
libfdt is supposed to easy to embed in projects all and sundry.
Often, it won't be practical to separate the embedded libfdt's
namespace from that of the surrounding project.  Which means there can
be namespace conflicts between even libfdt's internal/static functions
and functions or macros coming from the surrounding project's headers
via libfdt_env.h.

This patch, therefore, renames a bunch of libfdt internal functions
and macros and makes a few other chances to reduce the chances of
namespace collisions with embedding projects.  Specifically:
	- Internal functions (even static ones) are now named _fdt_*()

	- The type and (static) global for the error table in
          fdt_strerror() gain an fdt_ prefix

	- The unused macro PALIGN is removed

	- The memeq and streq macros are removed and open-coded in the
          users (they were only used once each)

	- Other macros gain an FDT_ prefix

	- To save some of the bulk from the previous change, an
          FDT_TAGALIGN() macro is introduced, where FDT_TAGALIGN(x) ==
          FDT_ALIGN(x, FDT_TAGSIZE)

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2008-08-24 22:20:49 -04:00
..
fdt_ro.c libfdt: Increase namespace-pollution paranoia 2008-08-24 22:20:49 -04:00
fdt_rw.c libfdt: Increase namespace-pollution paranoia 2008-08-24 22:20:49 -04:00
fdt_strerror.c libfdt: Increase namespace-pollution paranoia 2008-08-24 22:20:49 -04:00
fdt_sw.c libfdt: Increase namespace-pollution paranoia 2008-08-24 22:20:49 -04:00
fdt_wip.c libfdt: Increase namespace-pollution paranoia 2008-08-24 22:20:49 -04:00
fdt.c libfdt: Increase namespace-pollution paranoia 2008-08-24 22:20:49 -04:00
libfdt_internal.h libfdt: Increase namespace-pollution paranoia 2008-08-24 22:20:49 -04:00
Makefile Big white-space cleanup. 2008-05-21 00:14:08 +02:00
README Big white-space cleanup. 2008-05-21 00:14:08 +02:00

The libfdt functionality was written by David Gibson.  The original
source came from the git repository:

URL:		git://ozlabs.org/home/dgibson/git/libfdt.git

author		David Gibson <dgibson@sneetch.(none)>
		Fri, 23 Mar 2007 04:16:54 +0000 (15:16 +1100)
committer	David Gibson <dgibson@sneetch.(none)>
		Fri, 23 Mar 2007 04:16:54 +0000 (15:16 +1100)
commit		857f54e79f74429af20c2b5ecc00ee98af6a3b8b
tree		2f648f0f88225a51ded452968d28b4402df8ade0
parent		07a12a08005f3b5cd9337900a6551e450c07b515

To adapt for u-boot usage, only the applicable files were copied and
imported into the u-boot git repository.
Omitted:
* GPL - u-boot comes with a copy of the GPL license
* test subdirectory - not directly useful for u-boot

After importing, other customizations were performed.  See the git log
for details.

Jerry Van Baren