From fa84942c4ce1470f451e4cdef751827536b16e87 Mon Sep 17 00:00:00 2001 From: sbosse Date: Mon, 21 Jul 2025 22:59:50 +0200 Subject: [PATCH] Mon 21 Jul 22:43:21 CEST 2025 --- js/x11/core/xproto2js.pl | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 js/x11/core/xproto2js.pl diff --git a/js/x11/core/xproto2js.pl b/js/x11/core/xproto2js.pl new file mode 100644 index 0000000..ad13962 --- /dev/null +++ b/js/x11/core/xproto2js.pl @@ -0,0 +1,12 @@ +# convert X protocol docline +# #x00000020 name +# to JS line +# name: x00000020 +while(<>) { + my($line) = $_; + chomp($line); + if ($line =~ /(x[0-9]+)[ \t]+([^ ]+)/) + { + print "$2: 0$1,\n"; + } +} \ No newline at end of file