Minor cleanups and typo fixing.

This commit is contained in:
Richard Stallman 2025-03-09 15:04:09 -04:00
parent 6296201310
commit 48a54d8126
1 changed files with 5 additions and 4 deletions

9
c.texi
View File

@ -9530,7 +9530,7 @@ by specifying the field name prefixed with a dot:
@example
struct point @{ int x; int y; @};
struct point foo = @{ .y = 42; @};
struct point foo = @{ .y = 42 @};
@end example
@noindent
@ -11587,8 +11587,9 @@ bar (int *array, int offset, int size)
@findex inline
To declare a function inline, use the @code{inline} keyword in its
definition. Here's a simple function that takes a pointer-to-@code{int}
and increments the integer stored there---declared inline.
definition. Here's code to define functions to access two fields
in a structure, and inlines them so that there is no cost to accessing
them by calling the functions.
@example
struct list
@ -11609,7 +11610,7 @@ list_second (struct list *p)
@}
@end example
optimized compilation can substitute the inline function's body for
Optimized compilation can substitute the inline function's body for
any call to it. This is called @emph{inlining} the function. It
makes the code that contains the call run faster, significantly so if
the inline function is small.