mirror of https://github.com/speeduino/wiki.js.git
docs: update dev/Style_code
This commit is contained in:
parent
1d13942019
commit
bafab3ce9a
|
@ -2,7 +2,7 @@
|
||||||
title: Рруководство по стилю Style Guide
|
title: Рруководство по стилю Style Guide
|
||||||
description: Style guidelines used within the Speeduino firmware
|
description: Style guidelines used within the Speeduino firmware
|
||||||
published: true
|
published: true
|
||||||
date: 2021-01-05T12:16:20.242Z
|
date: 2021-01-05T12:31:24.889Z
|
||||||
tags:
|
tags:
|
||||||
editor: markdown
|
editor: markdown
|
||||||
dateCreated: 2021-01-02T04:57:03.173Z
|
dateCreated: 2021-01-02T04:57:03.173Z
|
||||||
|
@ -19,16 +19,16 @@ Speeduino стремится к соблюдению стандарта коди
|
||||||
|
|
||||||
В программных кодах ('.ino') элементы должны располагаться в следующей последовательности:
|
В программных кодах ('.ino') элементы должны располагаться в следующей последовательности:
|
||||||
|
|
||||||
1. A mandatory header comment describing the purpose of the file
|
1. Обязательный комментарий к заголовку, описывающий назначение файла
|
||||||
2. included files (`#include`)
|
2. включенные файлы (`#include`)
|
||||||
3. defines (`#define`)
|
3. определения (`#define`)
|
||||||
4. local struct typedefs
|
4. локальные типы структуры local struct typedefs
|
||||||
5. local prototypes
|
5. локальные прототипы local prototypes
|
||||||
6. Definitions of any global vars
|
6. Определения любых глобальных переменных global vars
|
||||||
7. Main function (if present)
|
7. Основная функция (при наличии) Main function
|
||||||
8. Local functions
|
8. Локальные функции Local functions
|
||||||
|
|
||||||
In a C header (`.h`) file items must be arranged in the following sequence:
|
В заголовке C (`.h`) элементы файла должны располагаться в следующей последовательности:
|
||||||
|
|
||||||
1. Header comment
|
1. Header comment
|
||||||
2. ifndef guard
|
2. ifndef guard
|
||||||
|
|
Loading…
Reference in New Issue