From 83b87392042cb138c3761ad009e30784fb551b76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Gustavsson?= Date: Fri, 3 Nov 2017 10:15:57 +0100 Subject: 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. --- erts/emulator/utils/beam_makeops | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'erts/emulator/utils') 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 { -- cgit v1.2.3