From: Huck Boles Date: Thu, 17 Nov 2022 21:16:14 +0000 (-0600) Subject: new start X-Git-Url: https://git.huck.website/?a=commitdiff_plain;h=94940c5bcc286b380a44317d20edcf402447c584;p=odot.git new start --- diff --git a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@alloca.h.blob b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@alloca.h.blob index 1def0ca..c1cf2b5 100644 Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@alloca.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@alloca.h.blob differ diff --git a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@atomic_wide_counter.h.blob b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@atomic_wide_counter.h.blob index ace0daf..dd4d0cc 100644 Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@atomic_wide_counter.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@atomic_wide_counter.h.blob differ diff --git a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@byteswap.h.blob b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@byteswap.h.blob index c26ab6d..ea766c9 100644 Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@byteswap.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@byteswap.h.blob differ diff --git a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@endian.h.blob b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@endian.h.blob index 43b3422..39f7425 100644 Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@endian.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@endian.h.blob differ diff --git a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@endianness.h.blob b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@endianness.h.blob index c78f2d9..a1df9a1 100644 Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@endianness.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@endianness.h.blob differ diff --git a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@floatn-common.h.blob b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@floatn-common.h.blob index 77f1cf8..051dbd4 100644 Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@floatn-common.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@floatn-common.h.blob differ diff --git a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@floatn.h.blob b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@floatn.h.blob index 514dc75..014c361 100644 Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@floatn.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@floatn.h.blob differ diff --git a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@libc-header-start.h.blob b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@libc-header-start.h.blob index c07a751..1fb990d 100644 Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@libc-header-start.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@libc-header-start.h.blob differ diff --git a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@long-double.h.blob b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@long-double.h.blob index af73510..f7d9d9a 100644 Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@long-double.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@long-double.h.blob differ diff --git a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@pthreadtypes-arch.h.blob b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@pthreadtypes-arch.h.blob index 5bcf91e..098e8b0 100644 Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@pthreadtypes-arch.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@pthreadtypes-arch.h.blob differ diff --git a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@pthreadtypes.h.blob b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@pthreadtypes.h.blob index 2a8cef8..40af18d 100644 Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@pthreadtypes.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@pthreadtypes.h.blob differ diff --git a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@select.h.blob b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@select.h.blob index 8dc32db..138b61d 100644 Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@select.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@select.h.blob differ diff --git a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@stdint-intn.h.blob b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@stdint-intn.h.blob index 0e6e59d..e3e2d82 100644 Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@stdint-intn.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@stdint-intn.h.blob differ diff --git a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@stdio_lim.h.blob b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@stdio_lim.h.blob index bbfabde..c3547d6 100644 Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@stdio_lim.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@stdio_lim.h.blob differ diff --git a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@stdlib-float.h.blob b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@stdlib-float.h.blob index cf0a36a..25cbb9f 100644 Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@stdlib-float.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@stdlib-float.h.blob differ diff --git a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@struct_mutex.h.blob b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@struct_mutex.h.blob index cf04c35..8183433 100644 Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@struct_mutex.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@struct_mutex.h.blob differ diff --git a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@struct_rwlock.h.blob b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@struct_rwlock.h.blob index 9aec1a8..1442e84 100644 Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@struct_rwlock.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@struct_rwlock.h.blob differ diff --git a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@thread-shared-types.h.blob b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@thread-shared-types.h.blob index 2276a3b..b229c03 100644 Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@thread-shared-types.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@thread-shared-types.h.blob differ diff --git a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@time64.h.blob b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@time64.h.blob index 50b0ed0..d2447a7 100644 Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@time64.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@time64.h.blob differ diff --git a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@timesize.h.blob b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@timesize.h.blob index 8ade908..649e1d9 100644 Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@timesize.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@timesize.h.blob differ diff --git a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types.h.blob b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types.h.blob index 80141a7..1257145 100644 Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types.h.blob differ diff --git a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@FILE.h.blob b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@FILE.h.blob index 5a3bb1c..6914df7 100644 Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@FILE.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@FILE.h.blob differ diff --git a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@__FILE.h.blob b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@__FILE.h.blob index be64c04..5a3fe5d 100644 Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@__FILE.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@__FILE.h.blob differ diff --git a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@__fpos64_t.h.blob b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@__fpos64_t.h.blob index 482f059..2326589 100644 Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@__fpos64_t.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@__fpos64_t.h.blob differ diff --git a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@__fpos_t.h.blob b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@__fpos_t.h.blob index 563cba8..9efadc6 100644 Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@__fpos_t.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@__fpos_t.h.blob differ diff --git a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@__locale_t.h.blob b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@__locale_t.h.blob index fcab531..9b7f128 100644 Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@__locale_t.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@__locale_t.h.blob differ diff --git a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@__mbstate_t.h.blob b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@__mbstate_t.h.blob index 65988fe..84431d7 100644 Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@__mbstate_t.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@__mbstate_t.h.blob differ diff --git a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@__sigset_t.h.blob b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@__sigset_t.h.blob index d4abd4a..0cbe580 100644 Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@__sigset_t.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@__sigset_t.h.blob differ diff --git a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@clock_t.h.blob b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@clock_t.h.blob index 28a3751..12ef7c1 100644 Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@clock_t.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@clock_t.h.blob differ diff --git a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@clockid_t.h.blob b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@clockid_t.h.blob index 6fb9529..ecb5483 100644 Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@clockid_t.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@clockid_t.h.blob differ diff --git a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@locale_t.h.blob b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@locale_t.h.blob index ce5c182..2365a25 100644 Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@locale_t.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@locale_t.h.blob differ diff --git a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@sigset_t.h.blob b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@sigset_t.h.blob index 14f9b4f..f2c7051 100644 Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@sigset_t.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@sigset_t.h.blob differ diff --git a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@struct_FILE.h.blob b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@struct_FILE.h.blob index be80bf8..46b0175 100644 Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@struct_FILE.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@struct_FILE.h.blob differ diff --git a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@struct_timespec.h.blob b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@struct_timespec.h.blob index eb03376..e240628 100644 Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@struct_timespec.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@struct_timespec.h.blob differ diff --git a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@struct_timeval.h.blob b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@struct_timeval.h.blob index de5ad2b..e5101a6 100644 Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@struct_timeval.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@struct_timeval.h.blob differ diff --git a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@time_t.h.blob b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@time_t.h.blob index 4efdcf0..3e8387c 100644 Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@time_t.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@time_t.h.blob differ diff --git a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@timer_t.h.blob b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@timer_t.h.blob index 15f8199..3f5af81 100644 Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@timer_t.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@types@timer_t.h.blob differ diff --git a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@typesizes.h.blob b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@typesizes.h.blob index 84ac1fc..a0774de 100644 Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@typesizes.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@typesizes.h.blob differ diff --git a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@uintn-identity.h.blob b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@uintn-identity.h.blob index 54b2159..f65d597 100644 Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@uintn-identity.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@uintn-identity.h.blob differ diff --git a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@waitflags.h.blob b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@waitflags.h.blob index 9f14f3a..57d7977 100644 Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@waitflags.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@waitflags.h.blob differ diff --git a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@waitstatus.h.blob b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@waitstatus.h.blob index 5bd4035..d9912f6 100644 Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@waitstatus.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@waitstatus.h.blob differ diff --git a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@wordsize.h.blob b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@wordsize.h.blob index fc978a6..544187e 100644 Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@wordsize.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@wordsize.h.blob differ diff --git a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@endian.h.blob b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@endian.h.blob index 8da2d98..69d8b64 100644 Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@endian.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@endian.h.blob differ diff --git a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@features-time64.h.blob b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@features-time64.h.blob index 5a61925..0ce1f02 100644 Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@features-time64.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@features-time64.h.blob differ diff --git a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@features.h.blob b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@features.h.blob index c2942a4..99fd8e8 100644 Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@features.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@features.h.blob differ diff --git a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@gnu@stubs-64.h.blob b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@gnu@stubs-64.h.blob index c733566..223df5f 100644 Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@gnu@stubs-64.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@gnu@stubs-64.h.blob differ diff --git a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@gnu@stubs.h.blob b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@gnu@stubs.h.blob index 1cd7b8d..08db844 100644 Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@gnu@stubs.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@gnu@stubs.h.blob differ diff --git a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@stdc-predef.h.blob b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@stdc-predef.h.blob index bddb0b5..1b803e5 100644 Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@stdc-predef.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@stdc-predef.h.blob differ diff --git a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@stdio.h.blob b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@stdio.h.blob index 88a88c1..0f73695 100644 Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@stdio.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@stdio.h.blob differ diff --git a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@stdlib.h.blob b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@stdlib.h.blob index aac09a2..1c06855 100644 Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@stdlib.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@stdlib.h.blob differ diff --git a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@string.h.blob b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@string.h.blob index 7a24568..2ec97ab 100644 Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@string.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@string.h.blob differ diff --git a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@strings.h.blob b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@strings.h.blob index 6186c27..655dfdc 100644 Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@strings.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@strings.h.blob differ diff --git a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@sys@cdefs.h.blob b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@sys@cdefs.h.blob index 7787875..ef37d30 100644 Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@sys@cdefs.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@sys@cdefs.h.blob differ diff --git a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@sys@select.h.blob b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@sys@select.h.blob index 6a58d20..a81d1d0 100644 Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@sys@select.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@sys@select.h.blob differ diff --git a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@sys@types.h.blob b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@sys@types.h.blob index 1419156..679bb41 100644 Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@sys@types.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@sys@types.h.blob differ diff --git a/.ccls-cache/@@home@huck@.repos@odot/@usr@lib@clang@14.0.6@include@stdarg.h.blob b/.ccls-cache/@@home@huck@.repos@odot/@usr@lib@clang@14.0.6@include@stdarg.h.blob index 8f02329..516cb04 100644 Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@lib@clang@14.0.6@include@stdarg.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@lib@clang@14.0.6@include@stdarg.h.blob differ diff --git a/.ccls-cache/@@home@huck@.repos@odot/@usr@lib@clang@14.0.6@include@stddef.h.blob b/.ccls-cache/@@home@huck@.repos@odot/@usr@lib@clang@14.0.6@include@stddef.h.blob index 0d5f410..f4110f0 100644 Binary files a/.ccls-cache/@@home@huck@.repos@odot/@usr@lib@clang@14.0.6@include@stddef.h.blob and b/.ccls-cache/@@home@huck@.repos@odot/@usr@lib@clang@14.0.6@include@stddef.h.blob differ diff --git a/.ccls-cache/@home@huck@.repos@odot/file.c b/.ccls-cache/@home@huck@.repos@odot/file.c index 4fbcfb9..b35d721 100644 --- a/.ccls-cache/@home@huck@.repos@odot/file.c +++ b/.ccls-cache/@home@huck@.repos@odot/file.c @@ -1,14 +1,12 @@ #include "odot.h" -void add(struct task t, FILE *fp){ - printf("\talloc\n"); - char *line = malloc(MAXLINE*sizeof(char)); - printf("\tfopen\n"); - FILE *buf = fopen("/home/huck/.local/state/odot/odot.txt", "w+"); +void add(struct task t){ + char *line = malloc(MAXLINE*sizeof(char)); printf("\talloc\n"); + FILE *fp = fopen("/home/huck/.local/state/odot/todo.txt", "r"); + FILE *buf = fopen("/home/huck/.local/state/odot/odot.txt", "w+"); printf("\tfopen\n"); int i = 0; - printf("\tNULLcheck\n"); - if (fgets(line,MAXLINE,fp) == NULL){ + if (fgets(line,MAXLINE,fp) == NULL){ printf("\tNULLcheck\n"); puttask(t,buf); } else { printf("\tloopstart\n"); @@ -22,16 +20,16 @@ void add(struct task t, FILE *fp){ if (check() == 0){ break; } else { - puttask(gettask(line), buf); + puttask(*gettask(line), buf); break; } case 1: - dialogue("Already on list in a different group", gettask(line).group, YELLOW); + dialogue("Already on list in a different group", gettask(line)->group, YELLOW); if (check() == 0){ puttask(t,buf); i++; } - puttask(gettask(line), buf); + puttask(*gettask(line), buf); break; default: /* first time t.task is lexigraphically greater than a previous task */ @@ -39,7 +37,7 @@ void add(struct task t, FILE *fp){ puttask(t,buf); ++i; } - puttask(gettask(line), buf); + puttask(*gettask(line), buf); break; } } @@ -47,9 +45,7 @@ void add(struct task t, FILE *fp){ fclose(fp); fclose(buf); - remove("/home/huck/.local/state/odot/todo.txt"); rename("/home/huck/.local/state/odot/odot.txt", "/home/huck/.local/state/odot/todo.txt"); - free(line); fp = fopen("/home/huck/.local/state/odot/todo.txt", "w+"); if (!fp) error(1); @@ -57,8 +53,9 @@ void add(struct task t, FILE *fp){ } -void rem(struct task t, FILE *fp){ +void rem(struct task t){ char *s = malloc(MAXLINE * sizeof(char)); + FILE *fp = fopen("/home/huck/.local/state/odot/todo.txt", "r"); FILE *buf = fopen("/home/huck/.local/state/odot/odot.txt", "w+"); int i = 0; @@ -73,37 +70,31 @@ void rem(struct task t, FILE *fp){ fclose(fp); fclose(buf); - remove ("/home/huck/.local/state/odot/todo.txt"); rename("/home/huck/.local/state/odot/odot.txt", "/home/huck/.local/state/odot/todo.txt"); - fp = fopen("/home/huck/.local/state/odot/todo.txt", "w+"); - if (i == 0){ dialogue("Task not found", t.task, YELLOW); printf("Add to list?"); if(check() == 0){ - add(t,fp); + add(t); } } - free(s); - } -void show(char *group, FILE *fp){ +void show(char *group){ char *task = malloc(MAXLINE * sizeof(char)); + FILE *f = fopen("/home/huck/.local/state/odot/todo.txt", "r"); struct task tmp; printf("\twhileloop\n"); int j = 0; - - while ((fgets(task, MAXLINE, fp)) != NULL ){ - printf("\t%i-nloop\n", ++j); - tmp = gettask(task); + while ((fgets(task, MAXLINE, f)) != NULL ){ + tmp = *gettask(task); printf("\t%i-nloop\n", ++j); if (strcmp(group, "all") == 0 || strcmp(tmp.group, group) == 0){ formattask(tmp); } } - free(task); + fclose(f); } diff --git a/.ccls-cache/@home@huck@.repos@odot/file.c.blob b/.ccls-cache/@home@huck@.repos@odot/file.c.blob index 3d1f47f..10974b9 100644 Binary files a/.ccls-cache/@home@huck@.repos@odot/file.c.blob and b/.ccls-cache/@home@huck@.repos@odot/file.c.blob differ diff --git a/.ccls-cache/@home@huck@.repos@odot/input.c b/.ccls-cache/@home@huck@.repos@odot/input.c index 4d39442..39070dd 100644 --- a/.ccls-cache/@home@huck@.repos@odot/input.c +++ b/.ccls-cache/@home@huck@.repos@odot/input.c @@ -2,11 +2,11 @@ struct task getnote(int n, char *arg[], char *group){ char *note = malloc(MAXLINE * sizeof(char)); - struct task tmp; + struct task *tmp; if (n == 1){ printf("\t\treturn from note\n"); - return tmp; + return *tmp; } @@ -22,8 +22,7 @@ struct task getnote(int n, char *arg[], char *group){ } printf("\t%s %s getnote\n",note,group); tmp = maketask(note,group); - free(note); - return tmp; + return *tmp; } /* uses a 3 bit number to represent options @@ -53,27 +52,30 @@ short getopt(int n, char *arg[]){ } -struct task maketask(char *task, char *group){ +struct task *maketask(char *task, char *group){ printf("\tmaketask\n"); - struct task tmp; + struct task *tmp; - tmp.task = malloc(strlen(task) * sizeof(char)); - tmp.group = malloc(strlen(group) * sizeof(char)); + tmp->task = malloc(strlen(task) * sizeof(char)); + tmp->group = malloc(strlen(group) * sizeof(char)); - strcpy(tmp.task,task); - strcpy(tmp.group,(strcmp(tmp.group,"") == 0) ? "all" : group); + strcpy(tmp->task,task); + strcpy(tmp->group,(strcmp(tmp->group,"") == 0) ? "all" : group); - printf("\t%s-task %s-group\n",tmp.task,tmp.group); + printf("\t%s-task %s-group\n",tmp->task,tmp->group); return tmp; } -struct task gettask(char *c){ - printf("\tgettask\n"); - struct task tmp; - - sscanf(c,"%s\t%s",tmp.task,tmp.group); +struct task *gettask(char *c){ + char *task, *group; + task = malloc(strlen(c) * sizeof(char)); + group = malloc(strlen(c) * sizeof(char)); + + sscanf(c,"%s\t%s",task,group); + + struct task *tmp = maketask(task,group); return tmp; } diff --git a/.ccls-cache/@home@huck@.repos@odot/input.c.blob b/.ccls-cache/@home@huck@.repos@odot/input.c.blob index a84d4cc..73f17da 100644 Binary files a/.ccls-cache/@home@huck@.repos@odot/input.c.blob and b/.ccls-cache/@home@huck@.repos@odot/input.c.blob differ diff --git a/.ccls-cache/@home@huck@.repos@odot/main.c b/.ccls-cache/@home@huck@.repos@odot/main.c index e498acf..ddb7205 100644 --- a/.ccls-cache/@home@huck@.repos@odot/main.c +++ b/.ccls-cache/@home@huck@.repos@odot/main.c @@ -1,80 +1,88 @@ -#include "odot.h" +#include +#include +#include -int main(int argc, char *argv[]){ - printf("\tstart\n"); - struct task note; - short opt; - FILE *fp; - char *group = malloc(MAXLINE*sizeof(char)); - - printf("\tfopen\n"); - fp = fopen("/home/huck/.local/state/odot/todo.txt", "w+"); - if (!fp){ - error(1); - } +#define MAXLINE 500 +#define LIST "/home/huck/.local/state/odot/todo.txt" +#define DONE "/home/huck/.local/state/odot/done.txt" +#define TMP "/home/huck/.local/state/odot/odot.txt" - printf("\tgetopt\n"); - opt = getopt(argc, argv); +int getopt(int, char **); +char *getnote(int, char **); - printf("\tgetnote\n"); - note = getnote(argc, argv, group); +void addnote(char *); +void show(); - if (opt >= 4){ - printf("\trem\n"); - rem(note, fp); - } else if (opt >= 2){ - printf("\tadd\n"); - add(note, fp); - } +int main(int argc, char *argv[]){ - if (opt % 2 != 0){ - printf("\tshow\n"); - show(group, fp); + if (argc == 1){ + show(); + } else { + addnote(getnote(argc,argv)); } - printf("\texiting\n"); - fclose(fp); - free(group); return 0; } -void error(int err){ - switch (err) { - case 1: - fprintf(stderr,"ERROR: COULD NOT ACCESS FILE: %s\n", "/home/huck/.local/state/odot/todo.txt"); - break; - case 2: - fprintf(stderr,"ERROR: CANT ADD AND REMOVE SAME TASK\n"); - break; +char *getnote(int n, char *arg[]){ + char *s = malloc(MAXLINE * sizeof(char)); + while (--n > 0){ + strcat(s,*++arg); + strcat(s,(n > 1) ? " " : "\n"); } - exit(err); + return s; } -void dialogue(char *m1, char *m2, int c){ - printf("\033[1;3%im%s\033[0m: %s\n", c, m1, m2); +void addnote(char *note){ + int i = 0; + char *buf = malloc(MAXLINE * sizeof(char)); + + FILE *fp = fopen(LIST,"r"); + FILE *fdone = fopen(DONE,"a"); + FILE *tmp = fopen(TMP,"w"); + if(!fp || !tmp || !fdone) + exit(1); + + while(fgets(buf, MAXLINE, fp)){ + if (strcmp(note,buf) > 0){ + fputs(buf,tmp); + } else if (strcmp(note,buf) == 0){ + fputs(note,fdone); + printf("Removed from list: %s", note); + i++; + } else if (strcmp(note,buf) < 0){ + if (i == 0){ + fputs(note,tmp); + printf("Added to list: %s", note); + i++; + } + fputs(buf,tmp); + } + } + if (i == 0){ + fputs(note,tmp); + printf("Added to list: %s", note); + } + + fclose(tmp); + fclose(fp); + fclose(fdone); + free(buf); + remove(LIST); + rename(TMP,LIST); return; } -void formattask(struct task t){ - printf("* %s\t%s\n", t.task, t.group); -} +void show(void){ + FILE *fp = fopen(LIST,"r"); + char *buf = malloc(MAXLINE * sizeof(char)); - /* Returns: - 0 - Nothing matches - 1 - Task matches - 2 - Group matches - 3 - Both match - */ -int listcheck(struct task t, char *c){ - int i; - i += (strcmp(t.task,gettask(c).task) == 0) ? 1 : 0; - i += (strcmp(t.group,gettask(c).group) == 0) ? 2 : 0; - return i; -} + printf("\033[36;1mTODO\033[0m:\n"); + while(fgets(buf,MAXLINE,fp)){ + printf(" \033[35;1m*\033[0m %s", buf); + } -/* returns 0 for yes and 1 for no */ -int check(void){ - printf("Continue? [y/n] (y):"); - if (((char) getchar()) == 'n') - return 1; - return 0; + free(buf); + fclose(fp); + return; } + diff --git a/.ccls-cache/@home@huck@.repos@odot/main.c.blob b/.ccls-cache/@home@huck@.repos@odot/main.c.blob index ecc8316..4049b12 100644 Binary files a/.ccls-cache/@home@huck@.repos@odot/main.c.blob and b/.ccls-cache/@home@huck@.repos@odot/main.c.blob differ diff --git a/.ccls-cache/@home@huck@.repos@odot/odot.h b/.ccls-cache/@home@huck@.repos@odot/odot.h index 1cd5ff2..27623c9 100644 --- a/.ccls-cache/@home@huck@.repos@odot/odot.h +++ b/.ccls-cache/@home@huck@.repos@odot/odot.h @@ -16,9 +16,9 @@ struct task { struct task getnote(int, char *[], char *); short getopt(int, char *[]); -void add(struct task, FILE *); -void rem(struct task, FILE *); -void show(char *group, FILE *); +void add(struct task); +void rem(struct task); +void show(char *group); int listcheck(struct task, char *); int geturgency(int); @@ -29,8 +29,8 @@ void formattask(struct task t); void error(int); int check(void); -struct task maketask(char *, char *); +struct task *maketask(char *, char *); void puttask(struct task n, FILE*); -struct task gettask(char *); +struct task *gettask(char *); enum color {BLACK, RED, GREEN, YELLOW, BLUE, MAGENTA, CYAN, WHITE}; diff --git a/.ccls-cache/@home@huck@.repos@odot/odot.h.blob b/.ccls-cache/@home@huck@.repos@odot/odot.h.blob index bbbd5b8..538f23e 100644 Binary files a/.ccls-cache/@home@huck@.repos@odot/odot.h.blob and b/.ccls-cache/@home@huck@.repos@odot/odot.h.blob differ diff --git a/Makefile b/Makefile deleted file mode 100644 index 6ced421..0000000 --- a/Makefile +++ /dev/null @@ -1,17 +0,0 @@ -SHELL = /bin/zsh -PROG = odot -PREFIX ?= /usr/local/bin -ODOT = /home/huck/.local/share/odot -TODOLIST = $(ODOT)/todo - -install : main.c input.c file.c - [[ ! -d $(TODOLIST) ]] && mkdir -p $(ODOT) - gcc *.c -o '$(PREFIX)/$(PROG)' - -header : odot.h - gcc *.h - -clean : - rm *.gch - rm "$(PREFIX)/$(PROG)" - diff --git a/dialogue.c b/dialogue.c deleted file mode 100644 index 7e7fdc6..0000000 --- a/dialogue.c +++ /dev/null @@ -1,3 +0,0 @@ -#include "odot.h" - - diff --git a/file.c b/file.c deleted file mode 100644 index 4fbcfb9..0000000 --- a/file.c +++ /dev/null @@ -1,109 +0,0 @@ -#include "odot.h" - -void add(struct task t, FILE *fp){ - printf("\talloc\n"); - char *line = malloc(MAXLINE*sizeof(char)); - printf("\tfopen\n"); - FILE *buf = fopen("/home/huck/.local/state/odot/odot.txt", "w+"); - int i = 0; - - printf("\tNULLcheck\n"); - if (fgets(line,MAXLINE,fp) == NULL){ - puttask(t,buf); - } else { - printf("\tloopstart\n"); - int j = 0; - while (fgets(line,MAXLINE,fp) != NULL){ - printf("\t%i-nloop\n", ++j); - switch (listcheck(t,line)){ - case 3: - dialogue("Already on todo list", t.task, CYAN); - printf("Remove from list?"); - if (check() == 0){ - break; - } else { - puttask(gettask(line), buf); - break; - } - case 1: - dialogue("Already on list in a different group", gettask(line).group, YELLOW); - if (check() == 0){ - puttask(t,buf); - i++; - } - puttask(gettask(line), buf); - break; - default: - /* first time t.task is lexigraphically greater than a previous task */ - if (i == 0 && strcmp(line,t.task) > 0){ - puttask(t,buf); - ++i; - } - puttask(gettask(line), buf); - break; - } - } - } - - fclose(fp); - fclose(buf); - remove("/home/huck/.local/state/odot/todo.txt"); - rename("/home/huck/.local/state/odot/odot.txt", "/home/huck/.local/state/odot/todo.txt"); - free(line); - fp = fopen("/home/huck/.local/state/odot/todo.txt", "w+"); - if (!fp) - error(1); - return; -} - - -void rem(struct task t, FILE *fp){ - char *s = malloc(MAXLINE * sizeof(char)); - FILE *buf = fopen("/home/huck/.local/state/odot/odot.txt", "w+"); - int i = 0; - - while (fgets(s, MAXLINE, fp) != NULL){ - s[strlen(s) - 1] = 0; - if (strcmp(t.task, s) != 0){ - fputs(strcat(s,"\t"),buf); - } else { - i++; - } - } - - fclose(fp); - fclose(buf); - - remove ("/home/huck/.local/state/odot/todo.txt"); - rename("/home/huck/.local/state/odot/odot.txt", "/home/huck/.local/state/odot/todo.txt"); - - fp = fopen("/home/huck/.local/state/odot/todo.txt", "w+"); - - if (i == 0){ - dialogue("Task not found", t.task, YELLOW); - printf("Add to list?"); - if(check() == 0){ - add(t,fp); - } - } - free(s); - -} - -void show(char *group, FILE *fp){ - char *task = malloc(MAXLINE * sizeof(char)); - struct task tmp; - - printf("\twhileloop\n"); - int j = 0; - - while ((fgets(task, MAXLINE, fp)) != NULL ){ - printf("\t%i-nloop\n", ++j); - tmp = gettask(task); - if (strcmp(group, "all") == 0 || strcmp(tmp.group, group) == 0){ - formattask(tmp); - } - } - free(task); -} - diff --git a/input.c b/input.c deleted file mode 100644 index 4d39442..0000000 --- a/input.c +++ /dev/null @@ -1,84 +0,0 @@ -#include "odot.h" - -struct task getnote(int n, char *arg[], char *group){ - char *note = malloc(MAXLINE * sizeof(char)); - struct task tmp; - - if (n == 1){ - printf("\t\treturn from note\n"); - return tmp; - } - - - while(--n > 0){ - printf("\t%i-nloop\n",n); - if ((*++arg)[0] != '-'){ - strcat(note, *arg); - strcat(note, " "); - } else if (strcmp(*arg,"-g") == 0){ - strcpy(group, (*++arg)); - n--; - } - } - printf("\t%s %s getnote\n",note,group); - tmp = maketask(note,group); - free(note); - return tmp; -} - -/* uses a 3 bit number to represent options - 1 - show list - 2 - add to list - 4 - remove from list -*/ -short getopt(int n, char *arg[]){ - short options; - - printf("\treturn1\n"); - /* show list if no arguments given */ - if (n == 1) - return 1; - - printf("\tcheckopt\n"); - while (--n > 0 && (*++arg)[0] == '-'){ - /* if theres a d delete, otherwise add */ - options += strchr(*arg, 's') ? 1 : 0; - options += strchr(*arg, 'n') ? 2 : 0; - options += strchr(*arg, 'd') ? 4 : 0; - } - printf("\t%i-optcode\n", options); - if ((options - 5) > 0) - error(2); - return options; -} - - -struct task maketask(char *task, char *group){ - printf("\tmaketask\n"); - struct task tmp; - - tmp.task = malloc(strlen(task) * sizeof(char)); - tmp.group = malloc(strlen(group) * sizeof(char)); - - strcpy(tmp.task,task); - strcpy(tmp.group,(strcmp(tmp.group,"") == 0) ? "all" : group); - - printf("\t%s-task %s-group\n",tmp.task,tmp.group); - - return tmp; -} - - -struct task gettask(char *c){ - printf("\tgettask\n"); - struct task tmp; - - sscanf(c,"%s\t%s",tmp.task,tmp.group); - - return tmp; -} - -void puttask(struct task t, FILE *fp){ - printf("\t%s %s puttask\n", t.task, t.group); - fprintf(fp,"%s\t%s\n",t.task,t.group); -} diff --git a/main.c b/main.c index e498acf..ddb7205 100644 --- a/main.c +++ b/main.c @@ -1,80 +1,88 @@ -#include "odot.h" +#include +#include +#include -int main(int argc, char *argv[]){ - printf("\tstart\n"); - struct task note; - short opt; - FILE *fp; - char *group = malloc(MAXLINE*sizeof(char)); - - printf("\tfopen\n"); - fp = fopen("/home/huck/.local/state/odot/todo.txt", "w+"); - if (!fp){ - error(1); - } +#define MAXLINE 500 +#define LIST "/home/huck/.local/state/odot/todo.txt" +#define DONE "/home/huck/.local/state/odot/done.txt" +#define TMP "/home/huck/.local/state/odot/odot.txt" - printf("\tgetopt\n"); - opt = getopt(argc, argv); +int getopt(int, char **); +char *getnote(int, char **); - printf("\tgetnote\n"); - note = getnote(argc, argv, group); +void addnote(char *); +void show(); - if (opt >= 4){ - printf("\trem\n"); - rem(note, fp); - } else if (opt >= 2){ - printf("\tadd\n"); - add(note, fp); - } +int main(int argc, char *argv[]){ - if (opt % 2 != 0){ - printf("\tshow\n"); - show(group, fp); + if (argc == 1){ + show(); + } else { + addnote(getnote(argc,argv)); } - printf("\texiting\n"); - fclose(fp); - free(group); return 0; } -void error(int err){ - switch (err) { - case 1: - fprintf(stderr,"ERROR: COULD NOT ACCESS FILE: %s\n", "/home/huck/.local/state/odot/todo.txt"); - break; - case 2: - fprintf(stderr,"ERROR: CANT ADD AND REMOVE SAME TASK\n"); - break; +char *getnote(int n, char *arg[]){ + char *s = malloc(MAXLINE * sizeof(char)); + while (--n > 0){ + strcat(s,*++arg); + strcat(s,(n > 1) ? " " : "\n"); } - exit(err); + return s; } -void dialogue(char *m1, char *m2, int c){ - printf("\033[1;3%im%s\033[0m: %s\n", c, m1, m2); +void addnote(char *note){ + int i = 0; + char *buf = malloc(MAXLINE * sizeof(char)); + + FILE *fp = fopen(LIST,"r"); + FILE *fdone = fopen(DONE,"a"); + FILE *tmp = fopen(TMP,"w"); + if(!fp || !tmp || !fdone) + exit(1); + + while(fgets(buf, MAXLINE, fp)){ + if (strcmp(note,buf) > 0){ + fputs(buf,tmp); + } else if (strcmp(note,buf) == 0){ + fputs(note,fdone); + printf("Removed from list: %s", note); + i++; + } else if (strcmp(note,buf) < 0){ + if (i == 0){ + fputs(note,tmp); + printf("Added to list: %s", note); + i++; + } + fputs(buf,tmp); + } + } + if (i == 0){ + fputs(note,tmp); + printf("Added to list: %s", note); + } + + fclose(tmp); + fclose(fp); + fclose(fdone); + free(buf); + remove(LIST); + rename(TMP,LIST); return; } -void formattask(struct task t){ - printf("* %s\t%s\n", t.task, t.group); -} +void show(void){ + FILE *fp = fopen(LIST,"r"); + char *buf = malloc(MAXLINE * sizeof(char)); - /* Returns: - 0 - Nothing matches - 1 - Task matches - 2 - Group matches - 3 - Both match - */ -int listcheck(struct task t, char *c){ - int i; - i += (strcmp(t.task,gettask(c).task) == 0) ? 1 : 0; - i += (strcmp(t.group,gettask(c).group) == 0) ? 2 : 0; - return i; -} + printf("\033[36;1mTODO\033[0m:\n"); + while(fgets(buf,MAXLINE,fp)){ + printf(" \033[35;1m*\033[0m %s", buf); + } -/* returns 0 for yes and 1 for no */ -int check(void){ - printf("Continue? [y/n] (y):"); - if (((char) getchar()) == 'n') - return 1; - return 0; + free(buf); + fclose(fp); + return; } + diff --git a/odot b/odot index f13d228..2ef5f6a 100755 Binary files a/odot and b/odot differ diff --git a/odot.h b/odot.h deleted file mode 100644 index 1cd5ff2..0000000 --- a/odot.h +++ /dev/null @@ -1,36 +0,0 @@ -#include -#include -#include -#include -#include -#define TODOLIST "/home/huck/.local/state/odot/todo" - -#define MAXLINE 1000 -#define TIME "%H:%M %m-%d-%y" - -struct task { - char *task; - char *group; -}; - -struct task getnote(int, char *[], char *); -short getopt(int, char *[]); - -void add(struct task, FILE *); -void rem(struct task, FILE *); -void show(char *group, FILE *); - -int listcheck(struct task, char *); -int geturgency(int); -char *gettime(void); - -void dialogue(char *, char *, int); -void formattask(struct task t); -void error(int); -int check(void); - -struct task maketask(char *, char *); -void puttask(struct task n, FILE*); -struct task gettask(char *); - -enum color {BLACK, RED, GREEN, YELLOW, BLUE, MAGENTA, CYAN, WHITE}; diff --git a/test b/test deleted file mode 100755 index e05525d..0000000 Binary files a/test and /dev/null differ