parent
473f7d0ee2
commit
a534d585f6
@ -0,0 +1,22 @@
|
||||
|
||||
the art of modern C programming
|
||||
===============================
|
||||
|
||||
(and how to not shoot yourself in the foot)
|
||||
-------------------------------------------
|
||||
|
||||
|
||||
- varying stack size
|
||||
- but also avoid too many allocs
|
||||
- gets (and stack overflows in general)
|
||||
- organisation and unique "namespaces"
|
||||
- loosely-coupled interfaces (with typedef-ing)
|
||||
- but don't abuse typedef
|
||||
- define and enum
|
||||
- calculate sizes at compile time (sizeof(array)/sizeof(element))
|
||||
- avoid macro hell
|
||||
- integer type size awareness
|
||||
- consistency and predictability
|
||||
- COMMENTS
|
||||
|
||||
http://www.hboehm.info/gc/
|
Loading…
Reference in new issue