This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- | |
xml2md.xsl | |
========== | |
This XSLT stylesheet transforms the cmark XML format back to Commonmark. | |
Since the XML output is lossy, a lossless MD->XML->MD roundtrip isn't | |
possible. The XML->MD->XML roundtrip should produce the original XML, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/core/Lucy/Index/FilePurger.c b/core/Lucy/Index/FilePurger.c | |
index 211f0ea..6daa805 100644 | |
--- a/core/Lucy/Index/FilePurger.c | |
+++ b/core/Lucy/Index/FilePurger.c | |
@@ -234,7 +234,10 @@ S_delete_entry(Folder *folder, String *folder_entry) { | |
Folder *inner = Folder_Local_Find_Folder(folder, folder_entry); | |
if (inner == NULL) { return false; } | |
if (Folder_is_a(inner, COMPOUNDFILEREADER)) { | |
- inner = CFReader_Get_Real_Folder((CompoundFileReader*)inner); | |
+ CompoundFileReader *cf_reader = (CompoundFileReader*)inner; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Add two functions `can_contain` and `can_be_contained` to the | |
// node type metaobject. (This is just an example. It's possible | |
// to split the work between these two functions differently.) | |
struct cmark_ext_node_type { | |
cmark_syntax_extension *extension; | |
char *name; | |
void (*free)(cmark_node *node); | |
// Used to check document structure. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Interface method stub. Needs a custom struct for arguments and return value | |
// of each interface method. | |
typedef void | |
(*cfish_interface_stub_t)(void *self, void *vargs, uint32_t *hash); | |
// Classes contain a fixed-size hashtable with pointers to interface method | |
// stubs. This table could also be moved in memory before the class struct | |
// to avoid overhead for classes that don't implement interfaces. | |
typedef struct { | |
... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -ru lib_old/Lucy/Analysis/CaseFolder.pod lib/Lucy/Analysis/CaseFolder.pod | |
--- lib_old/Lucy/Analysis/CaseFolder.pod 2015-09-19 16:51:19.000000000 +0200 | |
+++ lib/Lucy/Analysis/CaseFolder.pod 2015-09-19 16:52:02.000000000 +0200 | |
@@ -51,6 +51,22 @@ | |
Constructor. Takes no arguments. | |
+=head1 METHODS | |
+ | |
+=head2 transform(inversion) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This is a sketch of how to make caching of Ruby objects work with | |
// Ruby's GC under Clownfish. We use a registry that keeps a list of all | |
// Ruby objects created from Clownfish. This list is walked during GC to | |
// mark all objects with a positive Clownfish refcount and prevent them | |
// from being destroyed if all references from Ruby space were dropped. | |
// | |
// Once a Clownfish object has been passed to Ruby, it lives on even with | |
// a zero Clownfish refcount. This means that there are no more references | |
// from Clownfish but possibly from Ruby space. The Clownfish refcount | |
// might even become positive again if an object is passed back to |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extern crate libc; | |
use libc::types::common::c99::*; | |
use libc::types::os::arch::c95::*; | |
#[repr(C)] | |
pub struct ObjInternal { | |
refcount: size_t, | |
class: *mut ObjInternal, | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extern crate libc; | |
use libc::types::common::c99::*; | |
use libc::types::os::arch::c95::*; | |
#[repr(C)] | |
pub struct ObjInternal { | |
refcount: size_t, | |
class: *mut ObjInternal, | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Generated by re2c 0.13.7.5 on Mon Nov 17 00:09:41 2014 */ | |
#include <stdlib.h> | |
#include "chunk.h" | |
#include "scanners.h" | |
int _scan_at(int (*scanner)(const unsigned char *), chunk *c, int offset) | |
{ | |
int res; | |
unsigned char *ptr = (unsigned char *)c->data; | |
unsigned char lim = ptr[c->len]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include "utf8proc.h" | |
static const int32_t codepoints[] = { | |
0x037A, | |
0x03D2, | |
0x03D3, | |
0x03D4, |