Miscellaneous small updates to release notes.

This commit is contained in:
Stephen Heumann 2023-04-30 21:36:23 -05:00
parent 938fa96503
commit 118e326ac9

View File

@ -317,10 +317,6 @@ p. 352
If a dup() call is successful, it actually returns the new file ID (a non-negative integer).
p. 355
If an fcntl() call using F_DUPFD is successful, it actually returns the new file ID (a non-negative integer).
p. 353
All error numbers used by errno are defined in <errno.h>, not <math.h>.
@ -331,6 +327,10 @@ p. 354
The discussion of abort() should note that it will call raise(SIGABRT) before exiting. Accordingly, if a SIGABRT handler was previously registered via a call to signal(), it will be executed.
p. 355
If an fcntl() call using F_DUPFD is successful, it actually returns the new file ID (a non-negative integer).
p. 356
fgetpos() and fsetpos() actually set errno to EIO if there is an error.
@ -545,7 +545,7 @@ The CX_LIMITED_RANGE pragma relates to complex arithmetic, which ORCA/C does not
type-name ':' assignment-expression |
default ':' assignment-expression
The generic-assoc-list provides a list of associations of types with expressions (and optionally a default association). If the type of the the initial expression is compatible with one of those in the generic-assoc-list, the generic selection expression evaluates to the expression specified in that association. If there is no compatible type but there is a default association, the expression specified there is used. It is an error if there is no suitable association. Only the expression from the selected association is evaluated and becomes the value of the overall generic selection expression; the initial expression and all those in other associations are not evaluated.
The generic-assoc-list provides a list of associations of types with expressions (and optionally a default association). If the type of the initial expression is compatible with one of those in the generic-assoc-list, the generic selection expression evaluates to the expression specified in that association. If there is no compatible type but there is a default association, the expression specified there is used. It is an error if there is no suitable association. Only the expression from the selected association is evaluated and becomes the value of the overall generic selection expression; the initial expression and all those in other associations are not evaluated.
As an example, this expression evaluates to 2 because the type of 1+2 is int:
@ -915,7 +915,7 @@ int vsnprintf(char * restrict s, size_t n, const char * restrict format,
These are equivalent to sprintf and vsprintf, except that they take an additional argument giving the maximum number of characters to be written. If n is 0, no characters are written. Otherwise, at most n-1 characters are written based on the format string, followed by a terminating null character. They return the number of characters (not including the terminating null character) that would have been written if there was no size limit.
3. (C99) The vscanf(), vfscanf(), anf vsscanf() functions have been added:
3. (C99) The vscanf(), vfscanf(), and vsscanf() functions have been added:
#include <stdarg.h>
#include <stdio.h>