Move global initialization to file_init()
commit26baaa1dc894b900a973d4dff60b40a9cbd54b86
authorPetr Tesarik <petr@tesarici.cz>
Tue, 18 Sep 2012 22:21:54 +0000 (19 00:21 +0200)
committerPetr Tesarik <petr@tesarici.cz>
Tue, 18 Sep 2012 22:21:54 +0000 (19 00:21 +0200)
tree5b6c2bbef2a92260381e71b6d7e0d2c4c51ef943
parentdb94a7d81354e62c7fd4f28ab8abe7664dedd6b5
Move global initialization to file_init()

This allows to hide implementation details (e.g. about fixups or file
access) under the file API.

The downside is that even if the new function is completely empty, gcc
will no longer be able to optimize it out.
src/file/file.c
src/file/file.h
src/main.c