'prog_char' does not name a type error

I suspect a search-and-replace changing "prog_" to "" will rectify the situation.