Skip to content

Instantly share code, notes, and snippets.

@Govelius
Govelius / xml.patch
Created May 1, 2012 16:24
libdxml2 edit3
--- a/xml.d 2012-04-30 22:58:38.496710573 +0100
+++ b/xml.d 2012-05-01 17:22:43.410371452 +0100
@@ -842,14 +842,14 @@
debug(xpath)logline("Got xpath "~to!string(xpath)~" in node "~to!string(getName)~"\n");
R truncxpath;
auto nextnode = getNextNode(xpath,truncxpath);
- R attrmatch;
+ R predmatch;
// XXX need to be able to split the attribute match off even when it doesn't have [] around it
ptrdiff_t offset = nextnode.length - find(nextnode, cast(R)"[").length;
@Govelius
Govelius / I give up
Created August 8, 2011 12:09
D bindings for xcb
--- src/c_client.py 2010-08-13 12:43:31.000000000 +0100
+++ src/d_client.py 2011-08-08 12:58:04.426679530 +0100
@@ -13,9 +13,11 @@
_extension_special_cases = ['XPrint', 'XCMisc', 'BigRequests']
-_cplusplus_annoyances = {'class' : '_class',
- 'new' : '_new',
- 'delete': '_delete'}
+_d_annoyances = {'class' : '_class',