aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/utils/beam_makeops
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2017-11-03 10:15:57 +0100
committerBjörn Gustavsson <[email protected]>2017-11-06 08:08:09 +0100
commit83b87392042cb138c3761ad009e30784fb551b76 (patch)
tree9c0fc739bb8e646b658fc8aa912dc071eb072b02 /erts/emulator/utils/beam_makeops
parentfe35a4f6a26a1242fef0b7d728403d162812679c (diff)
downloadotp-83b87392042cb138c3761ad009e30784fb551b76.tar.gz
otp-83b87392042cb138c3761ad009e30784fb551b76.tar.bz2
otp-83b87392042cb138c3761ad009e30784fb551b76.zip
Rename the built-in macro ARG_SIZE() to OPERAND_SIZE()
Although the terminology "arguments" is used in the comments for beam_makeops, the documentation in beam_makeops.md consistenly use the term "operand". Since the name of the macro is user-facing, it should be consistent with the documentation.
Diffstat (limited to 'erts/emulator/utils/beam_makeops')
-rwxr-xr-xerts/emulator/utils/beam_makeops6
1 files changed, 3 insertions, 3 deletions
diff --git a/erts/emulator/utils/beam_makeops b/erts/emulator/utils/beam_makeops
index 296fbc9d5f..452e070482 100755
--- a/erts/emulator/utils/beam_makeops
+++ b/erts/emulator/utils/beam_makeops
@@ -308,8 +308,8 @@ if ($wordsize == 64) {
my %predef_macros =
(IS_PACKED => ['Expr'],
- ARG_POSITION => ['Expr'],
- );
+ OPERAND_POSITION => ['Expr'],
+);
foreach my $name (keys %predef_macros) {
my @args = @{$predef_macros{$name}};
my $body = join(':', map { '$' . $_ } @args);
@@ -1651,7 +1651,7 @@ sub expand_macro {
}
# Handle built-in macros.
- if ($name eq 'ARG_POSITION') {
+ if ($name eq 'OPERAND_POSITION') {
if ($body =~ /^I\[(\d+)\]$/) {
$body = $1;
} else {