cuslang.c 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /*
  2. * CDE - Common Desktop Environment
  3. *
  4. * Copyright (c) 1993-2012, The Open Group. All rights reserved.
  5. *
  6. * These libraries and programs are free software; you can
  7. * redistribute them and/or modify them under the terms of the GNU
  8. * Lesser General Public License as published by the Free Software
  9. * Foundation; either version 2 of the License, or (at your option)
  10. * any later version.
  11. *
  12. * These libraries and programs are distributed in the hope that
  13. * they will be useful, but WITHOUT ANY WARRANTY; without even the
  14. * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  15. * PURPOSE. See the GNU Lesser General Public License for more
  16. * details.
  17. *
  18. * You should have received a copy of the GNU Lesser General Public
  19. * License along with these libraries and programs; if not, write
  20. * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
  21. * Floor, Boston, MA 02110-1301 USA
  22. */
  23. /*
  24. * COMPONENT_NAME: austext
  25. *
  26. * FUNCTIONS: load_custom_language
  27. * unload_custom_language
  28. *
  29. * ORIGINS: 27
  30. *
  31. *
  32. * (C) COPYRIGHT International Business Machines Corp. 1995
  33. * All Rights Reserved
  34. * Licensed Materials - Property of IBM
  35. * US Government Users Restricted Rights - Use, duplication or
  36. * disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  37. */
  38. /************ CUSLANG.C **********
  39. * $XConsortium: cuslang.c /main/4 1996/05/07 13:26:29 drk $
  40. * August 1995.
  41. * Dummy load_custom_language() and unload_custom_language().
  42. * Can be overridden by user's own custom language functions
  43. * by linking in a module with these functions prior to
  44. * linking in this module.
  45. * Both are referenced in loadlang.c.
  46. *
  47. * $Log$
  48. * Revision 2.2 1995/10/26 15:33:30 miker
  49. * Added prolog.
  50. *
  51. * Revision 2.1 1995/09/22 19:13:59 miker
  52. * Freeze DtSearch 0.1, AusText 2.1.8
  53. */
  54. #include "SearchP.h"
  55. int load_custom_language (DBLK *dblk, DBLK *dblist)
  56. {
  57. char msgbuf [1024];
  58. sprintf (msgbuf,
  59. "CUSLANG01 Database '%s': Language number %d\n"
  60. " is unsupported and user has not provided a\n"
  61. " load_custom_language() function to handle it.",
  62. dblk->name, dblk->dbrec.or_language);
  63. DtSearchAddMessage (msgbuf);
  64. return FALSE;
  65. }
  66. void unload_custom_language (DBLK *dblk)
  67. /* If user provides load() but not unload(),
  68. * then this dummy will almost certainly cause
  69. * memory leaks at REINIT.
  70. */
  71. { return; }