Repo for the search and displace ingest module that takes odf, docx and pdf and transforms it into .md to be used with search and displace operations
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

219 lines
6.8 KiB

3 years ago
  1. {
  2. User Options
  3. Following defines and options can be changed by user.
  4. }
  5. { Source options }
  6. {$DEFINE USE_INLINE} // Use function inlining for some functions
  7. // works in Free Pascal and Delphi 9+.
  8. {$DEFINE USE_ASM} // Ff defined, assembler versions of some
  9. // functions will be used (only for x86).
  10. // Debug options: If none of these two are defined
  11. // your project settings are used.
  12. { $DEFINE IMAGING_DEBUG} // If defined, debug info, range/IO/overflow
  13. // checking, stack frames, assertions, and
  14. // other debugging options will be turned on.
  15. { $DEFINE IMAGING_RELEASE} // If defined, all debug info is off.
  16. (* File format support linking options.
  17. Define formats which you don't want to be registred automatically (by adding
  18. Imaging.pas unit to your uses clause).
  19. Default: all formats are registered = no symbols defined.
  20. Example: If you want to disable JPEG support just uncomment //{$DEFINE DONT_LINK_JPEG} line
  21. *)
  22. //{$DEFINE DONT_LINK_JPEG} // link support for Jpeg images
  23. //{$DEFINE DONT_LINK_PNG} // link support for PNG images
  24. //{$DEFINE DONT_LINK_TARGA} // link support for Targa images
  25. //{$DEFINE DONT_LINK_BITMAP} // link support for Windows Bitmap images
  26. //{$DEFINE DONT_LINK_DDS} // link support for DDS images
  27. //{$DEFINE DONT_LINK_GIF} // link support for GIF images
  28. {$DEFINE DONT_LINK_MNG} // link support for MNG images
  29. //{$DEFINE DONT_LINK_JNG} // link support for JNG images
  30. //{$DEFINE DONT_LINK_PNM} // link support for PortableMap images (PBM, PGM, PPM, PAM, PFM)
  31. {$DEFINE DONT_LINK_RADHDR} // link support for Radiance HDR/RGBE file format
  32. {$DEFINE DONT_LINK_EXTRAS} // link support for file formats defined in
  33. // Extras package. Exactly which formats will be
  34. // registered depends on settings in
  35. // ImagingExtras.pas unit.
  36. {.$DEFINE DONT_LINK_FILE_FORMATS} // no auto link support of any file format
  37. { Component set used in ImagignComponents.pas unit. You usually don't need
  38. to be concerned with this - proper component library is selected automatically
  39. according to your compiler. }
  40. {$DEFINE COMPONENT_SET_VCL} // use Delphi VCL
  41. { $DEFINE COMPONENT_SET_LCL} // use Lazarus LCL (set automatically when compiling with FPC)
  42. {
  43. Auto Options
  44. Following options and defines are set automatically and some
  45. are required for Imaging to compile successfully. Do not change
  46. anything here if you don't know what you are doing.
  47. }
  48. { Compiler options }
  49. {$ALIGN ON} // Field alignment: 8 Bytes (in D6+)
  50. {$BOOLEVAL OFF} // Boolean eval: off
  51. {$EXTENDEDSYNTAX ON} // Extended syntax: on
  52. {$LONGSTRINGS ON} // string = AnsiString: on
  53. {$MINENUMSIZE 4} // Min enum size: 4 B
  54. {$TYPEDADDRESS OFF} // Typed pointers: off
  55. {$WRITEABLECONST OFF} // Writeable constants: off
  56. {$IFNDEF FPC}
  57. {$DEFINE DCC} // if not using FPC then DCC compiler is used (Delphi/BCB)
  58. // others are not supported
  59. {$ENDIF}
  60. {$IFDEF DCC}
  61. {$DEFINE DELPHI}
  62. {$ENDIF}
  63. {$IF (Defined(DCC) and (CompilerVersion >= 18.5))}
  64. {$IFDEF RELEASE}
  65. {$UNDEF DEBUG} // If we are using Delphi 2007+ where you can set
  66. // DEBUG/RELEASE mode in project options and RELEASE
  67. // is currently set we undef DEBUG mode
  68. {$ENDIF}
  69. {$IFEND}
  70. {$IF Defined(IMAGING_DEBUG)}
  71. {$ASSERTIONS ON}
  72. {$DEBUGINFO ON}
  73. {$RANGECHECKS ON}
  74. {$IOCHECKS ON}
  75. {$OVERFLOWCHECKS ON}
  76. {$IFDEF DCC}
  77. {$OPTIMIZATION OFF}
  78. {$STACKFRAMES ON}
  79. {$LOCALSYMBOLS ON}
  80. {$DEFINE MEMCHECK}
  81. {$ENDIF}
  82. {$IFDEF FPC}
  83. {$S+}
  84. {$CHECKPOINTER ON}
  85. {$ENDIF}
  86. {$ELSEIF Defined(IMAGING_RELEASE)}
  87. {$ASSERTIONS OFF}
  88. {$DEBUGINFO OFF}
  89. {$RANGECHECKS OFF}
  90. {$IOCHECKS OFF}
  91. {$OVERFLOWCHECKS OFF}
  92. {$IFDEF DCC}
  93. {$OPTIMIZATION ON}
  94. {$STACKFRAMES OFF}
  95. {$LOCALSYMBOLS OFF}
  96. {$ENDIF}
  97. {$IFDEF FPC}
  98. {$S-}
  99. {$ENDIF}
  100. {$IFEND}
  101. {$IF Defined (CPU86) and not Defined(CPUX86)}
  102. {$DEFINE CPUX86} // Compatibility with Delphi
  103. {$IFEND}
  104. {$IF Defined (CPUX86_64) and not Defined(CPUX64)}
  105. {$DEFINE CPUX64} // Compatibility with Delphi
  106. {$IFEND}
  107. {$IF Defined (DARWIN) and not Defined(MACOS)}
  108. {$DEFINE MACOS} // Compatibility with Delphi
  109. {$IFEND}
  110. {$IF Defined(MACOS)}
  111. {$DEFINE MACOSX}
  112. {$IFEND}
  113. {$IF Defined(DCC) and (CompilerVersion < 23)}
  114. {$DEFINE CPUX86} // Compatibility with older Delphi
  115. {$IFEND}
  116. {$IF Defined(WIN32) or Defined(WIN64)}
  117. {$DEFINE MSWINDOWS} // Compatibility with Delphi
  118. {$IFEND}
  119. {$IF Defined(UNIX) and not Defined(POSIX)}
  120. {$DEFINE POSIX} // Compatibility with Delphi
  121. {$IFEND}
  122. { Compiler capabilities }
  123. // Define if compiler supports inlining of functions and procedures
  124. {$IF (Defined(DCC) and (CompilerVersion >= 17)) or Defined(FPC)}
  125. {$DEFINE HAS_INLINE}
  126. {$IFEND}
  127. // Define if compiler supports advanced records with methods
  128. {$IF (Defined(DCC) and (CompilerVersion >= 18)) or
  129. (Defined(FPC) and (FPC_FULLVERSION >= 20600))}
  130. {$DEFINE HAS_ADVANCED_RECORDS}
  131. {$IFEND}
  132. // Define if compiler supports operator overloading
  133. // (unfortunately Delphi and FPC operator overloading is not compatible).
  134. // FPC supports Delphi compatible operator overloads since 2.6.0
  135. {$IF (Defined(DCC) and (CompilerVersion >= 18)) or
  136. (Defined(FPC) and (FPC_FULLVERSION >= 20600))}
  137. {$DEFINE HAS_OPERATOR_OVERLOADING}
  138. {$IFEND}
  139. // Anonymous methods
  140. {$IF Defined(DCC) and (CompilerVersion >= 20) }
  141. {$DEFINE HAS_ANON_METHODS}
  142. {$IFEND}
  143. // Generic types (Delphi and FPC implementations incompatible).
  144. // Update: FPC supports Delphi compatible generics since 2.6.0
  145. {$IF (Defined(DCC) and (CompilerVersion >= 20)) or
  146. (Defined(FPC) and (FPC_FULLVERSION >= 20600))}
  147. {$DEFINE HAS_GENERICS}
  148. {$IFEND}
  149. { Imaging options check}
  150. {$IFNDEF HAS_INLINE}
  151. {$UNDEF USE_INLINE}
  152. {$ENDIF}
  153. {$IF not Defined(CPUX86)}
  154. {$UNDEF USE_ASM}
  155. {$IFEND}
  156. {$IFDEF FPC}
  157. {$DEFINE COMPONENT_SET_LCL}
  158. {$UNDEF COMPONENT_SET_VCL}
  159. {$ENDIF}
  160. {$IFDEF DELPHI}
  161. {$UNDEF COMPONENT_SET_LCL}
  162. {$DEFINE COMPONENT_SET_VCL}
  163. {$ENDIF}
  164. { More compiler options }
  165. {$IFDEF FPC} // Free Pascal options - some options set above (like min enum size)
  166. // are reset to defaults by setting {$MODE} so they are
  167. // redeclared here
  168. {$MODE DELPHI} // compatible with delphi
  169. {$GOTO ON} // alow goto
  170. {$PACKRECORDS 8} // same as ALING 8 for Delphi
  171. {$PACKENUM 4} // Min enum size: 4 B
  172. {$CALLING REGISTER} // default calling convention is register
  173. {$IFDEF CPU86}
  174. {$ASMMODE INTEL} // intel assembler mode
  175. {$ENDIF}
  176. {$ENDIF}
  177. {$IFDEF HAS_INLINE}
  178. {$INLINE ON} // turns inlining on for compilers that support it
  179. {$ENDIF}