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
# Copyright 2014 Ben Longbons <b.r.longbons@gmail.com> | |
# Licensed under GPL3+ as part of The Mana World | |
# for latest stable version, see: https://github.com/themanaworld/tmwa/blob/master/src/main-gdb-head.py | |
class PointerPrinter(object): | |
__slots__ = ('_value') | |
name = 'any-symbol-pointer' | |
enabled = True | |
def __new__(cls, v): |
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
(gdb) break tmwa::io::ReadFile<TAB> | |
ReadFile ReadFile::get(char&) | |
ReadFile::ReadFile(tmwa::io::DirFd const&, tmwa::strings::ZString) ReadFile::get(char*, unsigned long) | |
ReadFile::ReadFile(tmwa::io::FD) ReadFile::getline(tmwa::strings::AString&) | |
ReadFile::ReadFile(tmwa::io::read_file_from_string, tmwa::strings::LString, tmwa::io::FD) ReadFile::is_open() | |
ReadFile::ReadFile(tmwa::io::read_file_from_string, tmwa::strings::XString, tmwa::io::FD) ReadFile::~ReadFile() | |
ReadFile::ReadFile(tmwa::strings::ZString) | |
(gdb) break tmwa::io::ReadFile::ReadFile(tmwa::<TAB> | |
<infinite results> |
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
#!/usr/bin/env python | |
import os | |
numbers = [ | |
None, "One", "Two", "Three", "Four", | |
"Five", "Six", "Seven", "Eight", "Nine", | |
"Ten", "Eleven", "Twelve", "Thriteen", "Fourteen", "Fifteen", | |
"Sixteen", "Seventeen", "Eighteen", "Nineteen", | |
"Twenty", "Twentyone", "Twentytwo", "Twentythree", "Twentyfour", |
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
AString::AString(const MString& s) | |
: AString(s.begin(), s.end()) | |
{ | |
} |
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
ben@joyplim:~/tmwa/build$ LD_DEBUG=libs bin/test-debug-debug | |
13844: find library=libtmwa-shared.so.0 [0]; searching | |
13844: search cache=/etc/ld.so.cache | |
13844: search path=/lib/x86_64-linux-gnu/tls/x86_64:/lib/x86_64-linux-gnu/tls:/lib/x86_64-linux-gnu/x86_64:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu/tls/x86_64:/usr/lib/x86_64-linux-gnu/tls:/usr/lib/x86_64-linux-gnu/x86_64:/usr/lib/x86_64-linux-gnu:/lib/tls/x86_64:/lib/tls:/lib/x86_64:/lib:/usr/lib/tls/x86_64:/usr/lib/tls:/usr/lib/x86_64:/usr/lib (system search path) | |
13844: trying file=/lib/x86_64-linux-gnu/tls/x86_64/libtmwa-shared.so.0 | |
13844: trying file=/lib/x86_64-linux-gnu/tls/libtmwa-shared.so.0 | |
13844: trying file=/lib/x86_64-linux-gnu/x86_64/libtmwa-shared.so.0 | |
13844: trying file=/lib/x86_64-linux-gnu/libtmwa-shared.so.0 | |
13844: trying file=/usr/lib/x86_64-linux-gnu/tls/x86_64/libtmwa-shared.so.0 | |
13844: trying file=/usr/lib/x86_64-linux-gnu |
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
test-* | |
var-* |
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
# all syntax subject to change | |
# all commonly used variables have type list-of-string | |
# just-plain-string is an exceptionally rare case - probably only for enums | |
# (enums need not be finite, e.g. host is enum of = x86_64-linux-gnu, ... | |
AR = [ar] | |
CC = [gcc] | |
CXX = [g++] | |
CFLAGS = [-g -O2] | |
CXXFLAGS = [-g -O2] |
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
.DEFAULT_GOAL := all | |
.PHONY: ${MAKECMDGOALS} | |
$(filter-out all,${MAKECMDGOALS}) all: .forward-all ; | |
.forward-all: | |
${MAKE} -C build ${MAKECMDGOALS} | |
${MAKEFILE_LIST}: ; | |
.SUFFIXES: |
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"?> | |
<!-- vim: set sts=2 sw=2: --> | |
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:its="http://www.w3.org/2005/11/its" elementFormDefault="qualified"> | |
<!-- | |
meta | |
--> | |
<!-- | |
Probably most 'sequence' below should really be 'choice', | |
and the corresponding maxOccurs should be hoisted. | |
TODO see what happens for duplicates in that case (see <chars> in particular) |
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
% make -k | |
xmllint --format --schema chapter04ord1.xsd chapter04.xml > chapter04.xml.tmp | |
chapter04.xml validates | |
mv chapter04.xml.tmp chapter04.xml | |
xmllint --format --dtdvalid XMLSchema.dtd chapter04ord2.xsd > chapter04ord2.xsd.tmp | |
mv chapter04ord2.xsd.tmp chapter04ord2.xsd | |
xmllint --format --dtdvalid XMLSchema.dtd chapter04prod.xsd > chapter04prod.xsd.tmp | |
mv chapter04prod.xsd.tmp chapter04prod.xsd | |
xmllint --format --dtdvalid XMLSchema.dtd chapter04cust.xsd > chapter04cust.xsd.tmp | |
mv chapter04cust.xsd.tmp chapter04cust.xsd |