doc: Fix up symver attribute documentation
When looking at the symver documentation, I've noticed a couple of syntax errors in it. 2021-04-01 Jakub Jelinek <jakub@redhat.com> * doc/extend.texi (symver attribute): Fix up syntax errors in the examples.
This commit is contained in:
parent
5b9a65ecbe
commit
7b478ede2a
1 changed files with 3 additions and 3 deletions
|
@ -3851,13 +3851,13 @@ output.
|
|||
One can also define multiple version for a given symbol.
|
||||
|
||||
@smallexample
|
||||
__attribute__ ((__symver__ ("foo@@VERS_2"), ("foo@@VERS_3")))
|
||||
__attribute__ ((__symver__ ("foo@@VERS_2"), __symver__ ("foo@@VERS_3")))
|
||||
int symver_foo_v1 (void)
|
||||
@{
|
||||
@}
|
||||
|
||||
__attribute__ ((__symver__ ("bar@@VERS_2"))))
|
||||
__attribute__ ((__symver__ ("bar@@VERS_3"))))
|
||||
__attribute__ ((__symver__ ("bar@@VERS_2")))
|
||||
__attribute__ ((__symver__ ("bar@@VERS_3")))
|
||||
int symver_bar_v1 (void)
|
||||
@{
|
||||
@}
|
||||
|
|
Loading…
Add table
Reference in a new issue