e3bdb80e91
initial mod subcommands work
2024-02-12 00:49:52 +01:00
a6a1d0c65e
ignore discarded qualifiers warning upon assigning string literal
...
ccls still shows me the warning and another one for the `diagnostic
ignored` saying `unknown warning group`, not sure if it's fixable in
ccls, might be time to move to clang/d? although I've heard it has
issues too, not sure
2024-02-12 00:44:13 +01:00
d8a0393fe1
print help text to stdout instead of stderr
...
I looked it up and it would make sense to print it to stdout if the user
explicitly wants the help and to stderr if it's not intentional
2024-02-12 00:06:51 +01:00
55414046ea
moving config parsing before option parsing
2024-02-11 23:51:42 +01:00
c50902e45e
oops forgot
2024-02-11 23:48:03 +01:00
6eaf260d8d
refactor the actual fetch into another file
2024-02-11 23:47:34 +01:00
f3ef45abda
makefile cleanup
2024-02-11 23:46:59 +01:00
022f0462e9
move config and util from lib to prog
2024-02-11 23:27:01 +01:00
4ef40c8aed
what the fuck
2024-02-11 23:25:11 +01:00
79615a946b
add .ccls
2024-02-11 23:24:33 +01:00
d24c1d3767
big refactor of pretty much everything
...
I still need to make the Makefile better as it's pretty shit right now
but it's alright for now I think
2024-02-11 23:23:50 +01:00
5601945db1
move default config path to config.h
2024-02-11 22:37:03 +01:00
c128b281d8
add config and util to lib
2024-02-11 22:22:17 +01:00
8bfacabcd0
biggest change ever
2024-02-11 22:19:27 +01:00
41d9f87eab
add param names to semver function declarations
2024-02-11 22:13:02 +01:00
8081a8d302
refactor shit out of modfetch.c
2024-02-11 22:11:57 +01:00
d6961a75f3
small makefile fix
2024-02-11 21:59:58 +01:00
7d62a8acc4
fix mod function name shadowing
2024-02-11 20:05:31 +01:00
c08e2398ab
nevermind I can't free getenv() Xddd
2024-02-11 19:53:51 +01:00
cca7224559
free strings after use
2024-02-11 19:50:44 +01:00
c013f078ab
use ~/.config if $XDG_CONFIG_HOME isn't present
2024-02-11 19:49:14 +01:00
274df36583
tick off api versioning in readme
2024-02-11 19:44:32 +01:00
53ff1074ef
make api versioning actually work
2024-02-11 19:37:41 +01:00
147f372a9b
update readme building instructions
2024-02-11 18:35:41 +01:00
1640be4666
api versioning for modules
2024-02-11 17:50:10 +01:00
2695a19da4
cpmsv -> sveq
...
this name represents the function better I think
2024-02-11 17:48:01 +01:00
0e9a7d6bd8
"clean up" makefile
...
will need to rework it again later
2024-02-11 17:44:35 +01:00
ac6c61e10a
module_name -> name
2024-02-10 14:51:50 +01:00
dfa4ea2f44
move to semver everywhere
2024-02-10 14:11:26 +01:00
92a9fb163f
clean up makefile
2024-02-10 14:09:43 +01:00
d6b05cd7b7
add header guard in mod.h :PPP
2024-02-10 00:33:33 +01:00
ce5cd7ac79
add author for remaining modules
2024-02-10 00:04:36 +01:00
b15ab051f0
separator module ( #1 )
...
first module which uses the config :-)
Co-authored-by: krizej <60076189+krizej@users.noreply.github.com>
Reviewed-on: jacekpoz/modfetch#1
Co-authored-by: krizej <krizej@protonmail.com>
Co-committed-by: krizej <krizej@protonmail.com>
2024-02-09 22:48:16 +01:00
4baf04cda0
add another item to todo list
2024-02-09 22:14:57 +01:00
24e2d04c68
motherfucking strncpy
2024-02-09 22:07:49 +01:00
727556295e
explain the program better in the readme
2024-02-09 21:39:37 +01:00
7afaaa2376
am I stupid??
2024-02-09 21:38:05 +01:00
76fd2153a9
nullterm after strncpy
...
great function thanks glibc
2024-02-09 15:46:33 +01:00
9ac418318a
nullterm ret in resolve_env_vars
2024-02-09 15:34:15 +01:00
170e69d096
free line if getline errors
2024-02-09 15:31:30 +01:00
771680ac17
very nice and calm comment about casting void* to function pointers
2024-02-09 15:15:44 +01:00
36b59a2e29
++
-> += 1
outside all loops to improve readability
...
I like it better now
2024-02-09 15:11:36 +01:00
21aefd281a
general memory and readability improvements
2024-02-09 15:10:13 +01:00
9cfdb7bea4
make clean remove contents of target instead of target
2024-02-09 14:20:43 +01:00
3704f16b53
fix crashing on empty line (Xd)
2024-02-09 13:54:29 +01:00
bfcf6fa157
stop cleaning object files on build
2024-02-09 13:33:06 +01:00
85eb489d7c
prevent 4KB memory leak
2024-02-09 12:23:17 +01:00
d363f9defc
add another thing to todo
2024-02-09 12:19:46 +01:00
9c80bb95e4
add error throwing to todo
2024-02-09 12:09:30 +01:00
b8da386888
fix todo
2024-02-09 12:06:17 +01:00