mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Stop building prefs.c
The only tiny function in there that was still needed seems to fit nicely into main.c Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
85e3a4ad29
commit
f1fe4869d9
2 changed files with 5 additions and 1 deletions
1
Makefile
1
Makefile
|
@ -57,7 +57,6 @@ SOURCES = \
|
||||||
info.c \
|
info.c \
|
||||||
main.c \
|
main.c \
|
||||||
parse-xml.c \
|
parse-xml.c \
|
||||||
prefs.c \
|
|
||||||
profile.c \
|
profile.c \
|
||||||
save-xml.c \
|
save-xml.c \
|
||||||
sha1.c \
|
sha1.c \
|
||||||
|
|
5
main.c
5
main.c
|
@ -40,6 +40,11 @@ struct preferences default_prefs = {
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct units *get_units()
|
||||||
|
{
|
||||||
|
return &prefs.units;
|
||||||
|
}
|
||||||
|
|
||||||
/* random helper functions, used here or elsewhere */
|
/* random helper functions, used here or elsewhere */
|
||||||
static int sortfn(const void *_a, const void *_b)
|
static int sortfn(const void *_a, const void *_b)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue