Minor cleanups and typo fixing.
This commit is contained in:
parent
6296201310
commit
48a54d8126
9
c.texi
9
c.texi
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue