! * \brief boxaWriteDebug() * * \param[in] filename * \param[in] boxa * \return 0 if OK; 1 on error * * * Notes: * (1) Debug version, intended for use in the library when writing * to files in a temp directory with names that are compiled in. * This is used instead of boxaWrite() for all such library calls. * (2) The global variable LeptDebugO
| 2200 | * </pre> |
| 2201 | */ |
| 2202 | l_int32 |
| 2203 | boxaWriteDebug(const char *filename, |
| 2204 | BOXA *boxa) |
| 2205 | { |
| 2206 | PROCNAME("boxaWriteDebug"); |
| 2207 | |
| 2208 | if (LeptDebugOK) { |
| 2209 | return boxaWrite(filename, boxa); |
| 2210 | } else { |
| 2211 | L_INFO("write to named temp file %s is disabled\n", procName, filename); |
| 2212 | return 0; |
| 2213 | } |
| 2214 | } |
| 2215 | |
| 2216 | |
| 2217 | /*! |
no test coverage detected