Added argument const-correctness to the functions declared in p_spec.h