Commit 0d893a63 by Matt Kraai Committed by Matt Kraai

extend.texi: Change `@dots{}' to `/* @r{@dots{}} */' in examples.

	* doc/extend.texi: Change `@dots{}' to `/* @r{@dots{}} */'
	in examples.

From-SVN: r54960
parent 04a5176a
2002-06-24 Matt Kraai <kraai@alumni.cmu.edu>
* doc/extend.texi: Change `@dots{}' to `/* @r{@dots{}} */'
in examples.
2002-06-24 Art Haas <ahaas@neosoft.com> 2002-06-24 Art Haas <ahaas@neosoft.com>
* doc/extend.texi (Other Builtins): Change `...' to `@dots{}'. * doc/extend.texi (Other Builtins): Change `...' to `@dots{}'.
......
...@@ -552,7 +552,7 @@ __label__ @var{label}; ...@@ -552,7 +552,7 @@ __label__ @var{label};
or or
@example @example
__label__ @var{label1}, @var{label2}, @dots{}; __label__ @var{label1}, @var{label2}, /* @r{@dots{}} */;
@end example @end example
Local label declarations must come at the beginning of the statement Local label declarations must come at the beginning of the statement
...@@ -603,7 +603,7 @@ wherever a constant of that type is valid. For example: ...@@ -603,7 +603,7 @@ wherever a constant of that type is valid. For example:
@example @example
void *ptr; void *ptr;
@dots{} /* @r{@dots{}} */
ptr = &&foo; ptr = &&foo;
@end example @end example
...@@ -698,9 +698,9 @@ bar (int *array, int offset, int size) ...@@ -698,9 +698,9 @@ bar (int *array, int offset, int size)
int access (int *array, int index) int access (int *array, int index)
@{ return array[index + offset]; @} @{ return array[index + offset]; @}
int i; int i;
@dots{} /* @r{@dots{}} */
for (i = 0; i < size; i++) for (i = 0; i < size; i++)
@dots{} access (array, i) @dots{} /* @r{@dots{}} */ access (array, i) /* @r{@dots{}} */
@} @}
@end group @end group
@end example @end example
...@@ -760,10 +760,10 @@ bar (int *array, int offset, int size) ...@@ -760,10 +760,10 @@ bar (int *array, int offset, int size)
return array[index + offset]; return array[index + offset];
@} @}
int i; int i;
@dots{} /* @r{@dots{}} */
for (i = 0; i < size; i++) for (i = 0; i < size; i++)
@dots{} access (array, i) @dots{} /* @r{@dots{}} */ access (array, i) /* @r{@dots{}} */
@dots{} /* @r{@dots{}} */
return 0; return 0;
/* @r{Control comes here from @code{access} /* @r{Control comes here from @code{access}
...@@ -784,14 +784,14 @@ bar (int *array, int offset, int size) ...@@ -784,14 +784,14 @@ bar (int *array, int offset, int size)
@{ @{
__label__ failure; __label__ failure;
auto int access (int *, int); auto int access (int *, int);
@dots{} /* @r{@dots{}} */
int access (int *array, int index) int access (int *array, int index)
@{ @{
if (index > size) if (index > size)
goto failure; goto failure;
return array[index + offset]; return array[index + offset];
@} @}
@dots{} /* @r{@dots{}} */
@} @}
@end example @end example
...@@ -1354,7 +1354,7 @@ You can also use variable-length arrays as arguments to functions: ...@@ -1354,7 +1354,7 @@ You can also use variable-length arrays as arguments to functions:
struct entry struct entry
tester (int len, char data[len][len]) tester (int len, char data[len][len])
@{ @{
@dots{} /* @r{@dots{}} */
@} @}
@end example @end example
...@@ -1369,7 +1369,7 @@ use a forward declaration in the parameter list---another GNU extension. ...@@ -1369,7 +1369,7 @@ use a forward declaration in the parameter list---another GNU extension.
struct entry struct entry
tester (int len; char data[len][len], int len) tester (int len; char data[len][len], int len)
@{ @{
@dots{} /* @r{@dots{}} */
@} @}
@end example @end example
...@@ -1536,7 +1536,7 @@ Here is an example of an initializer with run-time varying elements: ...@@ -1536,7 +1536,7 @@ Here is an example of an initializer with run-time varying elements:
foo (float f, float g) foo (float f, float g)
@{ @{
float beat_freqs[2] = @{ f-g, f+g @}; float beat_freqs[2] = @{ f-g, f+g @};
@dots{} /* @r{@dots{}} */
@} @}
@end example @end example
...@@ -1825,7 +1825,7 @@ union type is equivalent to storing in a member of the union: ...@@ -1825,7 +1825,7 @@ union type is equivalent to storing in a member of the union:
@example @example
union foo u; union foo u;
@dots{} /* @r{@dots{}} */
u = (union foo) x @equiv{} u.i = x u = (union foo) x @equiv{} u.i = x
u = (union foo) y @equiv{} u.d = y u = (union foo) y @equiv{} u.d = y
@end example @end example
...@@ -1834,7 +1834,7 @@ You can also use the union cast as a function argument: ...@@ -1834,7 +1834,7 @@ You can also use the union cast as a function argument:
@example @example
void hack (union foo); void hack (union foo);
@dots{} /* @r{@dots{}} */
hack ((union foo) x); hack ((union foo) x);
@end example @end example
...@@ -1850,7 +1850,7 @@ C89 mode. For example, you could do: ...@@ -1850,7 +1850,7 @@ C89 mode. For example, you could do:
@example @example
int i; int i;
@dots{} /* @r{@dots{}} */
i++; i++;
int j = i + 2; int j = i + 2;
@end example @end example
...@@ -1913,9 +1913,9 @@ their own functions that never return. You can declare them ...@@ -1913,9 +1913,9 @@ their own functions that never return. You can declare them
void fatal () __attribute__ ((noreturn)); void fatal () __attribute__ ((noreturn));
void void
fatal (@dots{}) fatal (/* @r{@dots{}} */)
@{ @{
@dots{} /* @r{Print error message.} */ @dots{} /* @r{@dots{}} */ /* @r{Print error message.} */ /* @r{@dots{}} */
exit (1); exit (1);
@} @}
@end group @end group
...@@ -3956,7 +3956,7 @@ extern func () asm ("FUNC"); ...@@ -3956,7 +3956,7 @@ extern func () asm ("FUNC");
func (x, y) func (x, y)
int x, y; int x, y;
@dots{} /* @r{@dots{}} */
@end example @end example
It is up to you to make sure that the assembler names you choose do not It is up to you to make sure that the assembler names you choose do not
...@@ -4683,7 +4683,7 @@ data. For instance, you can write ...@@ -4683,7 +4683,7 @@ data. For instance, you can write
@smallexample @smallexample
static const int table[] = @{ static const int table[] = @{
__builtin_constant_p (EXPRESSION) ? (EXPRESSION) : -1, __builtin_constant_p (EXPRESSION) ? (EXPRESSION) : -1,
/* @dots{} */ /* @r{@dots{}} */
@}; @};
@end smallexample @end smallexample
...@@ -4759,7 +4759,7 @@ for (i = 0; i < n; i++) ...@@ -4759,7 +4759,7 @@ for (i = 0; i < n; i++)
a[i] = a[i] + b[i]; a[i] = a[i] + b[i];
__builtin_prefetch (&a[i+j], 1, 1); __builtin_prefetch (&a[i+j], 1, 1);
__builtin_prefetch (&b[i+j], 0, 1); __builtin_prefetch (&b[i+j], 0, 1);
/* @dots{} */ /* @r{@dots{}} */
@} @}
@end smallexample @end smallexample
...@@ -6778,7 +6778,7 @@ context. ...@@ -6778,7 +6778,7 @@ context.
@example @example
void fn (int *__restrict__ rptr, int &__restrict__ rref) void fn (int *__restrict__ rptr, int &__restrict__ rref)
@{ @{
@dots{} /* @r{@dots{}} */
@} @}
@end example @end example
...@@ -6792,7 +6792,7 @@ unaliased by using @code{__restrict__} as a member function qualifier. ...@@ -6792,7 +6792,7 @@ unaliased by using @code{__restrict__} as a member function qualifier.
@example @example
void T::fn () __restrict__ void T::fn () __restrict__
@{ @{
@dots{} /* @r{@dots{}} */
@} @}
@end example @end example
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment