-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
xdrgen: Add generator code for XDR width macros
Introduce logic in the code generators to emit maxsize (XDR width) definitions. In C, these are pre-processor macros. Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
- Loading branch information
1 parent
ce5a75d
commit e9e1e7e
Showing
15 changed files
with
107 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
{# SPDX-License-Identifier: GPL-2.0 #} | ||
#define {{ '{:<31}'.format(macro) }} ({{ width }}) |
3 changes: 3 additions & 0 deletions
3
tools/net/sunrpc/xdrgen/templates/C/pointer/maxsize/pointer.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{# SPDX-License-Identifier: GPL-2.0 #} | ||
#define {{ '{:<31}'.format(macro) }} \ | ||
({{ width }}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{# SPDX-License-Identifier: GPL-2.0 #} | ||
#define {{ '{:<31}'.format(macro) }} \ | ||
({{ width }}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{# SPDX-License-Identifier: GPL-2.0 #} | ||
#define {{ '{:<31}'.format(macro) }} \ | ||
({{ width }}) |
2 changes: 2 additions & 0 deletions
2
tools/net/sunrpc/xdrgen/templates/C/typedef/maxsize/fixed_length_opaque.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
{# SPDX-License-Identifier: GPL-2.0 #} | ||
#define {{ '{:<31}'.format(macro) }} ({{ width }}) |
2 changes: 2 additions & 0 deletions
2
tools/net/sunrpc/xdrgen/templates/C/typedef/maxsize/string.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
{# SPDX-License-Identifier: GPL-2.0 #} | ||
#define {{ '{:<31}'.format(macro) }} ({{ width }}) |
2 changes: 2 additions & 0 deletions
2
tools/net/sunrpc/xdrgen/templates/C/typedef/maxsize/variable_length_array.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
{# SPDX-License-Identifier: GPL-2.0 #} | ||
#define {{ '{:<31}'.format(macro) }} ({{ width }}) |
2 changes: 2 additions & 0 deletions
2
tools/net/sunrpc/xdrgen/templates/C/typedef/maxsize/variable_length_opaque.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
{# SPDX-License-Identifier: GPL-2.0 #} | ||
#define {{ '{:<31}'.format(macro) }} ({{ width }}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{# SPDX-License-Identifier: GPL-2.0 #} | ||
#define {{ '{:<31}'.format(macro) }} \ | ||
({{ width }}) |