Mon 21 Jul 22:43:21 CEST 2025
This commit is contained in:
parent
509f134ae5
commit
fa84942c4c
12
js/x11/core/xproto2js.pl
Normal file
12
js/x11/core/xproto2js.pl
Normal file
|
@ -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";
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user