From 566650da59cb3b83840321e1921714dcc3d66cb7 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Tue, 23 Sep 2003 16:26:16 +0000 Subject: [PATCH] Fix syntax of constant string array --- src/yaz-marc-sample.cpp | 93 +++++++++++++++++++++++------------------------ 1 file changed, 46 insertions(+), 47 deletions(-) diff --git a/src/yaz-marc-sample.cpp b/src/yaz-marc-sample.cpp index bb542ac..9895359 100644 --- a/src/yaz-marc-sample.cpp +++ b/src/yaz-marc-sample.cpp @@ -2,13 +2,12 @@ * Copyright (c) 2000-2001, Index Data. * See the file LICENSE for details. * - * $Id: yaz-marc-sample.cpp,v 1.3 2002-10-09 12:50:26 adam Exp $ + * $Id: yaz-marc-sample.cpp,v 1.4 2003-09-23 16:26:16 mike Exp $ */ #include static char *marc_records[] = { -{ "\x30\x30\x33\x36\x36\x6E\x61\x6D\x20\x20\x32\x32\x30\x30\x31\x36" "\x39\x38\x61\x20\x34\x35\x30\x30\x30\x30\x31\x30\x30\x31\x33\x30" "\x30\x30\x30\x30\x30\x30\x33\x30\x30\x30\x34\x30\x30\x30\x31\x33" @@ -31,8 +30,8 @@ static char *marc_records[] = { "\x20\x61\x20\x63\x6F\x6D\x70\x75\x74\x65\x72\x1E\x31\x20\x1F\x61" "\x50\x65\x6E\x67\x75\x69\x6E\x1E\x20\x20\x1F\x61\x38\x37\x31\x30" "\x1E\x20\x20\x1F\x61\x70\x2E\x20\x63\x6D\x2E\x1E\x20\x20\x1F\x61" - "\x20\x20\x20\x31\x31\x32\x32\x34\x34\x36\x36\x20\x1E\x1D" -},{ + "\x20\x20\x20\x31\x31\x32\x32\x34\x34\x36\x36\x20\x1E\x1D", + "\x30\x30\x33\x36\x36\x6E\x61\x6D\x20\x20\x32\x32\x30\x30\x31\x36" "\x39\x38\x61\x20\x34\x35\x30\x30\x30\x30\x31\x30\x30\x31\x33\x30" "\x30\x30\x30\x30\x30\x30\x33\x30\x30\x30\x34\x30\x30\x30\x31\x33" @@ -55,8 +54,8 @@ static char *marc_records[] = { "\x20\x61\x20\x63\x6F\x6D\x70\x75\x74\x65\x72\x1E\x31\x20\x1F\x61" "\x50\x65\x6E\x67\x75\x69\x6E\x1E\x20\x20\x1F\x61\x38\x37\x31\x30" "\x1E\x20\x20\x1F\x61\x70\x2E\x20\x63\x6D\x2E\x1E\x20\x20\x1F\x61" - "\x20\x20\x20\x31\x31\x32\x32\x34\x34\x36\x37\x20\x1E\x1D" -},{ + "\x20\x20\x20\x31\x31\x32\x32\x34\x34\x36\x37\x20\x1E\x1D", + "\x30\x31\x33\x36\x39\x63\x61\x6D\x20\x20\x32\x32\x30\x30\x32\x36" "\x35\x20\x69\x20\x34\x35\x30\x30\x30\x30\x31\x30\x30\x31\x38\x30" "\x30\x30\x30\x30\x30\x30\x33\x30\x30\x30\x34\x30\x30\x30\x31\x38" @@ -142,8 +141,8 @@ static char *marc_records[] = { "\x6F\x75\x69\x73\x2E\x1F\x62\x4E\x75\x63\x6C\x65\x61\x72\x20\x4D" "\x65\x64\x69\x63\x69\x6E\x65\x20\x44\x69\x76\x69\x73\x69\x6F\x6E" "\x2E\x1E\x20\x20\x1F\x61\x20\x20\x20\x37\x33\x30\x39\x30\x39\x32" - "\x34\x20\x2F\x2F\x72\x38\x32\x1E\x1D" -},{ + "\x34\x20\x2F\x2F\x72\x38\x32\x1E\x1D", + "\x30\x30\x39\x34\x32\x63\x61\x6D\x20\x20\x32\x32\x30\x30\x32\x35" "\x33\x31\x61\x20\x34\x35\x30\x30\x30\x30\x31\x30\x30\x31\x39\x30" "\x30\x30\x30\x30\x30\x30\x33\x30\x30\x30\x34\x30\x30\x30\x31\x39" @@ -202,8 +201,8 @@ static char *marc_records[] = { "\x32\x32\x2D\x1E\x32\x30\x1F\x61\x42\x69\x62\x6C\x69\x63\x61\x6C" "\x20\x52\x65\x73\x65\x61\x72\x63\x68\x20\x41\x73\x73\x6F\x63\x69" "\x61\x74\x65\x73\x2E\x1E\x20\x20\x1F\x61\x20\x20\x20\x37\x33\x32" - "\x30\x39\x36\x32\x32\x20\x2F\x2F\x72\x38\x32\x33\x1E\x1D" -},{ + "\x30\x39\x36\x32\x32\x20\x2F\x2F\x72\x38\x32\x33\x1E\x1D", + "\x30\x31\x30\x33\x33\x63\x61\x6D\x20\x20\x32\x32\x30\x30\x32\x35" "\x33\x20\x69\x20\x34\x35\x30\x30\x30\x30\x31\x30\x30\x32\x31\x30" "\x30\x30\x30\x30\x30\x30\x33\x30\x30\x30\x34\x30\x30\x30\x32\x31" @@ -268,8 +267,8 @@ static char *marc_records[] = { "\x73\x2E\x1F\x74\x4F\x63\x63\x61\x73\x69\x6F\x6E\x61\x6C\x20\x70" "\x61\x70\x65\x72\x20\x3B\x1F\x76\x6E\x6F\x2E\x20\x33\x2E\x1E\x20" "\x20\x1F\x61\x20\x20\x20\x37\x36\x33\x35\x37\x38\x39\x35\x20\x2F" - "\x4D\x41\x50\x2F\x72\x38\x32\x1E\x1D" -},{ + "\x4D\x41\x50\x2F\x72\x38\x32\x1E\x1D", + "\x30\x31\x30\x30\x30\x70\x61\x6D\x20\x20\x32\x32\x30\x30\x32\x32" "\x39\x20\x69\x20\x34\x35\x30\x30\x30\x30\x31\x30\x30\x31\x33\x30" "\x30\x30\x30\x30\x30\x30\x33\x30\x30\x30\x34\x30\x30\x30\x31\x33" @@ -332,8 +331,8 @@ static char *marc_records[] = { "\x75\x69\x73\x2E\x1F\x62\x42\x69\x6F\x6D\x65\x64\x69\x63\x61\x6C" "\x20\x43\x6F\x6D\x70\x75\x74\x65\x72\x20\x4C\x61\x62\x6F\x72\x61" "\x74\x6F\x72\x79\x2E\x1E\x20\x20\x1F\x61\x20\x20\x20\x37\x37\x30" - "\x30\x30\x33\x34\x38\x20\x1E\x1D" -},{ + "\x30\x30\x33\x34\x38\x20\x1E\x1D", + "\x30\x31\x34\x39\x33\x70\x61\x6D\x20\x20\x32\x32\x30\x30\x32\x37" "\x37\x20\x69\x20\x34\x35\x30\x30\x30\x30\x31\x30\x30\x31\x33\x30" "\x30\x30\x30\x30\x30\x30\x33\x30\x30\x30\x34\x30\x30\x30\x31\x33" @@ -427,8 +426,8 @@ static char *marc_records[] = { "\x64\x73\x2E\x1F\x74\x53\x70\x65\x63\x69\x61\x6C\x20\x70\x75\x62" "\x6C\x69\x63\x61\x74\x69\x6F\x6E\x20\x3B\x1F\x76\x35\x30\x30\x2D" "\x38\x2E\x1E\x20\x20\x1F\x61\x20\x20\x20\x37\x37\x30\x30\x34\x37" - "\x37\x33\x20\x1E\x1D" -},{ + "\x37\x33\x20\x1E\x1D", + "\x30\x30\x38\x37\x38\x63\x61\x6D\x20\x20\x32\x32\x30\x30\x32\x32" "\x39\x20\x69\x20\x34\x35\x30\x30\x30\x30\x31\x30\x30\x31\x33\x30" "\x30\x30\x30\x30\x30\x30\x33\x30\x30\x30\x34\x30\x30\x30\x31\x33" @@ -483,8 +482,8 @@ static char *marc_records[] = { "\x66\x20\x53\x74\x61\x6E\x64\x61\x72\x64\x73\x2E\x1F\x74\x53\x70" "\x65\x63\x69\x61\x6C\x20\x70\x75\x62\x6C\x69\x63\x61\x74\x69\x6F" "\x6E\x20\x3B\x1F\x76\x35\x30\x30\x2D\x39\x2E\x1E\x20\x20\x1F\x61" - "\x20\x20\x20\x37\x37\x30\x30\x35\x35\x35\x38\x20\x1E\x1D" -},{ + "\x20\x20\x20\x37\x37\x30\x30\x35\x35\x35\x38\x20\x1E\x1D", + "\x30\x30\x37\x39\x31\x63\x61\x6D\x20\x20\x32\x32\x30\x30\x32\x31" "\x37\x20\x20\x20\x34\x35\x30\x30\x30\x30\x31\x30\x30\x31\x38\x30" "\x30\x30\x30\x30\x30\x30\x33\x30\x30\x30\x34\x30\x30\x30\x31\x38" @@ -534,8 +533,8 @@ static char *marc_records[] = { "\x20\x54\x72\x61\x6E\x73\x70\x6F\x72\x74\x61\x74\x69\x6F\x6E\x20" "\x41\x64\x6D\x69\x6E\x69\x73\x74\x72\x61\x74\x69\x6F\x6E\x2E\x1E" "\x20\x20\x1F\x61\x20\x20\x20\x37\x37\x36\x31\x36\x33\x36\x37\x20" - "\x2F\x2F\x72\x38\x34\x1E\x1D" -},{ + "\x2F\x2F\x72\x38\x34\x1E\x1D", + "\x30\x30\x36\x38\x36\x63\x61\x6D\x20\x20\x32\x32\x30\x30\x32\x32" "\x39\x20\x20\x20\x34\x35\x30\x30\x30\x30\x31\x30\x30\x31\x38\x30" "\x30\x30\x30\x30\x30\x30\x33\x30\x30\x30\x34\x30\x30\x30\x31\x38" @@ -578,8 +577,8 @@ static char *marc_records[] = { "\x43\x6F\x6D\x6D\x75\x6E\x69\x74\x79\x20\x63\x6F\x6C\x6C\x65\x67" "\x65\x73\x1F\x7A\x57\x61\x73\x68\x69\x6E\x67\x74\x6F\x6E\x20\x28" "\x53\x74\x61\x74\x65\x29\x1E\x20\x20\x1F\x61\x20\x20\x20\x37\x37" - "\x36\x33\x37\x30\x37\x35\x20\x2F\x2F\x72\x38\x32\x1E\x1D" -},{ + "\x36\x33\x37\x30\x37\x35\x20\x2F\x2F\x72\x38\x32\x1E\x1D", + "\x30\x30\x36\x36\x38\x6E\x61\x6D\x20\x20\x32\x32\x30\x30\x32\x31" "\x37\x31\x20\x20\x34\x35\x30\x30\x30\x30\x31\x30\x30\x31\x33\x30" "\x30\x30\x30\x30\x30\x30\x33\x30\x30\x30\x34\x30\x30\x30\x31\x33" @@ -621,8 +620,8 @@ static char *marc_records[] = { "\x75\x74\x65\x72\x6F\x6E\x6F\x6D\x79\x1F\x78\x53\x74\x75\x64\x79" "\x1F\x78\x4F\x75\x74\x6C\x69\x6E\x65\x73\x2C\x20\x73\x79\x6C\x6C" "\x61\x62\x69\x2C\x20\x65\x74\x63\x2E\x1E\x20\x20\x1F\x61\x20\x20" - "\x20\x37\x30\x30\x30\x31\x30\x37\x30\x20\x1E\x1D" -},{ + "\x20\x37\x30\x30\x30\x31\x30\x37\x30\x20\x1E\x1D", + "\x30\x30\x38\x38\x38\x70\x61\x6D\x20\x20\x32\x32\x30\x30\x32\x36" "\x35\x20\x20\x20\x34\x35\x30\x30\x30\x30\x31\x30\x30\x31\x33\x30" "\x30\x30\x30\x30\x30\x30\x33\x30\x30\x30\x34\x30\x30\x30\x31\x33" @@ -678,8 +677,8 @@ static char *marc_records[] = { "\x6F\x6E\x2E\x1E\x20\x30\x1F\x61\x47\x69\x66\x66\x6F\x72\x64\x20" "\x6C\x65\x63\x74\x75\x72\x65\x73\x2C\x1F\x76\x31\x39\x30\x34\x2D" "\x31\x39\x30\x36\x2E\x1E\x20\x20\x1F\x61\x20\x20\x20\x37\x32\x30" - "\x30\x32\x35\x36\x35\x20\x1E\x1D" -},{ + "\x30\x32\x35\x36\x35\x20\x1E\x1D", + "\x30\x31\x31\x32\x36\x6E\x61\x6D\x20\x20\x32\x32\x30\x30\x32\x36" "\x35\x20\x61\x20\x34\x35\x30\x30\x30\x30\x31\x30\x30\x31\x33\x30" "\x30\x30\x30\x30\x30\x30\x33\x30\x30\x30\x34\x30\x30\x30\x31\x33" @@ -750,8 +749,8 @@ static char *marc_records[] = { "\x20\x58\x58\x49\x49\x49\x2C\x20\x58\x58\x58\x56\x49\x2C\x20\x4C" "\x49\x49\x2C\x20\x43\x58\x58\x49\x2E\x1F\x6C\x45\x6E\x67\x6C\x69" "\x73\x68\x2E\x1E\x20\x20\x1F\x61\x20\x20\x20\x38\x30\x30\x38\x32" - "\x33\x32\x39\x20\x1E\x1D" -},{ + "\x33\x32\x39\x20\x1E\x1D", + "\x30\x31\x34\x33\x33\x6E\x61\x73\x20\x20\x32\x32\x30\x30\x34\x32" "\x31\x20\x61\x20\x34\x35\x30\x30\x30\x30\x31\x30\x30\x30\x39\x30" "\x30\x30\x30\x30\x30\x30\x33\x30\x30\x30\x34\x30\x30\x30\x30\x39" @@ -841,8 +840,8 @@ static char *marc_records[] = { "\x41\x1F\x61\x49\x6E\x55\x1F\x61\x4D\x42\x43\x6F\x1F\x61\x4D\x48" "\x2D\x45\x64\x1F\x61\x4D\x64\x42\x4A\x1F\x61\x4D\x69\x55\x1F\x61" "\x4D\x6F\x4B\x4C\x1F\x61\x4E\x1F\x61\x4E\x49\x43\x1F\x61\x54\x78" - "\x48\x52\x1F\x61\x57\x61\x55\x1E\x1D" -},{ + "\x48\x52\x1F\x61\x57\x61\x55\x1E\x1D", + "\x30\x31\x33\x33\x30\x6E\x61\x73\x20\x20\x32\x32\x30\x30\x33\x37" "\x33\x35\x61\x20\x34\x35\x30\x30\x30\x30\x31\x30\x30\x30\x39\x30" "\x30\x30\x30\x30\x30\x30\x33\x30\x30\x30\x34\x30\x30\x30\x30\x39" @@ -926,8 +925,8 @@ static char *marc_records[] = { "\x32\x1F\x78\x31\x31\x38\x37\x2D\x32\x39\x38\x35\x1F\x77\x28\x4F" "\x43\x6F\x4C\x43\x29\x32\x35\x33\x31\x34\x30\x31\x32\x1F\x77\x28" "\x43\x61\x4F\x4F\x4E\x4C\x29\x39\x32\x30\x33\x30\x35\x37\x32\x35" - "\x1E\x1D" -},{ + "\x1E\x1D", + "\x30\x30\x38\x30\x33\x6E\x61\x6D\x20\x20\x32\x32\x30\x30\x32\x38" "\x39\x38\x61\x20\x34\x35\x30\x30\x30\x30\x31\x30\x30\x30\x39\x30" "\x30\x30\x30\x30\x30\x30\x33\x30\x30\x30\x34\x30\x30\x30\x30\x39" @@ -978,8 +977,8 @@ static char *marc_records[] = { "\x69\x64\x2E\x1E\x31\x30\x1F\x61\x4C\x65\x6E\x6F\x2C\x20\x4A\x61" "\x79\x2E\x1E\x20\x30\x1F\x61\x54\x61\x6C\x6B\x20\x73\x68\x6F\x77" "\x73\x1F\x7A\x55\x6E\x69\x74\x65\x64\x20\x53\x74\x61\x74\x65\x73" - "\x2E\x1E\x1D" -},{ + "\x2E\x1E\x1D", + "\x30\x30\x37\x36\x36\x6E\x61\x6D\x20\x20\x32\x32\x30\x30\x32\x36" "\x35\x38\x61\x20\x34\x35\x30\x30\x30\x30\x31\x30\x30\x30\x39\x30" "\x30\x30\x30\x30\x30\x30\x35\x30\x30\x31\x37\x30\x30\x30\x30\x39" @@ -1027,8 +1026,8 @@ static char *marc_records[] = { "\x30\x1F\x61\x4D\x61\x69\x6C\x69\x6E\x67\x20\x6C\x69\x73\x74\x73" "\x2E\x1E\x31\x30\x1F\x61\x48\x61\x72\x64\x69\x65\x2C\x20\x45\x64" "\x77\x61\x72\x64\x20\x54\x2E\x20\x4C\x2E\x1E\x31\x30\x1F\x61\x4E" - "\x65\x6F\x75\x2C\x20\x56\x69\x76\x69\x61\x6E\x2E\x1E\x1D" -},{ + "\x65\x6F\x75\x2C\x20\x56\x69\x76\x69\x61\x6E\x2E\x1E\x1D", + "\x30\x31\x33\x32\x34\x6E\x61\x6D\x20\x20\x32\x32\x30\x30\x32\x38" "\x39\x49\x61\x20\x34\x35\x30\x30\x30\x30\x31\x30\x30\x30\x39\x30" "\x30\x30\x30\x30\x30\x30\x38\x30\x30\x34\x31\x30\x30\x30\x30\x39" @@ -1111,8 +1110,8 @@ static char *marc_records[] = { "\x64\x20\x53\x74\x61\x74\x65\x73\x2E\x1F\x62\x4F\x66\x66\x69\x63" "\x65\x20\x6F\x66\x20\x45\x64\x75\x63\x61\x74\x69\x6F\x6E\x61\x6C" "\x20\x52\x65\x73\x65\x61\x72\x63\x68\x20\x61\x6E\x64\x20\x49\x6D" - "\x70\x72\x6F\x76\x65\x6D\x65\x6E\x74\x2E\x1E\x1D" -},{ + "\x70\x72\x6F\x76\x65\x6D\x65\x6E\x74\x2E\x1E\x1D", + "\x30\x31\x35\x35\x39\x6E\x61\x6D\x20\x20\x32\x32\x30\x30\x33\x37" "\x33\x49\x61\x20\x34\x35\x30\x30\x30\x30\x31\x30\x30\x30\x39\x30" "\x30\x30\x30\x30\x30\x30\x38\x30\x30\x34\x31\x30\x30\x30\x30\x39" @@ -1210,8 +1209,8 @@ static char *marc_records[] = { "\x52\x65\x73\x65\x61\x72\x63\x68\x20\x61\x6E\x64\x20\x49\x6D\x70" "\x72\x6F\x76\x65\x6D\x65\x6E\x74\x2E\x1E\x30\x31\x1F\x61\x4C\x69" "\x62\x72\x61\x72\x79\x20\x70\x72\x6F\x67\x72\x61\x6D\x20\x6D\x6F" - "\x64\x65\x6C\x73\x2E\x1E\x1D" -},{ + "\x64\x65\x6C\x73\x2E\x1E\x1D", + "\x30\x31\x31\x35\x35\x6E\x61\x73\x20\x20\x32\x32\x30\x30\x33\x31" "\x33\x35\x61\x20\x34\x35\x30\x30\x30\x30\x31\x30\x30\x30\x39\x30" "\x30\x30\x30\x30\x30\x30\x38\x30\x30\x34\x31\x30\x30\x30\x30\x39" @@ -1284,8 +1283,8 @@ static char *marc_records[] = { "\x72\x79\x20\x61\x6E\x64\x20\x49\x6E\x66\x6F\x72\x6D\x61\x74\x69" "\x6F\x6E\x20\x43\x65\x6E\x74\x65\x72\x20\x43\x6F\x6D\x6D\x69\x74" "\x74\x65\x65\x2E\x1E\x20\x20\x1F\x61\x31\x39\x39\x31\x20\x4C\x49" - "\x43\x1E\x1D" -},{ + "\x43\x1E\x1D", + "\x30\x30\x39\x31\x35\x6E\x61\x6D\x20\x20\x32\x32\x30\x30\x32\x32" "\x39\x4B\x61\x20\x34\x35\x30\x30\x30\x30\x31\x30\x30\x30\x39\x30" "\x30\x30\x30\x30\x30\x30\x38\x30\x30\x34\x31\x30\x30\x30\x30\x39" @@ -1343,8 +1342,8 @@ static char *marc_records[] = { "\x1F\x61\x45\x64\x75\x63\x61\x74\x69\x6F\x6E\x61\x6C\x20\x52\x65" "\x73\x6F\x75\x72\x63\x65\x73\x20\x49\x6E\x66\x6F\x72\x6D\x61\x74" "\x69\x6F\x6E\x20\x43\x65\x6E\x74\x65\x72\x20\x28\x55\x2E\x53\x2E" - "\x29\x1E\x1D" -},{ + "\x29\x1E\x1D", + "\x30\x31\x30\x35\x33\x6E\x61\x6D\x20\x20\x32\x32\x30\x30\x32\x31" "\x37\x4B\x61\x20\x34\x35\x30\x30\x30\x30\x31\x30\x30\x30\x39\x30" "\x30\x30\x30\x30\x30\x30\x38\x30\x30\x34\x31\x30\x30\x30\x30\x39" @@ -1410,8 +1409,8 @@ static char *marc_records[] = { "\x63\x61\x74\x69\x6F\x6E\x2E\x1E\x32\x30\x1F\x61\x45\x64\x75\x63" "\x61\x74\x69\x6F\x6E\x61\x6C\x20\x52\x65\x73\x6F\x75\x72\x63\x65" "\x73\x20\x49\x6E\x66\x6F\x72\x6D\x61\x74\x69\x6F\x6E\x20\x43\x65" - "\x6E\x74\x65\x72\x20\x28\x55\x2E\x53\x2E\x29\x1E\x1D" -},{ + "\x6E\x74\x65\x72\x20\x28\x55\x2E\x53\x2E\x29\x1E\x1D", + "\x30\x31\x30\x33\x36\x6E\x61\x6D\x20\x20\x32\x32\x30\x30\x32\x38" "\x39\x49\x61\x20\x34\x35\x30\x30\x30\x30\x31\x30\x30\x30\x39\x30" "\x30\x30\x30\x30\x30\x30\x38\x30\x30\x34\x31\x30\x30\x30\x30\x39" @@ -1477,7 +1476,7 @@ static char *marc_records[] = { "\x6D\x65\x6E\x74\x2E\x1E\x30\x31\x1F\x61\x4E\x61\x74\x69\x6F\x6E" "\x61\x6C\x20\x44\x69\x66\x66\x75\x73\x69\x6F\x6E\x20\x4E\x65\x74" "\x77\x6F\x72\x6B\x2C\x20\x4E\x44\x4E\x2E\x1E\x1D" -}}; +}; const char *Yaz_USMARC::get_record(int position) { -- 1.7.10.4