From patchwork Wed Jan 26 10:54:58 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Add documentation for STRTOSZ_DEFSUFFIX_ macros Date: Wed, 26 Jan 2011 00:54:58 -0000 From: Jes Sorensen X-Patchwork-Id: 80495 Message-Id: <1296039298-18022-1-git-send-email-Jes.Sorensen@redhat.com> To: kwolf@redhat.com Cc: qemu-devel@nongnu.org, armbru@redhat.com From: Jes Sorensen Signed-off-by: Jes Sorensen Acked-by: Markus Armbruster --- qemu-common.h | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/qemu-common.h b/qemu-common.h index c766b99..505e576 100644 --- a/qemu-common.h +++ b/qemu-common.h @@ -153,6 +153,13 @@ int qemu_fls(int i); int qemu_fdatasync(int fd); int fcntl_setfl(int fd, int flag); +/* + * strtosz() suffixes used to specify the default treatment of an + * argument passed to strtosz() without an explicit suffix. + * These should be defined using upper case characters in the range + * A-Z, as strtosz() will use qemu_toupper() on the given argument + * prior to comparison. + */ #define STRTOSZ_DEFSUFFIX_TB 'T' #define STRTOSZ_DEFSUFFIX_GB 'G' #define STRTOSZ_DEFSUFFIX_MB 'M'