]> git.sur5r.net Git - openocd/blobdiff - src/helper/types.h
jtag_tap_t -> struct jtag_tap
[openocd] / src / helper / types.h
index eb836c2458cb9d7f221790b48f2e02190b7cf746..79eac13ae7df8796a436086ade7ffcccb0037a7a 100644 (file)
@@ -33,8 +33,6 @@
 #include <inttypes.h>
 #endif
 
-typedef struct jtag_tap_s jtag_tap_t;
-
 #ifdef HAVE_STDBOOL_H
 #include <stdbool.h>
 #else  /* HAVE_STDBOOL_H */
@@ -56,6 +54,10 @@ typedef bool _Bool;
 
 #endif /* HAVE_STDBOOL_H */
 
+/// turns a macro argument into a string constant
+#define stringify(s) __stringify(s)
+#define __stringify(s) #s
+
 /* DANGER!!!! here be dragons!
  *
  * Leave these fn's as byte accesses because it is safe