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
#ifndef UNPACKER_H | |
#define UNPACKER_H 1 | |
#include <iostream> | |
#include <boost/function.hpp> | |
class Unpacker { | |
protected: | |
Unpacker() { } | |
public: |
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
BOBCob format: | |
FLAG_COMPRESSED = 1 | |
FLAG_C2 = 2 | |
char[5] version "PKG01" | |
byte flags | |
byte titlelength | |
char[titlelength] title | |
byte filecount |
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
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 { |
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 <boost/function.hpp> | |
void test(boost::function<void (int)> &) { } | |
int main() { return 0; } |
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
StaticQuadTree_Impl::StaticQuadTree_Impl( | |
const std::vector<std::pair<Region, void *> > ®ions | |
) | |
{ | |
typedef std::pair<Region, void *> VP; | |
Region worldRegion; | |
if (regions.size()) | |
worldRegion = regions[0].first; | |
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
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 |
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
] 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 |
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
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 |
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 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 |
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
あ |
OlderNewer