5769f150de
```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.-][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.-][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
22 lines
867 B
Diff
22 lines
867 B
Diff
--- a/acc/acc_defs.h
|
|
+++ b/acc/acc_defs.h
|
|
@@ -87,6 +87,9 @@
|
|
|
|
/* This can be put into a header file but may get ignored by some compilers. */
|
|
#if !defined(ACC_COMPILE_TIME_ASSERT_HEADER)
|
|
+# define ACC_COMPILE_TIME_ASSERT_HEADER(e) _Static_assert(e, #e);
|
|
+#endif
|
|
+#if !defined(ACC_COMPILE_TIME_ASSERT_HEADER)
|
|
# if (ACC_CC_AZTECC || ACC_CC_ZORTECHC)
|
|
# define ACC_COMPILE_TIME_ASSERT_HEADER(e) extern int __acc_cta[1-!(e)];
|
|
# elif (ACC_CC_DMC || ACC_CC_SYMANTECC)
|
|
@@ -100,6 +103,9 @@
|
|
|
|
/* This must appear within a function body. */
|
|
#if !defined(ACC_COMPILE_TIME_ASSERT)
|
|
+# define ACC_COMPILE_TIME_ASSERT(e) _Static_assert(e, #e);
|
|
+#endif
|
|
+#if !defined(ACC_COMPILE_TIME_ASSERT)
|
|
# if (ACC_CC_AZTECC)
|
|
# define ACC_COMPILE_TIME_ASSERT(e) {typedef int __acc_cta_t[1-!(e)];}
|
|
# elif (ACC_CC_DMC || ACC_CC_PACIFICC || ACC_CC_SYMANTECC || ACC_CC_ZORTECHC)
|