bug-indent
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Formatting self-defined type C pointers with indent and typedef usually.


From: eddie
Subject: Formatting self-defined type C pointers with indent and typedef usually.
Date: Thu, 14 Jan 2016 03:24:02 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0

Hi indent developers team, packagers, community...

Why *indent* put a /space/ between self-defined (like /SDL_Renderer/ ***) *pointers* and not between normal /*types*/ pointers like char ***, int ***.

And second *indent* make the same misstake (/or error at your convienence/) with some /*types*/ defined in <stdint.h>, like uint8_t, int8_t.
I enjoy to abuse of simple <stdint.h> *defined* */types/* because:

an unsigned integer on an octet is explicit defined as:

uint8_t var ; // An unsigned integer is an number without sign.

instead of

unsigned char var ; // a character is a character.

And:

unsigned short var ; // is not short to write.

Instead of

uint16_t var ; // is clearer to understand that's an unsigned integer on 2 bytes (if an octet is 8).

*???*

Else I would not hesitated before formatting my code, with *indent*, in /fear/ of `/coding-standart errors`/.



--
3D imaging web-site: www.3dreaming-imaging.net <http://www.3dreaming-imaging.net/> International web-site: www.open-source-projects.net <http://www.open-source-projects.net/>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]