From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=60812 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pi31o-0004se-1T for qemu-devel@nongnu.org; Wed, 26 Jan 2011 05:55:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pi31m-0006nP-Vt for qemu-devel@nongnu.org; Wed, 26 Jan 2011 05:55:07 -0500 Received: from mx1.redhat.com ([209.132.183.28]:15176) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pi31m-0006n4-Oo for qemu-devel@nongnu.org; Wed, 26 Jan 2011 05:55:06 -0500 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id p0QAt0Ak017500 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 26 Jan 2011 05:55:01 -0500 From: Jes.Sorensen@redhat.com Date: Wed, 26 Jan 2011 11:54:58 +0100 Message-Id: <1296039298-18022-1-git-send-email-Jes.Sorensen@redhat.com> Subject: [Qemu-devel] [PATCH] Add documentation for STRTOSZ_DEFSUFFIX_ macros List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: kwolf@redhat.com Cc: qemu-devel@nongnu.org, armbru@redhat.com From: Jes Sorensen Signed-off-by: Jes Sorensen --- 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' -- 1.7.3.4