pgm 10.1 - clarify error handling function names; exit from pop() directly to quiet --Wreturn-type from gcc
cleaner else-less logic makes gcc and I both happy