dafky2000 / simplectemplate

Simple C Template library to expand placeholders in a template string, simple alternative to mustache.github.io that doesn't require JSON as data input.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Update with my coding style

dafky2000 opened this issue · comments

Style was attempted to match on mhwkb but for this library I would like to abandon Allman style and adopt K&R.

Some caveats:

  • Opening braces always on the same line.
  • You may omit braces for one-line statements

I'm sure i'll have more...

  • Use tabs, not spaces. If you like 4 space indentation set your tabstop to be 4 spaces! I like 2 space tabs. Use tabs and everyone wins.
  • Who cares about character line width... We live in the 21st century and word wrapping takes care of out woes. This mostly applies to comments, long code like that is likely not well understood and should be changed.

Closing now that travis is implemented for https://github.com/dafky2000/simplectemplate/tree/develop