LINUX.ORG.RU

История изменений

Исправление shdown, (текущая версия) :

cms/basesubs.cpp, между строками 366 и 367 пропущен break. На такой fall-through показывают предупреждение современные версии компиляторов. Это про такую фичу там написано «(idiotic) “new features” of later gcc versions»?

И tolower и toupper используются неправильно (у них «If the value of ch is not representable as unsigned char and does not equal EOF, the behavior is undefined»). По поводу интерпретации этих слов см. комментарий в glibc:

ISO C requires that the ctype functions work for `unsigned char' values and for EOF; we also support negative `signed char' values for broken old programs.

Исходная версия shdown, :

cms/basesubs.cpp, между строками 366 и 367 пропущен break. На такой fall-through показывают предупреждение современные версии компиляторов. Это про такую фичу там написано «(idiotic) “new features” of later gcc versions»?

И tolower и toupper используются неправильно (у них «If the value of ch is not representable as unsigned char and does not equal EOF, the behavior is undefined»). По поводу интерпретации этих слов см. комментарий в glibc:

ISO C requires that the ctype functions work for `unsigned char' values and for EOF; we also support negative `signed char' values for broken old programs.