21. 3.2
The
spirit
of
C,
AddiWonal
Principles
for
C1X
ISO/IEC
JTC1
SC22WG14
N1250
12.
Trust
the
programmer,
as
a
goal,
is
outdated
in
respect
to
the
security
and
safety
programming
communiWes.
While
it
should
not
be
totally
disregarded
as
a
facet
of
the
spirit
of
C,
the
C1Xversion
of
the
C
Standard
should
take
into
account
that
programmers
need
the
ability
to
check
their
work.
13.
Unlike
for
C9X,
the
consensus
at
the
London
meeWng
was
that
there
should
be
no
invenWon,
without
excepWon.
Only
those
features
that
have
a
history
and
are
in
common
use
by
a
commercial
implementaWon
should
be
considered.
Also
there
must
be
care
to
standardize
these
features
in
a
way
that
would
make
the
Standard
and
the
commercial
implementaWon
compaWble.
14.
MigraWon
of
an
exisWng
code
base
is
an
issue.
The
ability
to
mix
and
match
C89,
C99,
and
C1X
based
code
is
a
feature
that
should
be
considered
for
each
proposal.
2015/05/23
(c)kaizen@wh.commufa.jp,
@kaizen_nagoya
21
23. • 8
5.2.4.2.2
CharacterisWcs
of
floaWng
types
<float.h>
NO
O
• 9
6.2.7
CompaWble
type
and
composite
type
XXX
X
• 13
6.4.5
String
literals
:Example
XO
O
• 19
6.5.2.2
FuncWon
calls:
Example
XXX
X
• 21
6.5.2.4
Posgix
increment
and
decrement
operators:note
98)
XO
XO
• 28
6.5.16.2
Compound
assignment:
Note
113)
XO
XO
• 33
6.7.3
Type
qualifiers
//Examples
XO
XO
• 36
6.7.6.1
Pointer
declarators
//
Example
LM
LM
• 39
6.7.7
Type
names
XXX
XX
• 42
6.8.3
Expression
and
null
statements
//
Examples
OO
OX
• 54
6.10.3.5
Scope
of
macro
definiWons
//Examples
XXX
X
• 65
7.17.2.1
The
ATOMIC_VAR_INIT
macro
//
Example
XO
XO
• 66
7.17.2.2
The
atomic_init
generic
funcWon
//
ExampleOO
O
• 67
7.17.3
Order
and
consistency
//NOTES
3
XO
XO
• 68
7.17.7.4
The
atomic_compare_exchange
generic
funcWons
//
Example
XO
XO
• 69
7.17.8
Atomic
flag
type
and
operaWons
//
Example
XO
XO
• 73
7.22.2.2
The
srand
funcWon
//
Example
OO
O,Gだと結果終わらない
• 85
F.9.1
Global
transformaWons
//
for
example
OO
GCC/LVM結果異なる
• 93
K.3.5.3.2
The
fscanf_s
funcWon
//
Examples
XXO
• 94
K.3.7.1.4
The
strncpy_s
funcWon
XXX
• 95
K.3.7.2.2
The
strncat_s
funcWon
//
Example
XXX
• 96
K.3.7.3.1
The
strtok_s
funcWon
//
Example
XXO
• 97
K.3.9.2.1.2
The
wcsncpy_s
funcWon
//
Example
XXX
• 98
K.3.9.2.2.2
The
wcsncat_s
funcWon
//
Example
XXX
• 99
K.3.9.2.3.1
The
wcstok_s
funcWon
//
Example
XXO
41. 6.5
CPU間の差異
• POSIX
ISO/IEC
9945-‐1:1990
InformaWon
technology
-‐-‐
Portable
OperaWng
System
Interface
(POSIX)
-‐-‐
Part
1:
System
ApplicaWon
Program
Interface
(API)
[C
Language]
– OSとC言語の境界規定
• Linux:
ISO/IEC
23360-‐1:2006
Linux
Standard
Base
(LSB)
core
specificaWon
3.1
-‐-‐
Part
1:
Generic
specificaWon
CPUごとに規定
– ISO/IEC
23360-‐2:2006
Part
2:
SpecificaWon
for
IA32
architecture
– ISO/IEC
23360-‐3:2006
Part
3:
SpecificaWon
for
IA64
architecture
– ISO/IEC
23360-‐4:2006
Part
4:
SpecificaWon
for
AMD64
architecture
– ISO/IEC
23360-‐5:2006
Part
5:
SpecificaWon
for
PPC32
architecture
– ISO/IEC
23360-‐6:2006
Part
6:
SpecificaWon
for
PPC64
architecture
– ISO/IEC
23360-‐7:2006
Part
7:
SpecificaWon
for
S390
architecture
– ISO/IEC
23360-‐8:2006
Part
8:
SpecificaWon
for
S390X
architecture