Description:
Namespace everything.
BumpyCaps for type names.
Drop pp_ prefix all over.
Move util code to a subdir.
Makefile | 4
TODO | 12
alias.h | 52 +-
array.h | 67 +-
bignum.h | 509 ---------------------
binding.h | 58 +-
bit_buffer.h | 148 ------
context.h | 64 +-
datatype.h | 70 +-
datatype_types.h | 346 +++++++-------
device_init.h | 17
devices/amd/k8.cpp | 132 ++---
devices/cpu/cpu.cpp | 23
devices/cpuid/cpuid.cpp | 28 -
devices/cpuid/generic_device.cpp | 86 +--
devices/cpuid/generic_device.h | 8
devices/global.cpp | 8
devices/msr/generic_device.cpp | 10
devices/msr/generic_device.h | 8
devices/msr/msr.cpp | 8
devices/pci/generic_device.cpp | 74 +--
devices/pci/generic_device.h | 10
devices/pci/pci.cpp | 32 -
dirent.h | 93 +--
driver.h | 74 +--
drivers.cpp | 51 +-
drivers.h | 26 -
drivers/Makefile | 2
drivers/all_drivers.cpp | 18
drivers/cpu/cpu_address.h | 16
drivers/cpu/cpu_driver.cpp | 99 ++--
drivers/cpu/cpu_driver.h | 52 +-
drivers/cpu/tests/cpu_driver_test.cpp | 44 -
drivers/cpuid/cpuid_binding.cpp | 44 -
drivers/cpuid/cpuid_binding.h | 50 +-
drivers/cpuid/cpuid_driver.cpp | 30 -
drivers/cpuid/cpuid_driver.h | 30 -
drivers/cpuid/tests/cpuid_io_test.cpp | 44 -
drivers/io/io_binding.cpp | 44 -
drivers/io/io_binding.h | 56 +-
drivers/io/io_driver.cpp | 32 -
drivers/io/io_driver.h | 30 -
drivers/io/tests/io_io_test.cpp | 36 -
drivers/mem/mem_binding.cpp | 50 +-
drivers/mem/mem_binding.h | 62 +-
drivers/mem/mem_driver.cpp | 32 -
drivers/mem/mem_driver.h | 30 -
drivers/mem/tests/mem_io_test.cpp | 30 -
drivers/msr/msr_binding.cpp | 50 +-
drivers/msr/msr_binding.h | 54 +-
drivers/msr/msr_driver.cpp | 30 -
drivers/msr/msr_driver.h | 30 -
drivers/msr/tests/msr_io_test.cpp | 32 -
drivers/pci/pci_binding.cpp | 58 +-
drivers/pci/pci_binding.h | 58 +-
drivers/pci/pci_driver.cpp | 73 +--
drivers/pci/pci_driver.h | 52 +-
drivers/pci/tests/pci_io_test.cpp | 50 +-
examples/pp_client.cpp | 6
examples/pp_discover.cpp | 68 +-
examples/pp_fuse.cpp | 64 +-
examples/pp_pci.cpp | 58 +-
examples/pp_read.cpp | 82 +--
examples/pp_server.cpp | 74 +--
fake_language.cpp | 555 +++++++++++------------
fake_language.h | 554 +++++++++++------------
field.h | 94 +--
field_types.h | 147 +++---
filesystem.h | 817
----------------------------------
keyed_vector.h | 509 ---------------------
language.cpp | 8
language.h | 34 -
magic_regs.cpp | 40 -
path.cpp | 46 +
path.h | 168 +++---
pp.h | 80 +--
pp_alias.h | 52 --
pp_array.h | 100 ----
pp_binding.h | 97 ----
pp_context.h | 125 -----
pp_datatype.h | 100 ----
pp_datatypes.h | 739
------------------------------
pp_dirent.h | 114 ----
pp_driver.h | 107 ----
pp_field.h | 142 -----
pp_fields.h | 190 -------
pp_lambda.h | 36 -
pp_path.cpp | 320 -------------
pp_path.h | 590 ------------------------
pp_regbits.h | 240 ---------
pp_register.h | 82 ---
pp_registers.h | 125 -----
pp_rwprocs.h | 16
pp_scope.cpp | 452 ------------------
pp_scope.h | 242 ----------
printfxx.h | 109 ----
regbits.h | 84 +--
register.h | 62 +-
register_types.h | 79 +--
rules.mk | 2
runtime.cpp | 53 +-
runtime.h | 31 -
rwprocs.h | 22
scope.cpp | 193 ++++----
scope.h | 142 ++---
shared_object.h | 137 -----
simple_regex.h | 166 ------
sockets.h | 235 ---------
syserror.h | 194 --------
tests/Makefile | 20
tests/alias_test.cpp | 22
tests/array_test.cpp | 50 +-
tests/bignum_test.cpp | 4
tests/binding_test.cpp | 16
tests/bit_buffer_test.cpp | 2
tests/datatype_test.cpp | 446 +++++++++---------
tests/dirent_test.cpp | 68 +-
tests/fake_language_test.cpp | 232 ++++-----
tests/field_test.cpp | 152 +++---
tests/filesystem_test.cpp | 4
tests/keyed_vector_test.cpp | 59 +-
tests/magic_regs_test.cpp | 24
tests/path_test.cpp | 792
++++++++++++++++----------------
tests/pp_alias_test.cpp | 28 -
tests/pp_array_test.cpp | 65 --
tests/pp_binding_test.cpp | 19
tests/pp_datatype_test.cpp | 611 -------------------------
tests/pp_dirent_test.cpp | 75 ---
tests/pp_field_test.cpp | 216 --------
tests/pp_path_test.cpp | 808
---------------------------------
tests/pp_regbits_test.cpp | 155 ------
tests/pp_register_test.cpp | 171 -------
tests/pp_scope_test.cpp | 407 ----------------
tests/printfxx_test.cpp | 2
tests/regbits_test.cpp | 166 +++---
tests/regex_test.cpp | 4
tests/register_test.cpp | 148 +++---
tests/scope_test.cpp | 250 +++++-----
tests/shared_object_test.cpp | 2
tests/sockets_test.cpp | 160 +++---
tests/syserror_test.cpp | 92 +--
tests/test_binding.h | 36 -
tests/test_helpers.cpp | 30 -
tests/test_helpers.h | 6
util/bignum.h | 24
util/bignum_lambda.h | 12
util/bit_buffer.h | 36 -
util/filesystem.h | 20
util/keyed_vector.h | 18
util/printfxx.h | 24
util/shared_object.h | 12
util/simple_regex.h | 12
util/sockets.h | 108 ++--
util/syserror.h | 348 +++++++-------
version.cpp | 25 -
version.h | 26 +
156 files changed, 4628 insertions(+), 13497 deletions(-)
Please review this at http://codereview.appspot.com/148047
Affected files:
M Makefile
M TODO
A + alias.h
A + array.h
D bignum.h
A + binding.h
D bit_buffer.h
A + context.h
A + datatype.h
A + datatype_types.h
M device_init.h
M devices/amd/k8.cpp
M devices/cpu/cpu.cpp
M devices/cpuid/cpuid.cpp
M devices/cpuid/generic_device.cpp
M devices/cpuid/generic_device.h
M devices/global.cpp
M devices/msr/generic_device.cpp
M devices/msr/generic_device.h
M devices/msr/msr.cpp
M devices/pci/generic_device.cpp
M devices/pci/generic_device.h
M devices/pci/pci.cpp
A + dirent.h
A + driver.h
M drivers.cpp
M drivers.h
M drivers/Makefile
M drivers/all_drivers.cpp
M drivers/cpu/cpu_address.h
M drivers/cpu/cpu_driver.cpp
M drivers/cpu/cpu_driver.h
M drivers/cpu/tests/cpu_driver_test.cpp
M drivers/cpuid/cpuid_binding.cpp
M drivers/cpuid/cpuid_binding.h
M drivers/cpuid/cpuid_driver.cpp
M drivers/cpuid/cpuid_driver.h
M drivers/cpuid/tests/cpuid_io_test.cpp
M drivers/io/io_binding.cpp
M drivers/io/io_binding.h
M drivers/io/io_driver.cpp
M drivers/io/io_driver.h
M drivers/io/tests/io_io_test.cpp
M drivers/mem/mem_binding.cpp
M drivers/mem/mem_binding.h
M drivers/mem/mem_driver.cpp
M drivers/mem/mem_driver.h
M drivers/mem/tests/mem_io_test.cpp
M drivers/msr/msr_binding.cpp
M drivers/msr/msr_binding.h
M drivers/msr/msr_driver.cpp
M drivers/msr/msr_driver.h
M drivers/msr/tests/msr_io_test.cpp
M drivers/pci/pci_binding.cpp
M drivers/pci/pci_binding.h
M drivers/pci/pci_driver.cpp
M drivers/pci/pci_driver.h
M drivers/pci/tests/pci_io_test.cpp
M examples/pp_client.cpp
M examples/pp_discover.cpp
M examples/pp_fuse.cpp
M examples/pp_pci.cpp
M examples/pp_read.cpp
M examples/pp_server.cpp
M fake_language.cpp
M fake_language.h
A + field.h
A + field_types.h
D filesystem.h
D keyed_vector.h
M language.cpp
M language.h
M magic_regs.cpp
A + path.cpp
A + path.h
M pp.h
D pp_alias.h
D pp_array.h
D pp_binding.h
D pp_context.h
D pp_datatype.h
D pp_datatypes.h
D pp_dirent.h
D pp_driver.h
D pp_field.h
D pp_fields.h
D pp_lambda.h
D pp_path.cpp
D pp_path.h
D pp_regbits.h
D pp_register.h
D pp_registers.h
D pp_rwprocs.h
D pp_scope.cpp
D pp_scope.h
D printfxx.h
A + regbits.h
A + register.h
A + register_types.h
M rules.mk
M runtime.cpp
M runtime.h
A + rwprocs.h
A + scope.cpp
A + scope.h
D shared_object.h
D simple_regex.h
D sockets.h
D syserror.h
M tests/Makefile
A + tests/alias_test.cpp
A + tests/array_test.cpp
M tests/bignum_test.cpp
A + tests/binding_test.cpp
M tests/bit_buffer_test.cpp
A + tests/datatype_test.cpp
A + tests/dirent_test.cpp
M tests/fake_language_test.cpp
A + tests/field_test.cpp
M tests/filesystem_test.cpp
M tests/keyed_vector_test.cpp
M tests/magic_regs_test.cpp
A + tests/path_test.cpp
D tests/pp_alias_test.cpp
D tests/pp_array_test.cpp
D tests/pp_binding_test.cpp
D tests/pp_datatype_test.cpp
D tests/pp_dirent_test.cpp
D tests/pp_field_test.cpp
D tests/pp_path_test.cpp
D tests/pp_regbits_test.cpp
D tests/pp_register_test.cpp
D tests/pp_scope_test.cpp
M tests/printfxx_test.cpp
A + tests/regbits_test.cpp
M tests/regex_test.cpp
A + tests/register_test.cpp
A + tests/scope_test.cpp
M tests/shared_object_test.cpp
M tests/sockets_test.cpp
M tests/syserror_test.cpp
M tests/test_binding.h
M tests/test_helpers.cpp
M tests/test_helpers.h
A + util/bignum.h
util/bignum.h
A + util/bignum_lambda.h
util/bignum_lambda.h
A + util/bit_buffer.h
util/bit_buffer.h
A + util/filesystem.h
util/filesystem.h
A + util/keyed_vector.h
util/keyed_vector.h
A + util/printfxx.h
util/printfxx.h
A + util/shared_object.h
util/shared_object.h
A + util/simple_regex.h
util/simple_regex.h
A + util/sockets.h
util/sockets.h
A + util/syserror.h
util/syserror.h
M version.cpp
A version.h
Tim