Add missing declarations.

* This way clang emits no warnings about missing declarations for
  externally visible functions.
* Also, merge improvements to core.c and core_cf.c from ppm.
2 jobs for master in 28 seconds (queued for 2 seconds)
Status Name Job ID Coverage
  Test
passed pages #22995
doxygen

00:00:28

 
  Deploy
passed pages:deploy

00:00:08