[coreboot-gerrit] New patch to review for coreboot: 0269f71 string: Add STRINGIFY macro

Aaron Durbin (adurbin@google.com) gerrit at coreboot.org
Fri Apr 26 19:02:50 CEST 2013

Aaron Durbin (adurbin at google.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/3144


commit 0269f719b4bb6e270d9409d7ff3a42193312a16d
Author: Aaron Durbin <adurbin at chromium.org>
Date:   Fri Apr 26 11:58:35 2013 -0500

    string: Add STRINGIFY macro
    STRINGIFY makes a string from a token. It is generally useful.
    Even though STRINGIFY is not defined to be in the C library it's
    placed in string.h because it does make a string.
    Change-Id: I368e14792a90d1fdce2a3d4d7a48b5d400623160
    Signed-off-by: Aaron Durbin <adurbin at chromium.org>
 src/include/string.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/include/string.h b/src/include/string.h
index 44f244c..77985e1 100644
--- a/src/include/string.h
+++ b/src/include/string.h
@@ -4,6 +4,12 @@
 #include <stddef.h>
 #include <stdlib.h>
+/* Stringify a token */
+#ifndef STRINGIFY
+#define _STRINGIFY(x)	#x
 void *memcpy(void *dest, const void *src, size_t n);
 void *memmove(void *dest, const void *src, size_t n);
 void *memset(void *s, int c, size_t n);

More information about the coreboot-gerrit mailing list