Code Conventions

From XOmB wiki
Jump to: navigation, search

This page or section is a stub. Please help by expanding it

This page is part of a series on Project Information.

Within the kernel code, certain code conventions will apply.

Whitespace

  • Unix Style Newlines
  • Hard Tabs
  • 4 spaces for 1 Tab

Identifiers

Type of Code Identifier Convention Method Example of Usage
Function Lower Camel Case doSomething()
C Function Underscored do_something()
Assembly Function Underscore Preceded _do_something()
Namespace, Class Pascal Case MyNameSpace
Global Constants Capitalized Underscore MY_CONSTANT_VAR