cpp-prototype: reworking pointers and related logic, tabs -> spaces

Signed-off-by: Benn Snyder <benn.snyder@gmail.com>