Extend core logic to the caller

Modified: src/pointer-stack.c