Skip to content

Instantly share code, notes, and snippets.

#ifndef UNPACKER_H
#define UNPACKER_H 1
#include <iostream>
#include <boost/function.hpp>
class Unpacker {
protected:
Unpacker() { }
public:
BOBCob format:
FLAG_COMPRESSED = 1
FLAG_C2 = 2
char[5] version "PKG01"
byte flags
byte titlelength
char[titlelength] title
byte filecount
template<typename I>
bool visit(const T &l) const {
for (BOOST_AUTO_TPL(it, l.begin()); it != l.end(); it++) {
if (!it->value)
break;
qt->placeRegion(newDiv, it->r, it->value, false);
}
}
void operator()(const TermDivision &td) const {
#include <boost/function.hpp>
void test(boost::function<void (int)> &) { }
int main() { return 0; }
StaticQuadTree_Impl::StaticQuadTree_Impl(
const std::vector<std::pair<Region, void *> > &regions
)
{
typedef std::pair<Region, void *> VP;
Region worldRegion;
if (regions.size())
worldRegion = regions[0].first;
template<typename T>
struct DebugCounter {
static int value;
};
template<typename T>
int DebugCounter<T>::value = 0;
#define DEBUG_COUNTER(name) \
DebugCounter<struct DebugCounter_tag_##name>::value
] ps wwwxu | perl -pe 's{(\s)\S+/}{$1}g' | awk 'NR>1{total[$11]++} END { for (k in total) print total[k], k }' | sort -n
1 awk
1 bluetooth-applet
1 bonobo-activation-server
1 cpufreq-applet
1 dbus-daemon
1 dbus-launch
1 dcopserver
1 evince
1 evolution-alarm-notify
Test program:
#include <stdio.h>
int main(void) {
printf("Hello world!\n");
return 0;
}
Diff of GCC and G++ assembler output (for GCC 4.3.3):
--- test-c.s 2009-04-06 23:16:02.000000000 -0400
function KeyMap:process(key)--{{{
keybuf = keybuf .. key
local found_key, func, index, dirn = mapping:find_near(key)
if found_key == nil then
-- No keys defined??
return
end