1
0
mirror of https://github.com/MariaDB/server.git synced 2025-04-18 21:44:20 +03:00

8 Commits

Author SHA1 Message Date
Vladislav Vaintroub
3a81664cb8 Review fixes
- explain why "long" is deprecated, point out to Wikipedia 64bit data models article.
- fix typo
2025-03-03 14:54:40 +02:00
Vladislav Vaintroub
1fecf581ac Rewrite the 'Types' chapter in coding standards.
Problem - current coding standards explicitly discourages
use of int, char, short etc, and recommends fixed types instead.

This is overly pedantic. The real problem, and the only problem we have
with types concerning portability, the inappropriate use of `long` is
too easy to overlook.

Thus,un-deprecate the types that are portable, for all practical purpose
i.e int, short, long long. Warning that char might be unsigned, though,
all compilers have appropriate flags.

Yet, use strongly wording to deprecate long and ulong, those are the types
that create real portability problems.
2025-03-03 14:54:40 +02:00
Andrew Hutchings
e6df06d40d Update markdown files for main branch
Coding standards and PR template now reference `main`.
2024-08-28 11:49:07 +10:00
Robin Newhouse
be4ac773b0 Explicitly recommend target branches in CODING_STANDARDS
When making commits, the branches to target are not clearly defined in
public documentation, and frequently change. As the development branch
and the earliest maintained branches progress, it should be reflected in
CODING_STANDARDS.md.

All new code of the whole pull request, including one or several files
that are either new files or modified ones, are contributed under the
BSD-new license. I am contributing on behalf of my employer Amazon Web
Services.
2023-12-14 16:32:42 +00:00
Andrew Hutchings
b6e7b6b7b2 Add preprocessor whitespace to CODING_STANDARDS.md 2023-07-12 09:33:50 +10:00
Ahmed Ibrahim
c4d6d6fd81 CODING_STANDARDS: Add variable initializations and functions spacing 2023-03-30 14:14:19 +11:00
Monty
f74bb51b30 Updated coding standards 2023-02-14 19:25:08 +02:00
Andrew Hutchings
42f53c763a Add CODING_STANDARDS.md file
This is intended to be the start of a (not complete) coding standards
document we can refer contributors to. This can be modified to add more
nuances and become stricter over time. It can also have additional
content for other file types (CMake, YACC, etc).

It does not cover plugins which should each individually have their own coding
standards.
2023-02-03 15:47:17 +11:00