X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fyaz-ir-assoc.cpp;h=e6c854f68723e7a3c1ff9abc6b9839b5ea80344f;hb=355215b6f2c914f2eb099dda88828b8f0c8cb001;hp=1148c50af7852bb11448132aa4c1febbe29788d1;hpb=1063240efa2d4f03a72353936e8a7b73ee249b0d;p=yazpp-moved-to-github.git diff --git a/src/yaz-ir-assoc.cpp b/src/yaz-ir-assoc.cpp index 1148c50..e6c854f 100644 --- a/src/yaz-ir-assoc.cpp +++ b/src/yaz-ir-assoc.cpp @@ -1,10 +1,16 @@ /* - * Copyright (c) 1998-1999, Index Data. + * Copyright (c) 1998-2000, Index Data. * See the file LICENSE for details. - * Sebastian Hammer, Adam Dickmeiss * * $Log: yaz-ir-assoc.cpp,v $ - * Revision 1.12 2000-05-10 11:36:58 ian + * Revision 1.14 2000-10-11 11:58:16 adam + * Moved header files to include/yaz++. Switched to libtool and automake. + * Configure script creates yaz++-config script. + * + * Revision 1.13 2000/09/06 14:23:45 adam + * WIN32 updates. + * + * Revision 1.12 2000/05/10 11:36:58 ian * Added default parameters for refid to request functions. * Added default parameter for result set name to search and present request. * Commented out forced logging of PDU contents. @@ -39,7 +45,7 @@ #include #include -#include +#include Yaz_IR_Assoc::Yaz_IR_Assoc(IYaz_PDU_Observable *the_PDU_Observable) : Yaz_Z_Assoc(the_PDU_Observable) @@ -73,6 +79,7 @@ void Yaz_IR_Assoc::get_databaseNames (int *num, char ***list) *list = m_databaseNames; } +typedef char *charp; void Yaz_IR_Assoc::set_databaseNames (int num, const char **list) { int i; @@ -81,7 +88,8 @@ void Yaz_IR_Assoc::set_databaseNames (int num, const char **list) delete [] m_databaseNames[i]; delete [] m_databaseNames; m_num_databaseNames = num; - m_databaseNames = new (char*) [num]; + + m_databaseNames = new char *[num]; for (i = 0; iu.deleteResultSetRequest; - if ( pResultSetId ) { *req->deleteFunction = Z_DeleteResultSetRequest_list;