You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 22, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: Contributing.md
+5-3
Original file line number
Diff line number
Diff line change
@@ -74,10 +74,12 @@ color := $0787
74
74
75
75
The following is still very incomplete - if in doubt please look at existing sourcefiles and adapt to the existing style
76
76
77
-
* Your files should obey the C89 standard.
77
+
* Your files should generally obey the C89 standard, with a few C99 things (this is a bit similar to what cc65 itself supports). The exceptions are:
78
+
* use stdint.h for variables that require a certain bit size
79
+
* In printf-style functions use the PRIX64 (and similar) macros to deal with 64bit values (from inttypes.h)
80
+
This list is not necessarily complete - if in doubt, please ask.
78
81
* We generally have a "no warnings" policy
79
-
* Warnings must not be hidden by using typecasts - fix the code instead
80
-
* In printf-style functions use the PRIX64 (and similar) macros to deal with 64bit values
82
+
* Warnings must not be hidden by using typecasts - fix the code instead
81
83
* The normal indentation width should be four spaces.
82
84
* You must use ANSI C comments (```/* */```); you must not use C++ comments (```//```).
83
85
* When you add functions to an existing file, you should separate them by the same number of blank lines that separate the functions that already are in that file.
0 commit comments