This file contains 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 <cairo/cairo.h> | |
#include <math.h> | |
static void | |
draw_region (cairo_t *cr, | |
cairo_region_t *region) | |
{ | |
cairo_rectangle_int_t box; | |
int n_boxes, i; |
This file contains 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
(function(exports) { | |
const Gio = imports.gi.Gio; | |
const Soup = imports.gi.Soup; | |
const Mainloop = imports.mainloop; | |
function Deferred() { | |
this.callbacks = []; | |
this.valuePair = null; | |
} |
This file contains 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
(function(exports) { | |
const Gio = imports.gi.Gio; | |
const Soup = imports.gi.Soup; | |
const Mainloop = imports.mainloop; | |
function Deferred() { | |
this.callbacks = []; | |
this.valuePair = null; | |
} |
This file contains 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
FLA format, "Page N" files as found in Flash 5. | |
Partially reverse engineered by Jasper St. Pierre. | |
FLA files are CFBF files (COM Structured Storage). You can parse/make them with: | |
http://msdn.microsoft.com/en-us/library/aa380369%28VS.85%29.aspx | |
http://git.gnome.org/browse/libgsf | |
Very helpful while making this: | |
http://mh-nexus.de/en/hxd/ |
This file contains 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 <stdlib.h> | |
#include <string.h> | |
#include <malloc.h> | |
static void | |
dump_intv (int *intv, | |
int count) | |
{ | |
int i; |
This file contains 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 <stdlib.h> | |
#include <string.h> | |
#include <malloc.h> | |
static void | |
dump_intv (int *intv, | |
int count) | |
{ | |
int i; |
This file contains 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 <stdlib.h> | |
#include <string.h> | |
#include <malloc.h> | |
/* merge sort in N*2 space. */ | |
static void | |
mergesort_impl (int *intv, | |
int *tmp, | |
int count) |
This file contains 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 <stdlib.h> | |
#include <string.h> | |
#include <malloc.h> | |
static void | |
dump_intv (int *intv, | |
int count) | |
{ | |
int i; |
This file contains 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 <glib.h> | |
typedef struct { | |
GSList *stack; | |
char *bytecode; | |
char *pc; | |
} MachineState; | |
static void machine_push (MachineState *state, int v); | |
static int machine_pop (MachineState *state); |
This file contains 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 <glib.h> | |
typedef struct { | |
GSList *stack; | |
} MachineState; | |
static void machine_push (MachineState *state, int v); | |
static int machine_pop (MachineState *state); | |
/* pushes an operand onto the operand stack */ |