* fix dangling cstring on error return * remove some useless inlines * less mallocs in shortlog * proc -> func * rename test