-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Vladimir Kotal
committed
Mar 23, 2021
1 parent
aa933e0
commit c95b801
Showing
1 changed file
with
0 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1 @@ | ||
|
||
# Related to the int/size_t discussion above, make a new module for uint32_t et | ||
# al. It is in the spec as part of stdint.h. | ||
7.18.1.1 Exact-widthinteger types1The typedef nameintN_tdesignates a signed | ||
integer type with widthN,nopaddingbits, and a two’scomplement | ||
representation.Thus,int8_tdenotes a signed integertype with a width of | ||
exactly 8 bits.2The typedef nameuintN_tdesignates an unsigned integer type | ||
with widthN.Thus,uint24_tdenotes an unsigned integer type with a width of | ||
exactly 24 bits.3These types are optional.However, ifanimplementation | ||
provides integer types withwidths of 8, 16, 32, or 64 bits, no | ||
padding bits, and (for the signed types) that have atwo’scomplement | ||
representation, it shall define the corresponding typedef names | ||
|
||
# go through the chapter 2 of the Expert C programming | ||
# | ||
# sins of commision | ||
- add a module on what to watch when using a switch | ||
- adding labels allowed | ||
- default != defau1t | ||
- in an existing switch module, say that the break should have been the default | ||
behavior in the C design, and why | ||
- add a note to an existing module on concatenating string literals where this | ||
feature may get you in trouble (the Crayon example) | ||
- add to a module on static/extern functions that static should have been the | ||
default (and why) | ||
# sins of omission | ||
TBD | ||
# sins of mission | ||
TBD |