aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/utils.c
AgeCommit message (Collapse)Author
2024-02-06Add hooks for custom memory allocation in libcrystfelThomas White
2024-01-12align_detector: Enumerate directory contents if necessaryThomas White
2023-07-28Move rotate2d to utilsThomas White
2023-07-28Factorise matrix operationsThomas White
This makes the code much clearer. Note that two opposing sign errors have been fixed in the gradient calculation.
2023-07-28Add show_vector()Thomas White
2023-02-17strip_extension: Handle short strings betterThomas White
2021-09-07assplode(): Add some assertionsThomas White
2021-07-21Make sure that memory gets freed on realloc failureThomas White
2021-07-21Add missing cleanup on error pathsThomas White
2021-05-12Fix convert_int and add convert_floatThomas White
convert_int was using strtod. Whoops!
2021-04-27Rename libcrystfel's config.h to libcrystfel-config.hThomas White
This removes the big potential for confusion, which has happened several times (see e.g. 095cbebaf6). It also fixes in-tree builds with CMake (but seriously, always use out-of-tree builds). Fixes #2.
2021-04-19Move file_exists to utils (and eliminate several duplicates)Thomas White
2021-03-05Mass update of copyright dates in source code commentsThomas White
2020-08-25Factor out convert_intThomas White
2020-07-30Eliminate duplicate symbolsThomas White
This makes searching easier, and also permits Meson's unity build mode.
2020-07-29Add crystfel_has_peakfinder9()Thomas White
separate config.h file.
2020-07-29Remove references to old headersThomas White
2020-07-29chomp: Don't measure length of string every iterationThomas White
2020-07-29Factorise filename_extension()Thomas White
2020-07-29Add missing va_start/va_endThomas White
Needed even though we don't iterate the list
2020-07-29Add void pointer to log message functionsThomas White
Also add LogMsgFunc typedef and move functions up in utils.c, because progress_bar() also needs the stderr_lock.
2020-07-29libcrystfel plumbing to allow ERROR/STATUS messages in GUIThomas White
2020-07-29Add safe_strdup() to utilsThomas White
2020-07-29Move load_entire_file() to utilsThomas White
2020-01-10Mass update of copyright datesThomas White
2019-09-20Delegate option processing for indexing methodsThomas White
Involves switching from getopt_long to argp. A big improvement!
2019-05-07Update all source code comments to Doxygen formatThomas White
2019-01-29DS9K compatibilityThomas White
2018-12-18make_pixelmap: Use <input>.h5 as default output filenameThomas White
2017-07-05Rearrange quaternion declarations so that gtk-doc can copeThomas White
The utils file contains two gtk-doc sections, "utils" and "quaternion", with a change of section halfway through. It seems that gtk-doc doesn't like it if the declarations are all mixed together.
2015-07-21Update API docsThomas White
2015-05-13solve_svd(): Squash NaNs after rescalingThomas White
2015-05-13solve_svd(): Filter the eigenvalues even if the result is not usedThomas White
2015-03-13solve_svd(): Check n_filt before usingThomas White
2015-03-13Move solve_svd() to utilsThomas White
2014-10-24Avoid log(0) in gaussian_noise()Thomas White
2014-09-05Update docsThomas White
2014-08-19Use Gnulib forkpty()Thomas White
2014-01-20RNG overhaulThomas White
Previously, we were using random(), which is really really bad.
2013-12-17Fix a few compiler warningsThomas White
2013-08-12Improve show_matrix_eqn()Thomas White
2013-08-08Add show_matrix()Thomas White
2012-03-09Update licence notices in line with recommendations from TTThomas White
2012-02-25Make --enable-gsl-fudge the defaultThomas White
There's absolutely no sensible reason why this should be optional - it doesn't cause any difficulties when enabled.
2012-02-22GPLv3 boilerplate commentsThomas White
2012-02-22Update copyright datesThomas White
2012-02-22Introduce "libcrystfel"Thomas White