From 659d98ee3391f09108de188eb58ea76f74e60f7f Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 3 Jul 2008 22:46:19 +0200 Subject: add a simple string pool generator --- atasmart.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'atasmart.c') diff --git a/atasmart.c b/atasmart.c index 2f1222f..f9eb0c8 100644 --- a/atasmart.c +++ b/atasmart.c @@ -698,6 +698,12 @@ typedef struct SkSmartAttributeInfo { SkSmartAttributeUnit unit; } SkSmartAttributeInfo; +#ifndef STRINGPOOL +#define P(x) x +#endif + +/* %STRINGPOOLSTART% */ + /* This data is stolen from smartmontools */ static const SkSmartAttributeInfo const attribute_info[255] = { [1] = { "raw-read-error-rate", SK_SMART_ATTRIBUTE_UNIT_NONE }, @@ -749,6 +755,8 @@ static const SkSmartAttributeInfo const attribute_info[255] = { [250] = { "read-error-retry-rate", SK_SMART_ATTRIBUTE_UNIT_NONE } }; +/* %STRINGPOOLSTOP% */ + static void make_pretty(SkSmartAttributeParsedData *a) { uint64_t fourtyeight; -- cgit