aboutsummaryrefslogtreecommitdiff
path: root/ch23/support/patches/gtk2hs-buildtools-0.13.5.0.patch
diff options
context:
space:
mode:
authorJan Sucan <jan@jansucan.com>2025-08-05 11:01:59 +0200
committerJan Sucan <jan@jansucan.com>2025-08-05 15:29:07 +0200
commit80ffd8979949788f951b32ebf67d401f1cd26a25 (patch)
treea5bee84708d26a8b9bc34c14097084badb0d8d86 /ch23/support/patches/gtk2hs-buildtools-0.13.5.0.patch
parentb801218e7627f98556ab7d1acbefbbf8daafd851 (diff)
ch23: Add info about compiling and running the application
Diffstat (limited to 'ch23/support/patches/gtk2hs-buildtools-0.13.5.0.patch')
-rw-r--r--ch23/support/patches/gtk2hs-buildtools-0.13.5.0.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/ch23/support/patches/gtk2hs-buildtools-0.13.5.0.patch b/ch23/support/patches/gtk2hs-buildtools-0.13.5.0.patch
new file mode 100644
index 0000000..9052c9d
--- /dev/null
+++ b/ch23/support/patches/gtk2hs-buildtools-0.13.5.0.patch
@@ -0,0 +1,12 @@
+diff -rupN gtk2hs-buildtools-0.13.5.0/c2hs/c/CLexer.x new-gtk2hs-buildtools-0.13.5.0/c2hs/c/CLexer.x
+--- gtk2hs-buildtools-0.13.5.0/c2hs/c/CLexer.x 1970-01-01 01:00:00.000000000 +0100
++++ new-gtk2hs-buildtools-0.13.5.0/c2hs/c/CLexer.x 2025-08-01 14:51:49.676123965 +0200
+@@ -130,7 +130,7 @@ $white+ ;
+ -- * allows further ints after the file name a la GCC; as the GCC CPP docu
+ -- doesn't say how many ints there can be, we allow an unbound number
+ --
+-\#$space*@int$space*(\"($infname|@charesc)*\"$space*)?(@int$space*)*$eol
++\#$space*@digits$space*(\"($infname|@charesc)*\"$space*)?(@int$space*)*$eol
+ { \pos len str -> setPos (adjustPos (take len str) pos) >> lexToken }
+
+ -- #pragma directive (K&R A12.8)