07bf9881cc
nexgb: relicense xgbgen to 0BSD
...
Doing what the fuck I want to.
Included BurntSushi as a copyright holder because
under the Berne convention he totally is.
2018-09-30 17:34:25 +02:00
7aa2601e66
nexgb: rewrite import paths
2018-09-21 08:37:59 +02:00
48fb710f35
nexgb: post-merge fixups and cleanups
...
AUTHORS, CONTRIBUTORS: still useful, add people from git log, clean up.
LICENSE: Google doesn't really grant you shit anymore. The EU doesn't
have software patents either, so it doesn't affect me directly.
README, doc.go: erase mentions of unmaintained xgbutil.
2018-09-08 19:51:53 +02:00
aarzilli
3906399e7c
Regenerated from xcb-proto 1.12
2018-09-08 16:49:27 +02:00
aarzilli
1c01d79ba1
Changed xgbgen to support xcb-proto 1.12
...
* Added minimal support for switch fields.
* Changed the way Size is calculated to accomodate for lists inside structs
(added to randr)
* Removed heuristic to place alignment gaps, they are now explicitly
described in xml
2018-09-08 16:49:26 +02:00
Andrew Gallant
1614b58c42
fix structs with field name of 'Bytes'
...
(it conflict with a method of the same name that is generated for
all such structs)
2018-09-08 16:49:25 +02:00
aarzilli
becaf43dcb
Read/Write mutex for Extensions map
2018-09-08 16:49:24 +02:00
Andrew Gallant
ef8155bf17
Formatting and 80 cols.
2018-09-08 16:49:23 +02:00
aarzilli
a548d9d0f7
Fix Issue #21 : automatic calculation of alignment padding after lists
2018-09-08 16:49:22 +02:00
Andrew Gallant
76f9adb599
Use consistent extension names. Close #6 .
2018-09-08 16:49:21 +02:00
Andrew Gallant
33509dbeb0
It appears that the "Str" type (which is built into the core X protocol)
...
doesn't specify any padding. So it has to be treated as a special case.
Close #12 .
2018-09-08 16:49:21 +02:00
Andrew Gallant
2dc9914b5e
When writing, don't pad the length of bytes produced from inner
...
structs/unions. Each type should take care of its own padding.
Close #14 .
2018-09-08 16:49:20 +02:00
Andrew Gallant
5a07ac7108
Fix fmt'd output for union list writing.
2018-09-08 16:49:19 +02:00
Andrew Gallant
efe87cb908
Ignore the "fd" field for the time being (for the shm extension only).
2018-09-08 16:49:19 +02:00
Andrew Gallant
38b293e74d
Padding on a list is on the length of the list.
...
There was a bug where padding was being computed on each element of the
list. Close #5 .
2018-09-08 16:49:18 +02:00
Andrew Gallant
b06a8ca976
Don't needlessly change source files every time.
2018-09-08 16:49:18 +02:00
Andrew Gallant
4b20ffaf4f
Updated to work with new xproto XML files.
...
Namely, the "doc" element is ignored. Also, I've sorted everything
before output so that diff isn't completely useless.
2018-09-08 16:49:17 +02:00
Andrew Gallant
3658686aee
gofmt
2018-09-08 16:49:16 +02:00
Andrew Gallant (Ocelot)
4ea94ca0fe
Bug fix in the generator that was outputting %(MISSING) crud.
2012-05-26 18:24:52 -04:00
Andrew Gallant (Ocelot)
aa95801b2d
panic when an extension request is issued before an extension has been initialized. but give a nice error message for the happy people.
2012-05-11 23:59:38 -04:00
Andrew Gallant (Ocelot)
29942bf078
panic when an extension request is issued before an extension has been initialized. but give a nice error message for the happy people.
2012-05-11 23:58:52 -04:00
Andrew Gallant (Ocelot)
3e6b354493
add a little more docs for errors
2012-05-11 01:58:52 -04:00
Andrew Gallant (Ocelot)
c00652934e
better docs
2012-05-10 23:57:34 -04:00
Andrew Gallant (Ocelot)
a3363755cd
adding package header comments
2012-05-10 20:06:22 -04:00
Andrew Gallant (Ocelot)
0c50dc6241
a huge commit. splitting extensions into their own sub-packages.
2012-05-10 17:01:42 -04:00
Andrew Gallant (Ocelot)
e239bb3c68
make resource ids their own individual types. last commit before overhaul to sub-packages
2012-05-10 12:47:19 -04:00
Andrew Gallant (Ocelot)
13d598e5e7
more clean up. use log instead of fmt.Print to stderr. bug fix for event blocking (a hack fix for now).
2012-05-07 21:58:33 -04:00
Andrew Gallant (Ocelot)
dc48249e1a
lots of docs and examples
2012-05-07 04:09:19 -04:00
Andrew Gallant (Ocelot)
6d545e723a
add more extension cruft. make extension checking more uniform.
2012-05-06 17:48:40 -04:00
Andrew Gallant (Ocelot)
ea30f1a0a7
more bug fixes for the rest of the extensions
2012-05-06 03:06:02 -04:00
Andrew Gallant (Ocelot)
18b2d420b0
added documentation and did some slight restructuring. it's party time.
2012-05-06 02:21:31 -04:00
Andrew Gallant (Ocelot)
b6715f376f
fixing bugs related mostly to extension handling
2012-05-05 18:21:48 -04:00
Andrew Gallant (Ocelot)
c222d406b0
converting to new reply/cookie scheme
2012-05-05 02:55:38 -04:00
Andrew Gallant (Ocelot)
5cdae5950c
holy toldeo... things might actually be working
2012-05-03 01:00:01 -04:00
Andrew Gallant (Ocelot)
39507f86ab
finally starting on the crescendo: requests and replies.
2012-05-02 01:46:30 -04:00
Andrew Gallant (Ocelot)
83a71d4648
unions, events and errors... oh my
2012-05-01 01:08:03 -04:00
Andrew Gallant (Ocelot)
73154769b3
splitting up go specific code. too much for one file IMO. more progress. almost done with structs.
2012-04-30 16:18:17 -04:00
Andrew Gallant (Ocelot)
2a2d8653b3
gofmt
2012-04-30 02:44:31 -04:00
Andrew Gallant (Ocelot)
05d8ec6a16
complete and total overhaul like i promised. things are much easier to reason about. still not working yet though.
2012-04-30 02:40:55 -04:00
Andrew Gallant (Ocelot)
3115c13e88
last commit before i tear everything down
2012-04-29 14:09:03 -04:00
Andrew Gallant (Ocelot)
6bf0191fb0
progress. still not working. this is incredibly difficult.
2012-04-29 03:38:29 -04:00
Andrew Gallant (Ocelot)
52a21b415a
initial commit. not currently in a working state.
2012-04-28 23:25:57 -04:00