Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(34)

Issue 148047: HUGE: namespace and type names

Can't Edit
Can't Publish+Mail
Start Review
Created:
16 years, 8 months ago by thockin
Modified:
11 years, 6 months ago
Reviewers:
pp-devel
CC:
thockin
Base URL:
http://prettyprint.googlecode.com/svn/trunk/
Visibility:
Public.

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(-)

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4628 lines, -13497 lines) Patch
M Makefile View 1 chunk +2 lines, -2 lines 0 comments Download
M TODO View 1 chunk +12 lines, -0 lines 0 comments Download
A + alias.h View 1 chunk +28 lines, -24 lines 0 comments Download
A + array.h View 2 chunks +35 lines, -32 lines 0 comments Download
D bignum.h View 1 chunk +0 lines, -509 lines 0 comments Download
A + binding.h View 2 chunks +31 lines, -27 lines 0 comments Download
D bit_buffer.h View 1 chunk +0 lines, -148 lines 0 comments Download
A + context.h View 5 chunks +34 lines, -30 lines 0 comments Download
A + datatype.h View 2 chunks +37 lines, -33 lines 0 comments Download
A + datatype_types.h View 21 chunks +174 lines, -172 lines 0 comments Download
M device_init.h View 1 chunk +13 lines, -4 lines 0 comments Download
M devices/amd/k8.cpp View 22 chunks +68 lines, -64 lines 0 comments Download
M devices/cpu/cpu.cpp View 2 chunks +14 lines, -9 lines 0 comments Download
M devices/cpuid/cpuid.cpp View 2 chunks +17 lines, -11 lines 0 comments Download
M devices/cpuid/generic_device.h View 1 chunk +7 lines, -1 line 0 comments Download
M devices/cpuid/generic_device.cpp View 12 chunks +46 lines, -40 lines 0 comments Download
M devices/global.cpp View 2 chunks +7 lines, -1 line 0 comments Download
M devices/msr/generic_device.h View 1 chunk +7 lines, -1 line 0 comments Download
M devices/msr/generic_device.cpp View 2 chunks +8 lines, -2 lines 0 comments Download
M devices/msr/msr.cpp View 2 chunks +7 lines, -1 line 0 comments Download
M devices/pci/generic_device.h View 1 chunk +8 lines, -2 lines 0 comments Download
M devices/pci/generic_device.cpp View 30 chunks +40 lines, -34 lines 0 comments Download
M devices/pci/pci.cpp View 2 chunks +19 lines, -13 lines 0 comments Download
A + dirent.h View 1 chunk +48 lines, -45 lines 0 comments Download
A + driver.h View 3 chunks +39 lines, -35 lines 0 comments Download
M drivers.h View 1 chunk +15 lines, -11 lines 0 comments Download
M drivers.cpp View 4 chunks +29 lines, -22 lines 0 comments Download
M drivers/Makefile View 1 chunk +1 line, -1 line 0 comments Download
M drivers/all_drivers.cpp View 1 chunk +11 lines, -7 lines 0 comments Download
M drivers/cpu/cpu_address.h View 2 chunks +10 lines, -6 lines 0 comments Download
M drivers/cpu/cpu_driver.h View 3 chunks +28 lines, -24 lines 0 comments Download
M drivers/cpu/cpu_driver.cpp View 8 chunks +51 lines, -48 lines 0 comments Download
M drivers/cpu/tests/cpu_driver_test.cpp View 6 chunks +24 lines, -20 lines 0 comments Download
M drivers/cpuid/cpuid_binding.h View 2 chunks +27 lines, -23 lines 0 comments Download
M drivers/cpuid/cpuid_binding.cpp View 6 chunks +24 lines, -20 lines 0 comments Download
M drivers/cpuid/cpuid_driver.h View 2 chunks +17 lines, -13 lines 0 comments Download
M drivers/cpuid/cpuid_driver.cpp View 1 chunk +17 lines, -13 lines 0 comments Download
M drivers/cpuid/tests/cpuid_io_test.cpp View 2 chunks +24 lines, -20 lines 0 comments Download
M drivers/io/io_binding.h View 3 chunks +30 lines, -26 lines 0 comments Download
M drivers/io/io_binding.cpp View 7 chunks +24 lines, -20 lines 0 comments Download
M drivers/io/io_driver.h View 2 chunks +17 lines, -13 lines 0 comments Download
M drivers/io/io_driver.cpp View 1 chunk +18 lines, -14 lines 0 comments Download
M drivers/io/tests/io_io_test.cpp View 3 chunks +20 lines, -16 lines 0 comments Download
M drivers/mem/mem_binding.h View 3 chunks +33 lines, -29 lines 0 comments Download
M drivers/mem/mem_binding.cpp View 9 chunks +27 lines, -23 lines 0 comments Download
M drivers/mem/mem_driver.h View 2 chunks +17 lines, -13 lines 0 comments Download
M drivers/mem/mem_driver.cpp View 1 chunk +18 lines, -14 lines 0 comments Download
M drivers/mem/tests/mem_io_test.cpp View 4 chunks +17 lines, -13 lines 0 comments Download
M drivers/msr/msr_binding.h View 3 chunks +29 lines, -25 lines 0 comments Download
M drivers/msr/msr_binding.cpp View 9 chunks +27 lines, -23 lines 0 comments Download
M drivers/msr/msr_driver.h View 2 chunks +17 lines, -13 lines 0 comments Download
M drivers/msr/msr_driver.cpp View 1 chunk +17 lines, -13 lines 0 comments Download
M drivers/msr/tests/msr_io_test.cpp View 4 chunks +18 lines, -14 lines 0 comments Download
M drivers/pci/pci_binding.h View 5 chunks +31 lines, -27 lines 0 comments Download
M drivers/pci/pci_binding.cpp View 10 chunks +31 lines, -27 lines 0 comments Download
M drivers/pci/pci_driver.h View 3 chunks +28 lines, -24 lines 0 comments Download
M drivers/pci/pci_driver.cpp View 4 chunks +38 lines, -35 lines 0 comments Download
M drivers/pci/tests/pci_io_test.cpp View 3 chunks +27 lines, -23 lines 0 comments Download
M examples/pp_client.cpp View 2 chunks +3 lines, -3 lines 0 comments Download
M examples/pp_discover.cpp View 7 chunks +34 lines, -34 lines 0 comments Download
M examples/pp_fuse.cpp View 10 chunks +32 lines, -32 lines 0 comments Download
M examples/pp_pci.cpp View 5 chunks +29 lines, -29 lines 0 comments Download
M examples/pp_read.cpp View 9 chunks +41 lines, -41 lines 0 comments Download
M examples/pp_server.cpp View 7 chunks +37 lines, -37 lines 0 comments Download
M fake_language.h View 11 chunks +282 lines, -272 lines 0 comments Download
M fake_language.cpp View 8 chunks +280 lines, -275 lines 0 comments Download
A + field.h View 4 chunks +48 lines, -46 lines 0 comments Download
A + field_types.h View 4 chunks +78 lines, -69 lines 0 comments Download
D filesystem.h View 1 chunk +0 lines, -817 lines 0 comments Download
D keyed_vector.h View 1 chunk +0 lines, -509 lines 0 comments Download
M language.h View 3 chunks +19 lines, -15 lines 0 comments Download
M language.cpp View 2 chunks +6 lines, -2 lines 0 comments Download
M magic_regs.cpp View 3 chunks +22 lines, -18 lines 0 comments Download
A + path.h View 20 chunks +86 lines, -82 lines 0 comments Download
A + path.cpp View 7 chunks +25 lines, -21 lines 0 comments Download
M pp.h View 1 chunk +41 lines, -39 lines 0 comments Download
D pp_alias.h View 1 chunk +0 lines, -52 lines 0 comments Download
D pp_array.h View 1 chunk +0 lines, -100 lines 0 comments Download
D pp_binding.h View 1 chunk +0 lines, -97 lines 0 comments Download
D pp_context.h View 1 chunk +0 lines, -125 lines 0 comments Download
D pp_datatype.h View 1 chunk +0 lines, -100 lines 0 comments Download
D pp_datatypes.h View 1 chunk +0 lines, -739 lines 0 comments Download
D pp_dirent.h View 1 chunk +0 lines, -114 lines 0 comments Download
D pp_driver.h View 1 chunk +0 lines, -107 lines 0 comments Download
D pp_field.h View 1 chunk +0 lines, -142 lines 0 comments Download
D pp_fields.h View 1 chunk +0 lines, -190 lines 0 comments Download
D pp_lambda.h View 1 chunk +0 lines, -36 lines 0 comments Download
D pp_path.h View 1 chunk +0 lines, -590 lines 0 comments Download
D pp_path.cpp View 1 chunk +0 lines, -320 lines 0 comments Download
D pp_regbits.h View 1 chunk +0 lines, -240 lines 0 comments Download
D pp_register.h View 1 chunk +0 lines, -82 lines 0 comments Download
D pp_registers.h View 1 chunk +0 lines, -125 lines 0 comments Download
D pp_rwprocs.h View 1 chunk +0 lines, -16 lines 0 comments Download
D pp_scope.h View 1 chunk +0 lines, -242 lines 0 comments Download
D pp_scope.cpp View 1 chunk +0 lines, -452 lines 0 comments Download
D printfxx.h View 1 chunk +0 lines, -109 lines 0 comments Download
A + regbits.h View 10 chunks +44 lines, -40 lines 0 comments Download
A + register.h View 2 chunks +33 lines, -29 lines 0 comments Download
A + register_types.h View 4 chunks +41 lines, -38 lines 0 comments Download
M rules.mk View 1 chunk +1 line, -1 line 0 comments Download
M runtime.h View 1 chunk +21 lines, -10 lines 0 comments Download
M runtime.cpp View 2 chunks +33 lines, -20 lines 0 comments Download
A + rwprocs.h View 1 chunk +13 lines, -9 lines 0 comments Download
A + scope.h View 10 chunks +72 lines, -70 lines 0 comments Download
A + scope.cpp View 24 chunks +98 lines, -95 lines 0 comments Download
D shared_object.h View 1 chunk +0 lines, -137 lines 0 comments Download
D simple_regex.h View 1 chunk +0 lines, -166 lines 0 comments Download
D sockets.h View 1 chunk +0 lines, -235 lines 0 comments Download
D syserror.h View 1 chunk +0 lines, -194 lines 0 comments Download
M tests/Makefile View 1 chunk +10 lines, -10 lines 0 comments Download
A + tests/alias_test.cpp View 2 chunks +11 lines, -11 lines 0 comments Download
A + tests/array_test.cpp View 2 chunks +25 lines, -25 lines 0 comments Download
M tests/bignum_test.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
A + tests/binding_test.cpp View 1 chunk +8 lines, -8 lines 0 comments Download
M tests/bit_buffer_test.cpp View 1 chunk +1 line, -1 line 0 comments Download
A + tests/datatype_test.cpp View 6 chunks +223 lines, -223 lines 0 comments Download
A + tests/dirent_test.cpp View 2 chunks +34 lines, -34 lines 0 comments Download
M tests/fake_language_test.cpp View 83 chunks +116 lines, -116 lines 0 comments Download
A + tests/field_test.cpp View 4 chunks +76 lines, -76 lines 0 comments Download
M tests/filesystem_test.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M tests/keyed_vector_test.cpp View 9 chunks +30 lines, -29 lines 0 comments Download
M tests/magic_regs_test.cpp View 1 chunk +13 lines, -11 lines 0 comments Download
A + tests/path_test.cpp View 2 chunks +396 lines, -396 lines 0 comments Download
D tests/pp_alias_test.cpp View 1 chunk +0 lines, -28 lines 0 comments Download
D tests/pp_array_test.cpp View 1 chunk +0 lines, -65 lines 0 comments Download
D tests/pp_binding_test.cpp View 1 chunk +0 lines, -19 lines 0 comments Download
D tests/pp_datatype_test.cpp View 1 chunk +0 lines, -611 lines 0 comments Download
D tests/pp_dirent_test.cpp View 1 chunk +0 lines, -75 lines 0 comments Download
D tests/pp_field_test.cpp View 1 chunk +0 lines, -216 lines 0 comments Download
D tests/pp_path_test.cpp View 1 chunk +0 lines, -808 lines 0 comments Download
D tests/pp_regbits_test.cpp View 1 chunk +0 lines, -155 lines 0 comments Download
D tests/pp_register_test.cpp View 1 chunk +0 lines, -171 lines 0 comments Download
D tests/pp_scope_test.cpp View 1 chunk +0 lines, -407 lines 0 comments Download
M tests/printfxx_test.cpp View 1 chunk +1 line, -1 line 0 comments Download
A + tests/regbits_test.cpp View 3 chunks +83 lines, -83 lines 0 comments Download
M tests/regex_test.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
A + tests/register_test.cpp View 2 chunks +74 lines, -74 lines 0 comments Download
A + tests/scope_test.cpp View 2 chunks +125 lines, -125 lines 0 comments Download
M tests/shared_object_test.cpp View 1 chunk +1 line, -1 line 0 comments Download
M tests/sockets_test.cpp View 22 chunks +80 lines, -80 lines 0 comments Download
M tests/syserror_test.cpp View 1 chunk +46 lines, -46 lines 0 comments Download
M tests/test_binding.h View 2 chunks +18 lines, -18 lines 0 comments Download
M tests/test_helpers.h View 2 chunks +3 lines, -3 lines 0 comments Download
M tests/test_helpers.cpp View 5 chunks +15 lines, -15 lines 0 comments Download
A + util/bignum.h View 3 chunks +6 lines, -6 lines 0 comments Download
util/bignum.h View 3 chunks +6 lines, -6 lines 0 comments Download
A + util/bignum_lambda.h View 2 chunks +3 lines, -3 lines 0 comments Download
util/bignum_lambda.h View 2 chunks +3 lines, -3 lines 0 comments Download
A + util/bit_buffer.h View 5 chunks +9 lines, -9 lines 0 comments Download
util/bit_buffer.h View 5 chunks +9 lines, -9 lines 0 comments Download
A + util/filesystem.h View 3 chunks +5 lines, -5 lines 0 comments Download
util/filesystem.h View 3 chunks +5 lines, -5 lines 0 comments Download
A + util/keyed_vector.h View 2 chunks +5 lines, -4 lines 0 comments Download
util/keyed_vector.h View 2 chunks +5 lines, -4 lines 0 comments Download
A + util/printfxx.h View 2 chunks +7 lines, -5 lines 0 comments Download
util/printfxx.h View 2 chunks +7 lines, -5 lines 0 comments Download
A + util/shared_object.h View 2 chunks +3 lines, -3 lines 0 comments Download
util/shared_object.h View 2 chunks +3 lines, -3 lines 0 comments Download
A + util/simple_regex.h View 2 chunks +3 lines, -3 lines 0 comments Download
util/simple_regex.h View 2 chunks +3 lines, -3 lines 0 comments Download
A + util/sockets.h View 12 chunks +27 lines, -27 lines 0 comments Download
util/sockets.h View 12 chunks +27 lines, -27 lines 0 comments Download
A + util/syserror.h View 3 chunks +87 lines, -87 lines 0 comments Download
util/syserror.h View 3 chunks +87 lines, -87 lines 0 comments Download
A version.h View 1 chunk +26 lines, -0 lines 0 comments Download
M version.cpp View 1 chunk +15 lines, -10 lines 0 comments Download

Messages

Total messages: 1
thockin
16 years, 8 months ago (2009-11-05 07:21:05 UTC) #1

          
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b