gatzka / cio

An ANSI C Conformant I/O Library.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Remove object oriented stuff

gatzka opened this issue · comments

Lot's of functions are called via function pointers sitting in structs. This effectively prevents compilers to perform link time optimization (LTO) and is in general no the most efficient way to do. It also make the structs smaller, so less memory (RAM) is consumed.

The original intention was to make unit testing easier. This is not true (the functions could be easily mocked by the fff).