Separate malloc debug library. Removal of ASN_COMPILED-#ifdefs.
[yaz-moved-to-github.git] / ztest / ztest.c
index ba85739..ee3d2e0 100644 (file)
@@ -2,149 +2,7 @@
  * Copyright (c) 1995-2001, Index Data.
  * See the file LICENSE for details.
  *
- * NT Service interface by
- *    Chas Woodfield, Fretwell Downing Datasystems.
- *
- * $Log: ztest.c,v $
- * Revision 1.45  2001-10-29 09:17:19  adam
- * New function marc_display_exl - used by YAZ client. Server returns
- * bad record on position 98 (for testing).
- *
- * Revision 1.44  2001/07/19 19:51:42  adam
- * Added typecasts to make C++ happy.
- *
- * Revision 1.43  2001/06/28 09:27:25  adam
- * Number of Extended Services Requests logged.
- *
- * Revision 1.42  2001/04/06 12:26:46  adam
- * Optional CCL module. Moved atoi_n to marcdisp.h from yaz-util.h.
- *
- * Revision 1.41  2001/04/05 13:08:48  adam
- * New configure options: --enable-module.
- *
- * Revision 1.40  2001/03/25 21:55:13  adam
- * Added odr_intdup. Ztest server returns TaskPackage for ItemUpdate.
- *
- * Revision 1.39  2001/03/12 14:40:57  adam
- * Minor change of print of item update info.
- *
- * Revision 1.38  2001/02/21 13:46:54  adam
- * C++ fixes.
- *
- * Revision 1.37  2001/02/20 11:25:32  adam
- * Added ill_get_APDU and ill_get_Cancel.
- *
- * Revision 1.36  2001/01/30 21:34:18  adam
- * Added step-size for Scan backend interface.
- *
- * Revision 1.35  2000/11/23 10:58:33  adam
- * SSL comstack support. Separate POSIX thread support library.
- *
- * Revision 1.34  2000/09/04 08:58:15  adam
- * Added prefix yaz_ for most logging utility functions.
- *
- * Revision 1.33  2000/08/10 08:41:26  adam
- * Fixes for ILL.
- *
- * Revision 1.32  2000/04/05 07:39:55  adam
- * Added shared library support (libtool).
- *
- * Revision 1.31  2000/01/31 13:15:21  adam
- * Removed uses of assert(3). Cleanup of ODR. CCL parser update so
- * that some characters are not surrounded by spaces in resulting term.
- * ILL-code updates.
- *
- * Revision 1.30  2000/01/13 23:05:50  adam
- * Fixed tagging for member requester-CHECKED-IN in ILL ASN.1 spec.
- *
- * Revision 1.29  2000/01/12 14:36:07  adam
- * Added printing stream (ODR) for backend functions.
- *
- * Revision 1.28  1999/12/16 23:36:19  adam
- * Implemented ILL protocol. Minor updates ASN.1 compiler.
- *
- * Revision 1.27  1999/11/30 13:47:12  adam
- * Improved installation. Moved header files to include/yaz.
- *
- * Revision 1.26  1999/08/27 09:40:32  adam
- * Renamed logf function to yaz_log. Removed VC++ project files.
- *
- * Revision 1.25  1999/06/01 14:29:12  adam
- * Work on Extended Services.
- *
- * Revision 1.24  1999/05/27 13:07:54  adam
- * Fix.
- *
- * Revision 1.23  1999/05/27 13:02:20  adam
- * Assigned OID for old DB Update (VAL_DBUPDATE0).
- *
- * Revision 1.22  1999/05/26 13:49:12  adam
- * DB Update implemented in client (very basic).
- *
- * Revision 1.21  1998/12/15 12:45:42  adam
- * Minor change.
- *
- * Revision 1.20  1998/12/14 14:48:05  adam
- * Fixed memory leak - happened when fetching MARC records.
- *
- * Revision 1.19  1998/10/20 15:16:22  adam
- * Minor change to prevent warning.
- *
- * Revision 1.18  1998/10/20 15:13:45  adam
- * Minor fix regarding output for Item Order.
- *
- * Revision 1.17  1998/10/18 22:33:35  quinn
- * Added diagnostic dump of Item Order Eservice.
- *
- * Revision 1.16  1998/10/15 08:26:23  adam
- * Added type cast to make C++ happy.
- *
- * Revision 1.15  1998/10/13 20:05:57  adam
- * Minor change.
- *
- * Revision 1.14  1998/10/13 16:12:25  adam
- * Added support for Surrogate Diagnostics for Scan Term entries.
- *
- * Revision 1.13  1998/08/19 16:10:09  adam
- * Changed som member names of DeleteResultSetRequest/Response.
- *
- * Revision 1.12  1998/07/20 12:38:44  adam
- * Implemented delete result set service to server API.
- *
- * Revision 1.11  1998/06/09 13:55:08  adam
- * Minor changes.
- *
- * Revision 1.10  1998/05/27 16:55:54  adam
- * Minor changes.
- *
- * Revision 1.9  1998/03/31 11:07:45  adam
- * Furhter work on UNIverse resource report.
- * Added Extended Services handling in frontend server.
- *
- * Revision 1.8  1998/02/11 11:53:36  adam
- * Changed code so that it compiles as C++.
- *
- * Revision 1.7  1998/02/10 11:03:57  adam
- * Added support for extended handlers in backend server interface.
- *
- * Revision 1.6  1998/01/29 13:16:02  adam
- * Added dummy sort in test server.
- *
- * Revision 1.5  1997/11/07 13:31:58  adam
- * Added NT Service name part of statserv_options_block. Moved NT
- * service utility to server library.
- *
- * Revision 1.4  1997/09/17 12:10:43  adam
- * YAZ version 1.4.
- *
- * Revision 1.3  1997/09/09 10:10:20  adam
- * Another MSV5.0 port. Changed projects to include proper
- * library/include paths.
- * Server starts server in test-mode when no options are given.
- *
- * Revision 1.2  1997/09/04 13:50:31  adam
- * Bug fix in ztest.
- *
+ * $Id: ztest.c,v 1.46 2001-11-13 23:00:43 adam Exp $
  */
 
 /*
@@ -207,11 +65,7 @@ int ztest_esrequest (void *handle, bend_esrequest_rr *rr)
        yaz_log (LOG_LOG, "Received ItemOrder");
        switch (it->which)
        {
-#ifdef ASN_COMPILED
        case Z_IOItemOrder_esRequest:
-#else
-       case Z_ItemOrder_esRequest:
-#endif
        {
            Z_IORequest *ir = it->u.esRequest;
            Z_IOOriginPartToKeep *k = ir->toKeep;