X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Foidtoc.tcl;h=265132887a7afc08d598a17649ea381eeee34d62;hp=7ef102c03ef266526d6af68d26d62c0b14e8a823;hb=fe507b6b15788a3a8e58063d9dae52532a5229a5;hpb=b8ab484f71da48a13342fff3ebd60efd23504681 diff --git a/src/oidtoc.tcl b/src/oidtoc.tcl index 7ef102c..2651328 100644 --- a/src/oidtoc.tcl +++ b/src/oidtoc.tcl @@ -2,7 +2,7 @@ # Copyright (c) Index Data 2006-2007 # See the file LICENSE for details. # -# $Id: oidtoc.tcl,v 1.3 2007-04-24 12:55:15 adam Exp $ +# $Id: oidtoc.tcl,v 1.4 2007-05-06 20:12:20 adam Exp $ # # Converts a CSV file with Object identifiers to C @@ -65,7 +65,7 @@ proc oid_to_c {srcdir input cname hname} { set lname [string map {- _ . _ { } _ ( {} ) {}} $lname] set prefix [string tolower [lindex $oid 0]] - puts -nonewline $cfile "YAZ_EXPORT const int yaz_oid_${prefix}_${lname}\[\] = \{" + puts -nonewline $cfile "YAZ_EXPORT extern const int yaz_oid_${prefix}_${lname}\[\] = \{" puts -nonewline $cfile [string map {. ,} [lindex $oid 1]] puts $cfile ",-1\};"