Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FiXos
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FiXos core team
FiXos
Wiki
programming style
Changes
Page history
New page
Templates
Clone repository
Typoooooo
authored
10 years ago
by
Eiyeron Fulmincendii
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
programming-style.markdown
+4
-2
4 additions, 2 deletions
programming-style.markdown
with
4 additions
and
2 deletions
programming-style.markdown
View page @
72a16c99
...
...
@@ -11,13 +11,15 @@ Prefixes are given to public variables or all functions and is based on the file
-
static variable :
`static type _private_variable`
-
pointer :
`type *pointer_to_something`
## Naming functions
-
normal and static :
`(static) type function(type argument, type *pointer) {`
-
normal and static :
`(static) type function(type argument, type *pointer)
{`
-
function pointer : inconsistent and should be fixed.
## Code format
Here's a sample on how FiXos code should look. (Precisions shouldbe given on spacing, space v.s. tabs, using blank lines, etc...)
```
c
void
sample_function_1
(
int
c
)
{
void
sample_function_1
(
int
c
)
{
int
a
;
float
*
b
;
...
...
This diff is collapsed.
Click to expand it.