-
Notifications
You must be signed in to change notification settings - Fork 1
C code style
Michał Zalewski edited this page Mar 6, 2020
·
2 revisions
Throughout the project's C code the Linux kernel coding style is used with following amendments:
Indentation is realised with tab characters, so indentation width is to be set on the side of the developer.
Module-scope variable names should be prefixed with g_
.
Program-scope variables should be avoided.
Function names should be prefixed with <name of module>_
.
Functions not belonging to modules public interface should also be prefixed with _
.
When typedefs are used, type names should end with _t
.
goto
instructions should not be used.
Emulator procesora Sharp LR35902, A. Misiak, Ł. Mrugała, M. Zalewski
Project related:
RPI related: