lorid

convert chordpro to pdf
git clone git://git.relim.de/lorid.git
Log | Files | Refs | README | LICENSE

commit 4d67a98a3ee1f04418f1697a3ab70fa106abca86
parent 3812adf8b767294df52c6daa7044329196e1d133
Author: nibo <nibo@relim.de>
Date:   Fri, 11 Apr 2025 11:56:32 +0200

Add some notes

Diffstat:
MDEVELOPMENT_NOTES | 21++++++++++++++++++++-
1 file changed, 20 insertions(+), 1 deletion(-)

diff --git a/DEVELOPMENT_NOTES b/DEVELOPMENT_NOTES @@ -1,7 +1,20 @@ ## general The variable prefix 'g_' means it's a global variable. -It has nothing to do with the glib library. +Although glib is linked as a shared library as a +dependency of fontconfig this prefix has nothing to do +with the glib library. glib is not used in lorids source +code. + +## concurrent threads + +Running lorid from multiple threads at the same time +is possible as long as global variables are avoided. +Not strictly every global variable is meant. Rather +those that hold a value that is specific to the current +lorid execution. If global variables would be used +each thread would use the same global variable and overwrite +each others value. What a mess. ## stderr messages @@ -16,6 +29,12 @@ A WARN means the program continues execution but recommends changing something. An INFO is just a valuable information. ERR, WARN and INFO messages can be directed at the developer or user. +## comments + +As a signal that a comment should stay I write it like this: +// INFO: ... +/* INFO: ... */ + ## functions that free A function that frees memory is named '*_free'. It has to be safe