Add global variable decl in snippets
Add global variable decl in snippets

The code in these snippets don't really work without the global
variable declaration.

zhangsu/ccspec,zhangsu/ccspec,zhangsu/ccspec