From 6fc49c18540938cd4699c1eb8cb05bd00ff9f59c Mon Sep 17 00:00:00 2001 From: Keith Randall Date: Fri, 19 Jul 2013 11:19:18 -0700 Subject: runtime: cleanup: use ArgsSizeUnknown to mark all functions whose argument size is unknown (C vararg functions, and assembly code without an explicit specification). We used to use 0 to mean "unknown" and 1 to mean "zero". Now we use ArgsSizeUnknown (0x80000000) to mean "unknown". R=golang-dev, rsc CC=golang-dev https://golang.org/cl/11590043 --- src/pkg/runtime/funcdata.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/pkg/runtime/funcdata.h') diff --git a/src/pkg/runtime/funcdata.h b/src/pkg/runtime/funcdata.h index 8fcadcb611..850288bf64 100644 --- a/src/pkg/runtime/funcdata.h +++ b/src/pkg/runtime/funcdata.h @@ -11,3 +11,9 @@ // To be used in assembly. #define ARGSIZE(n) PCDATA $PCDATA_ArgSize, $n + +// ArgsSizeUnknown is set in Func.argsize to mark all functions +// whose argument size is unknown (C vararg functions, and +// assembly code without an explicit specification). +// This value is generated by the compiler, assembler, or linker. +#define ArgsSizeUnknown 0x80000000 -- cgit v1.3