[devel] [drepper на redhat.com: glibc depends on gcc 3.2+ -> C99]
Dmitry V. Levin
=?iso-8859-1?q?ldv_=CE=C1_altlinux=2Eorg?=
Пн Сен 30 15:02:06 MSD 2002
FYI
----- Forwarded message from Ulrich Drepper <drepper на redhat.com> -----
Date: Sun, 29 Sep 2002 18:05:31 -0700
From: Ulrich Drepper <drepper на redhat.com>
To: libc-alpha на sources.redhat.com
Subject: glibc depends on gcc 3.2+ -> C99
The problem with uninitialized local variables reminds me of something I
wanted to point out for some time. glibc now depends on gcc 3.2 which
as a side effect has that glibc functions can now be written in C99.
This excludes functions which are also used outside the project but all
others can use the new language features.
Among other nice additions this means variables can now defined anywhere
in a block. Just as in C++. This means there is no need to define a
variable until it is really needed and then the variable should be
initialized right away.
This has the potential or avoiding an entire class of bugs.
--
--------------. ,-. 444 Castro Street
Ulrich Drepper \ ,-----------------' \ Mountain View, CA 94041 USA
Red Hat `--' drepper at redhat.com `---------------------------
----- End forwarded message -----
--
ldv
----------- следующая часть -----------
Было удалено вложение не в текстовом формате...
Имя : =?iso-8859-1?q?=CF=D4=D3=D5=D4=D3=D4=D7=D5=C5=D4?=
Тип : application/pgp-signature
Размер : 189 байтов
Описание: =?iso-8859-1?q?=CF=D4=D3=D5=D4=D3=D4=D7=D5=C5=D4?=
Url : <http://lists.altlinux.org/pipermail/devel/attachments/20020930/53c295b0/attachment-0001.bin>
Подробная информация о списке рассылки Devel