Changed to c-style comments. Placed locals before code. Added initialization of local value ret in curses_block.