ParserOptions.C 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. /* $XConsortium: ParserOptions.C /main/1 1996/07/29 17:01:10 cde-hp $ */
  24. // Copyright (c) 1994 James Clark
  25. // See the file COPYING for copying permission.
  26. #ifdef __GNUG__
  27. #pragma implementation
  28. #endif
  29. #include "splib.h"
  30. #include "ParserOptions.h"
  31. #ifdef SP_NAMESPACE
  32. namespace SP_NAMESPACE {
  33. #endif
  34. ParserOptions::ParserOptions()
  35. : datatag(0),
  36. omittag(1),
  37. rank(1),
  38. shorttag(1),
  39. linkSimple(1000),
  40. linkImplicit(1),
  41. linkExplicit(1),
  42. concur(0),
  43. subdoc(99999999),
  44. formal(1),
  45. shortref(1),
  46. errorIdref(1),
  47. errorSignificant(1),
  48. errorAfdr(1),
  49. errorLpdNotation(0),
  50. warnSgmlDecl(0),
  51. warnShould(0),
  52. warnDuplicateEntity(0),
  53. warnUndefinedElement(0),
  54. warnDefaultEntityReference(0),
  55. warnMixedContent(0),
  56. warnUnclosedTag(0),
  57. warnNet(0),
  58. warnEmptyTag(0),
  59. warnUnusedMap(0),
  60. warnUnusedParam(0),
  61. warnNotationSystemId(0)
  62. {
  63. for (int i = 0; i < nQuantity; i++)
  64. quantity[i] = 99999999;
  65. quantity[BSEQLEN] = 960;
  66. quantity[NORMSEP] = 2;
  67. quantity[LITLEN] = 24000;
  68. quantity[PILEN] = 24000;
  69. quantity[DTEMPLEN] = 24000;
  70. }
  71. #ifdef SP_NAMESPACE
  72. }
  73. #endif