From 5e2fa9da1dca74fcbe399b8e34b393fcee3731fd Mon Sep 17 00:00:00 2001 From: Huck Boles Date: Wed, 2 Nov 2022 18:00:07 -0500 Subject: [PATCH] automatic backup --- .../@usr@include@alloca.h.blob | Bin 3021 -> 3021 bytes ...sr@include@bits@atomic_wide_counter.h.blob | Bin 3391 -> 3399 bytes .../@usr@include@bits@byteswap.h.blob | Bin 3829 -> 3837 bytes .../@usr@include@bits@endian.h.blob | Bin 2906 -> 2906 bytes .../@usr@include@bits@endianness.h.blob | Bin 2563 -> 2563 bytes .../@usr@include@bits@floatn-common.h.blob | Bin 6604 -> 6612 bytes .../@usr@include@bits@floatn.h.blob | Bin 2919 -> 2927 bytes ...@usr@include@bits@libc-header-start.h.blob | Bin 3207 -> 3215 bytes .../@usr@include@bits@long-double.h.blob | Bin 2492 -> 2494 bytes ...@usr@include@bits@pthreadtypes-arch.h.blob | Bin 3525 -> 3533 bytes .../@usr@include@bits@pthreadtypes.h.blob | Bin 7505 -> 7513 bytes .../@usr@include@bits@select.h.blob | Bin 2808 -> 2806 bytes .../@usr@include@bits@stdint-intn.h.blob | Bin 2985 -> 2983 bytes .../@usr@include@bits@stdio_lim.h.blob | Bin 2768 -> 2768 bytes .../@usr@include@bits@stdlib-float.h.blob | Bin 2379 -> 2379 bytes .../@usr@include@bits@struct_mutex.h.blob | Bin 3773 -> 3781 bytes .../@usr@include@bits@struct_rwlock.h.blob | Bin 4185 -> 4193 bytes ...sr@include@bits@thread-shared-types.h.blob | Bin 4841 -> 4849 bytes .../@usr@include@bits@time.h.blob | Bin 3520 -> 3518 bytes .../@usr@include@bits@time64.h.blob | Bin 2570 -> 2578 bytes .../@usr@include@bits@timesize.h.blob | Bin 2482 -> 2490 bytes .../@usr@include@bits@types.h.blob | Bin 9852 -> 9860 bytes .../@usr@include@bits@types@FILE.h.blob | Bin 2643 -> 2649 bytes .../@usr@include@bits@types@__FILE.h.blob | Bin 2580 -> 2586 bytes .../@usr@include@bits@types@__fpos64_t.h.blob | Bin 3371 -> 3377 bytes .../@usr@include@bits@types@__fpos_t.h.blob | Bin 3323 -> 3325 bytes .../@usr@include@bits@types@__locale_t.h.blob | Bin 3507 -> 3499 bytes ...@usr@include@bits@types@__mbstate_t.h.blob | Bin 3165 -> 3167 bytes .../@usr@include@bits@types@__sigset_t.h.blob | Bin 2787 -> 2785 bytes .../@usr@include@bits@types@clock_t.h.blob | Bin 2620 -> 2618 bytes .../@usr@include@bits@types@clockid_t.h.blob | Bin 2650 -> 2648 bytes .../@usr@include@bits@types@locale_t.h.blob | Bin 2683 -> 2675 bytes .../@usr@include@bits@types@sigset_t.h.blob | Bin 2718 -> 2718 bytes ...@usr@include@bits@types@struct_FILE.h.blob | Bin 6894 -> 6894 bytes ...nclude@bits@types@struct_itimerspec.h.blob | Bin 2883 -> 2881 bytes ...@include@bits@types@struct_timespec.h.blob | Bin 3110 -> 3108 bytes ...r@include@bits@types@struct_timeval.h.blob | Bin 2926 -> 2924 bytes .../@usr@include@bits@types@struct_tm.h.blob | Bin 3555 -> 3553 bytes .../@usr@include@bits@types@time_t.h.blob | Bin 2600 -> 2606 bytes .../@usr@include@bits@types@timer_t.h.blob | Bin 2637 -> 2635 bytes .../@usr@include@bits@typesizes.h.blob | Bin 6388 -> 6390 bytes .../@usr@include@bits@uintn-identity.h.blob | Bin 3395 -> 3403 bytes .../@usr@include@bits@waitflags.h.blob | Bin 2944 -> 2952 bytes .../@usr@include@bits@waitstatus.h.blob | Bin 3504 -> 3512 bytes .../@usr@include@bits@wordsize.h.blob | Bin 2622 -> 2630 bytes .../@usr@include@ctype.h.blob | Bin 14566 -> 14546 bytes .../@usr@include@endian.h.blob | Bin 3828 -> 3828 bytes .../@usr@include@features-time64.h.blob | Bin 2439 -> 2447 bytes .../@usr@include@features.h.blob | Bin 5469 -> 5477 bytes .../@usr@include@gnu@stubs-64.h.blob | Bin 2944 -> 2946 bytes .../@usr@include@gnu@stubs.h.blob | Bin 2424 -> 2426 bytes .../@usr@include@stdc-predef.h.blob | Bin 2900 -> 2908 bytes .../@usr@include@stdio.h.blob | Bin 37512 -> 37520 bytes .../@usr@include@stdlib.h.blob | Bin 43350 -> 43358 bytes .../@usr@include@string.h.blob | Bin 17032 -> 17032 bytes .../@usr@include@strings.h.blob | Bin 6442 -> 6434 bytes .../@usr@include@sys@cdefs.h.blob | Bin 12462 -> 12470 bytes .../@usr@include@sys@select.h.blob | Bin 6070 -> 6068 bytes .../@usr@include@sys@types.h.blob | Bin 8103 -> 8103 bytes .../@usr@include@time.h.blob | Bin 14864 -> 14862 bytes ...usr@lib@clang@14.0.6@include@stdarg.h.blob | Bin 3233 -> 3235 bytes ...usr@lib@clang@14.0.6@include@stddef.h.blob | Bin 2701 -> 2703 bytes .../@home@huck@.repos@odot/dialogue.c.blob | Bin 3363 -> 3363 bytes .../@home@huck@.repos@odot/file.c.blob | Bin 5525 -> 5525 bytes .ccls-cache/@home@huck@.repos@odot/func.c | 35 ++---------------- .../@home@huck@.repos@odot/func.c.blob | Bin 5779 -> 4771 bytes .ccls-cache/@home@huck@.repos@odot/input.c | 9 ----- .../@home@huck@.repos@odot/input.c.blob | Bin 4240 -> 3931 bytes .../@home@huck@.repos@odot/main.c.blob | Bin 4264 -> 4283 bytes .ccls-cache/@home@huck@.repos@odot/odot.h | 8 ++-- .../@home@huck@.repos@odot/odot.h.blob | Bin 4241 -> 4560 bytes .../@home@huck@.repos@odot/structure.c.blob | Bin 4130 -> 4130 bytes func.c | 35 ++---------------- input.c | 9 ----- odot.h | 8 ++-- 75 files changed, 12 insertions(+), 92 deletions(-) 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 fce15623e6749bade5b8c8093e6af66c3d31c93a..88468ed42116478f5d9f41702452c2989ec029eb 100644 GIT binary patch delta 20 ccmX>repY=8kS4Sr|vPf(`!pg}80AGIy761SM delta 20 ccmX>repY=76EC(kyvPf(`!pg}809H*0J^%m! 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 ffc104ad0421a8ca0426454b19eebc322e7fcbff..14fd9672b6b20df11854244c5aa02575d2c3993e 100644 GIT binary patch delta 58 zcmdllbzEwKqEJd^VorW~X{uf_19NgtVqQAK!~}5;nCM0?BUa|7S4Sr^GKx%oz|6LJ IChIbG09Dx(L;wH) delta 36 ocmX>uwO?w2B1>*!X5K_i2)!}Lh?RK?%fZPHnItzaU|r4*0PKkj!~g&Q 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 d831542c6c053c1332772dd8a5139cb5341a75ee..a17c5dfc52f0eb617cbe2840abac75e2188c2827 100644 GIT binary patch delta 54 zcmew=`&V{?y--SKVorW~X{uf_19NgtVqQAK#5!>fnCQj~TUO?#S4Ss1GD>bf$ZEm~ E04qonoB#j- delta 36 pcmew>`&D*=Jxgw4X5K`1MKHawz?PMH3d_OCA6X?gpJX-R1ONqe4Q2oU 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 12c54f733aa7e32c7563cffa2f1aa4a79fe44d2d..57def18eeb831843483b696d995fa6aca828f9ef 100644 GIT binary patch delta 46 zcmca5c1vu6B41i&PO4rq19NgtVqQAK!~}5`kjO@_cvj}7S4Sr|vPf(`!a9u=0C)Hh AUjP6A delta 46 zcmca5c1vu6B42J|W}aR$19NgtVqQAK!~}5`kjO@_cvj{qEC(kyvPf(`!a9u=0B_h2 AkpKVy 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 6b6e740652e8e51df4ac16105a2dd8ac711b809f..c3c3f004482564b93bd643c88a3481a6cec27d10 100644 GIT binary patch delta 50 zcmZn`X%?BF$d{Ixld6}@z?__un3v8lF+rRKB(l-Vnw7cf)zQg}j3Sd2nAtWjVohWL E0E>nXW&i*H delta 50 zcmZn`X%?BF$d{X#nWvY`z?__un3v8lF+rRKB(l-Vnw5D9%fZQvj3Sd2nAtWjVohWL E0DvwIm;e9( 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 7f8b4044083b06fb9cf9e1b2b387e1bf220d6aee..b227f3d9ca4fe365791d1b059eb9b11f2c979e59 100644 GIT binary patch delta 58 zcmX?Oe8qTzqEJd^VorW~X{uf_19NgtVqQAK!~}5;nCM0?3s&Z)S4Sr^vItL}z{0k9 I9;==R0Ath>;{X5v delta 36 ocmca&e8zZ!B1>*!X5K_i2)!}Lf|Yp+%fZQl%u<_|v+9Zf0Poie;s5{u 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 e162c9f1a6a216bf8122bdaf150924213b1b2ef8..b861553717cde8651e1e7d2d0e7eebc452621ae8 100644 GIT binary patch delta 54 zcmaDZ_Fim)qEJd^VorW~X{uf_19NgtVqQAK!~}5;nCM2Ycvj}7S4Sr|vPf(`!n&9h E035Ls>Hq)$ delta 36 ocmaDa_FQa&B1>*!X5K_i2)!{Vo|SnD%fZQvEK-}#u`Xl<0P@NVf&c&j 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 c8da2eb6aff2567a9fa576863dda94c56536fe8b..17abd5fc969584c584f03fdae3cf38861ada6399 100644 GIT binary patch delta 57 zcmZpd?3bLNC|q1pRGM5;T9m4n%)p$SlbDyzFgcM`oD(j-(Z__9x#`u>$q$(%H_u^x G%?1EGLloZt delta 38 pcmeB|Y?qv%$eNi~P+Brk3(D9SV#3Nih2`L60cOd~OITmC0RZ|c4CVj; 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 ed51b6d7ba4bd3932d2c98c389f1e40c69525734..d6e61a9288a90a3cd7242f4a04326e3af59ff4f0 100644 GIT binary patch delta 44 tcmdlZyia(7B1dsaQE75XY0*RtB{+LypfxLV)2pMC8Cj$@uVfWw0RVT=5A^^5 delta 38 ocmdldyhnI~B6~_^VorW~=|oK>7;|H=H7oNJmV=uovg)z`017A#AOHXW 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 f806a8cfcda9f688951473d68f5162f2db35573b..230c6f3b0b23d5883be6db363a0d3e94320188a3 100644 GIT binary patch delta 50 zcmX>qeO7vcqEJd^VorW~X{uf_19NgtVqQAK!~}5;nCM0?6ISM?S4THDvbt~p0Kumb Awg3PC delta 36 ocmX>reN=jaB1>*!X5K_i2)!}Lgq3*;%fZQvEK-{nvubew0Oqy}egFUf 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 49e804369143e1c78b198812eac3490e9748d4a2..976671096d769a82f8975c192c4795c67e6e5ac7 100644 GIT binary patch delta 54 zcmca;b<=8sqEJd^VorW~X{uf_19NgtVqQAK!~}5;nCM2Ycvj}7S4Sr|vPf(`!rChi E03sU{0ssI2 delta 36 ocmca*!X5K_i2)!{Vo|SnD%fZQvEK-}#v383C0QNi#ng9R* 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 1d0c0c81989392f453284b0dc9e3447bfdb4c727..19267ed4a3da3c95dbd2587969f4a00f776f901a 100644 GIT binary patch delta 36 ocmew%`b~6#B1>9kPU=K82))rKo|U=j)zQfhnItzKXEkI600VIi!vFvP delta 48 zcmew+`a^VrB7bIHL1~FzG6QpRPGVj9nUh+gW2))tAij}$P)zQg~ERvfSv9hxP0P2toZ~y=R delta 48 zcmZ23zEXUGB7bIHL1~FzG6QpRPGVju8B41i&PO4rq19NgtVqQAK!~}5`kjO@_cvj}7S4Ss*WS880l$Dzm0CuGi AGXMYp delta 46 zcmca0dO>u8B42J|W}aR$19NgtVqQAK!~}5`kjO@_cvj{qEC(llWS880l$Dzm0B(g3 AWdHyG 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 38a356d387d2e0d1b0188b0d2daa1981ad7b3b59..36b3bb6eecb042929be4b89885c581079f40d19d 100644 GIT binary patch delta 45 zcmX>tbXsVF5^rftbXsVF5^rWss$Mb!b8=2%UOL0X1aX!$pvXqAcvj{qEC(kyvPf(`!rIOZ09E}C A>Hq)$ 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 91243727d1052ecc610c8687d8b1537e3145ba79..ef55c402d68ffc9d2ba7968085aeeb808f9e602a 100644 GIT binary patch delta 54 zcmdlhdsKFUqEJd^VorW~X{uf_19NgtVqQAK!~}5;nCM2Ycvj}7S4Sr|vPf(`!upc~ E01ng>{Qv*} delta 36 ocmX>qyH|FCB1>*!X5K_i2)!{Vo|SnD%fZQvEK-}#v3}h($ 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 1ebd86847064fe7ed835cf6ac8a1bb6e79de1b3b..0c2423ba575130331d96e451ccf24a74b135fa71 100644 GIT binary patch delta 54 zcmcbq@K9lbqEJd^VorW~X{uf_19NgtVqQAK!~}5;nCM0?3s&Z)S4Sr^vPf>8$GV#f E02EIXGXMYp delta 36 ocmaE;a8qG|B1>*!X5K_i2)!}Lf|Yp+%fZQsOv0NNupZ*!X5K_i2)!}Lh?RK?%fZQsOu~~7Ftcx7$Qr;404ypEwEzGB diff --git a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@time.h.blob b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@bits@time.h.blob index a2da5a2c530c528edadb60fff0fca0b501adff9b..74958a42f5ced840f59c5df0ecda94a38db858d2 100644 GIT binary patch delta 36 ocmX>gy-#|AB1>9kPU=K82))tAk(IgW)zQfpStU2GWEJNC0P@rf{{R30 delta 48 zcmdldeL#AGB7bIHL1~FzG6QpRPGVj0|1iA B5Cs4L 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 527a57bc47574f136196656a03e4cd6bdc4030cf..f48e1e8c6e8f50cd38cc86b31b328933dbd0b055 100644 GIT binary patch delta 46 tcmeAYnItknk+Zm@s5H5xv?z6=8WLxtPdqDg)2pMCA2La9KF;dQ0sxe%5v%|J delta 38 pcmbOv(j_uMku@`~ptNM77L>6uB%YOd3d_OCjI5HI&$BwS008?H41oXu 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 182919c12a25b61e8adf83d4492a38473c8edf5d..8c5ac565a72ef5b0c5d0c4d097ad3ee0073f8107 100644 GIT binary patch delta 46 tcmdlayi0h3B4=?)QE75XX;JD#H6+ePA6r)DrdLNNC$dOvUc$=90sxzK5di=I delta 38 pcmdlbyh(V1B5P(|L21cEEhuASh%GDg6qbXNA2LgAUdPJA0ssnh4Kx4% 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 9b8162facd556638241dcd10a2281a60f3f6f872..5f7cb3a28199ab9b8a4f7d6de86620088d840c68 100644 GIT binary patch delta 56 zcmez4)8ae9LAbc2s5H5xv?x_CnSnVuCowObVPc~=CtP@Ac04O{)2pMC1DT~ZKWCk) F003!I6|(>U delta 42 ucmZqi{o^yifi*L)ptNM7ry_*0u{fTUc?!$H$$>1wlOM3KZGOi(O#uL6sSpPM 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 4e9c37eafc9f4a46277e9da381f21acf4cf230c5..81754144e5a0515f6d5a3007892719a8d5cdc998 100644 GIT binary patch delta 44 scmcaCa#Li2B1cMQVorW~Y3f8Z1bd@TJS%h4tD}=2GD&Ve&f3EQ0DHm_H2?qr delta 38 pcmca9a#>`8B5P(|L21cEO(bg6qbXN8JVOuuV5`=0RZ~#3~&Gd 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 bb1bf34b2f4facfb40ffb0d656d1221528e9db21..422637c88a607150c497226b3bca84248cc9e767 100644 GIT binary patch delta 44 scmZ22wNYw`CD>=B6~_^VorW~=|oK>7;|H=1uOFumV=W6*@Y(;u&{4l!5YdA0F^@z^#A|> 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 f64cf2f6cafa33e26340e35573d1df3aaa0e407a..a017136385fdc52871f185609c188c2779e90a78 100644 GIT binary patch delta 36 ocmdliy;^#LB1>9nUh+gu2)!{Vo|U=j)zQg}EK-}#u|8!70PfZeKmY&$ delta 54 zcmZ22y;*vKqEJd^VorW~X{uf_19NgtVqQAK!~}5;nCM2Ycvj{qEC(kWGD~hg%KD5Q E0Q##Eng9R* 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 9bb7e094efbc1e793533844c65c875ed18eec126..a898e464622bff7b19ed0bcaaf4fcd061c86351f 100644 GIT binary patch delta 44 tcmcaBabIGBB1dsaQE75XY0*RtB{+LypeZYJ)2pMC8(AbbFJj%z1^|g+5nTWP delta 46 wcmcaFaaUr3B6~_^VorW~=|oK>7;|H=DJ%07mV=WwG7C?>&&sxW3F~e)0Ftf{-~a#s 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 1204bb0bb30e7a7e81c1f1214af73b3ed5a25961..dad179a20db26464091c2251dc8121d097f04f45 100644 GIT binary patch delta 36 ocmaDX`cQO&B1>9kPU=K82))rKo|U=j)zQfhnItzKXO&?E0R4Imga7~l delta 48 zcmaDT`dD;=B7bIHL1~FzG6QpRPGVj9kPU=K82))tAf|a@H)zQfhnItzaV4cGP0Pv;_WdHyG delta 52 zcmdlbvPWcsB7bIHL1~FzG6QpRPGVj9kPU=K82))rKo|U=j)zQfhnItzKXPwLf0Q;>C<^TWy delta 48 zcmca1a!X`_B7bIHL1~FzG6QpRPGVjyhpB1>9nUh+gu2)!}LoRzuh)zQg`EE1cSuwG{Y0052+y#N3J delta 54 zcmew?@>^trqEJd^VorW~X{uf_19NgtVqQAK!~}5;nCM0?b5`alEC(lFWR}`IkM$}G E02iMVS^xk5 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 05e3392ebb3000089a907b82e149098394dceda6..f5e389a1a49102ffa53e3a34182b7de4b7195865 100644 GIT binary patch delta 42 wcmbOyI!|sc2I1BB1>9kPU=K82))rqkCnOU)zQg}%u<`Dv#wzU0PBnlmjD0& delta 52 zcmX>oc35nJB7bIHL1~FzG6QpRPGVj9kPU=K82))tAfR(xF)zQfhnIt#QVC`cA0P6q^B>(^b delta 52 zcmZ1?u}oruB7bIHL1~FzG6QpRPGVj9kPU=K82))tAkd?XV)zQfhnIt#QWWCA?0RG4g`2YX_ delta 52 zcmaDO_D*bqB7bIHL1~FzG6QpRPGVjB1>9kPU=K82))tAjFq|R)zQg}EW(oonAkVZXLaEK04Bx_G5`Po delta 49 zcmaDT{aAW}B7bIHL1~FzG6QpRPGVjvQA`zB1cMQVorW~Y3f8Z1bd^8B`b5&tD}=2GD&V;$lA^V0BUp)jsO4v delta 38 pcmZ1{vO;8nB5P(|L21cEO(bg6qbXN8Cj$@uV8Is0RRB{46XnG 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 f04a49e6fe13b1a42df886d9763dbf75a8957cb8..3101372e622831d19ef387d491782e7a0891a1fe 100644 GIT binary patch delta 36 ocmX>ra$019B1>9nUh+gW2))tAf|a@H)zQfhnItzaU|q`s0Qa&DumAu6 delta 52 zcmX>ta#m!5B7bIHL1~FzG6QpRPGVj7;|H=Ei3aBmV=WYa!71m&FU=-0Abt@sQ>@~ 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 fbc4612020dd9a955a3c6985666d972bb14915e4..0bb2e607640819adde86059f0f03a6c46bd44285 100644 GIT binary patch delta 54 zcmX>sby{kIqEJd^VorW~X{uf_19NgtVqQAK!~}5;nCM2Ycvj}7S4Ss* E020R&{Qv*} delta 36 ocmX>tby#YGB1>*!X5K_i2)!{Vo|SnD%fZQvEK-}#vDUH!0O`C8AOHXW 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 62a2f09ae3499e1223ddc0a208e176f63af628e7..0b033b2adc36deaa623b96338ee1becc683e5f6b 100644 GIT binary patch delta 54 zcmZn=?+~A$D3p?!n3JDgnyQz~z?__un3v8lF+rRICc4opo|U=j)zQfx*(En0W!=pR E0QNHzs{jB1 delta 36 ncmeAWZxElL$da3wnKw}rLT?O;XJwwka&R&ui`3?Gth-nN*A@%U 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 bb3661148aea8ffffba43e17f402675e94e3633b..9863e92dfd520fb05b9d73e1653d5e3212ac0f21 100644 GIT binary patch delta 54 zcmdlWy+e9}qEJd^VorW~X{uf_19NgtVqQAK!~}5;nCM2Ycvj}7S4Sr|vPf(`!up0C E00@T@(EtDd delta 36 ocmdlXy+L|{B1>*!X5K_i2)!{Vo|SnD%fZQvEK-}#vA$vl0OhC*X#fBK 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 e4b5777df4b1f476d71794ec513fbd06fde83338..0df941655ed7ed6200408a581fb7b787f4d15f9a 100644 GIT binary patch delta 46 tcmdlda!h1`B4=?)QE75XX;JD#H6+ePpLka0rdLNNKV*{Je4MqM1pud75=a05 delta 38 pcmX>mvQK1!B5P(|L21cEEhuASNIWa^6qbXN8CfMapJy#+0RRe=4IKag diff --git a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@ctype.h.blob b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@ctype.h.blob index c240c8394c4f125d6d2ba39c296235f9ad605ed4..9f1400cd918abe1d47aaec3516f066d76497e21b 100644 GIT binary patch delta 48 zcmaD>c&TuLIZIk;Uh+g6MKHZF$(5D4>DAH6fho(BhSvbUt_DAH651Ax4A7?$l3;>ip5+DEo delta 38 pcmeAdZWo@Q$eNi~P+Brk3(D9S63@y!h2`L6Mpntq=UERh0|5Hy4D|p2 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 6707c493ddd56f483322c9253514ffa8084ec7fe..7e1d0d6a3ff1c62fe080d4671e1544005043042f 100644 GIT binary patch delta 42 pcmcbs^;BzuB4=?)QE75XX;JD#H6+ePA17AkrdLNdPh>sA4*+iS5ikG% delta 38 pcmaE=bysVGB5P(|L21cEEhuASh!ZRG6qbXNC$dOx-o(0@9{?PW4kG{n 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 e862d1207487fb5ea65658db7b0de6081f2736e7..0df69ffac7037391e2132dd909cdcd124eb18a04 100644 GIT binary patch delta 44 tcmZn=ZxWxN$WdHURGM5;S~O8Z3C`Xan83>1^y=tjMi!~f=U6wf0sv_D5N`kg delta 42 scmZn?ZxElL$exm!n3JDgI#E*z#@ra3z{)&@<=|vSR>{rhSvRu+05IeZOaK4? 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 9b599f0af3711278de543e94bd70a21562e13a82..e007067ed1981e18e0885f314fb746493173ea9b 100644 GIT binary patch delta 44 tcmew%^h;=hB1dsaQE75XY0*RtB{+LyU;-<1)2pMC8Cj$@pJQFc3;>Uj5la97 delta 42 scmew*^h0QZB6~_^VorW~=|oK>7;|HA0xR$qSi9COa^*Z9c?$%mx6BkP1!! delta 26 icmeBZW$b8W+_03Dc?!$H$qSi9COa^*Z9c?$%mx5}{t0#f 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 b384b8fa0ec3aa11673739c71ca5f6e4656fe51e..f81dca1dc76498a1e67d892e3b3c6db94ad4949e 100644 GIT binary patch delta 40 scmZ2ww8&_JB1>9nUh+gu2)!}LnU%Te)zQflnMEcWFtcsm#9AQ?04P2V7ytkO delta 54 zcmZ2vw906LqEJd^VorW~X{uf_19NgtVqQAK!~}5;nCM0?XIADZEC(lFWR={!lC@G8 E00M*(zW@LL 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 69924d805e6f9899a7fb6b5ce8944b7bc27f7b52..a4ff4c041be7274f361f8cef0d280d62e51a951a 100644 GIT binary patch delta 46 tcmZ3NxGiylB4=?)QE75XX;JD#H6+ePA4gW^rdLNNKV*{Jypokw8vwaG5<36@ delta 41 scmdm%xGr&mB5P(|L21cEEhuASh$AcW6qbXNCo+pn+`zhdBP**m07`ET-v9sr 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 d3a382868db9aad81e648c6f603bae2c27e1c267..9d9195cfc9239b070263cdfd7e7aea3eeab06b85 100644 GIT binary patch delta 40 tcmdm{zeRt74NF>PPU=KQMKHZFJ)V`h>DAH62U#R1pW)=*{Fe2kAOJjk590s; delta 38 qcmdm@zfFIF4QpmzL21cE2So^DV`@Ar^AwhYlNFgIH$Py#A_xE%4h|Fm 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 5e8db309ba9b0e441a593ae16ccade6fac324880..e4609bf14200bc858be9abb98e1730fb8eafa729 100644 GIT binary patch delta 46 zcmZ2(zubO;B41i&PO4rq19NgtVqQAK!~}5`kjO@_cvj}7S4Sr|vPf(`!unVe0Cdn0 AtN;K2 delta 46 zcmZ2(zubO;B42J|W}aR$19NgtVqQAK!~}5`kjO@_cvj{qEC(kyvPf(`!unVe0Bo=i A-T(jq diff --git a/.ccls-cache/@@home@huck@.repos@odot/@usr@include@time.h.blob b/.ccls-cache/@@home@huck@.repos@odot/@usr@include@time.h.blob index 6cafbc860ce51e1fa2c8ef4f667a6565acbd857a..86165996f1b9ea3ddcd6d5ba3cf50339e2f758c4 100644 GIT binary patch delta 36 ocmbPG(pNG;ktHoNCv~D4gx=^A&&u5N>geQ$Op=?AvwE5U005i~_y7O^ delta 48 zcmeAxnNTu8kv}u9ptM9UnSnVuCowObVPb+fD_CfwS3E286qbXN8(AbaA7S+}0RW-( B5V8OO 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 c81e132bcc13126f634db9877b352bd0ef9a3e2f..fe4ca5609374d7fe0e3e40b9fa322153e22c3882 100644 GIT binary patch delta 44 tcmZ1|xma?7B1dsaQE75XY0*RtB{+Lypb0B;)2pMC8<|Bm&tYX{2LN-{5G4Qr delta 42 scmZ21xlnR~B6~_^VorW~=|oK>7;|H=2`lpymV=WGS)?{EVg1hr06OjtxBvhE 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 a744aaea4fd4618c99feb8837761e902a0fee456..a55158979fb77260141e18bafde3d3e68a137429 100644 GIT binary patch delta 44 tcmeAb?H8S($WdHURGM5;S~O8Z3C`XaXu`_e^y=tjMi!~fi&$T?003#)5M=-W delta 42 scmeAd?G>G%$exm!n3JDgI#E*z#@rZe!pb~_<=|vSR>{qaS>Lb#05O{mLI3~& diff --git a/.ccls-cache/@home@huck@.repos@odot/dialogue.c.blob b/.ccls-cache/@home@huck@.repos@odot/dialogue.c.blob index f80a80b5daa3c2292efe7316e1cc3fa6fd0b0531..394b920a1173e16ff3c5b973d8ace6aca06cc14a 100644 GIT binary patch delta 20 ccmZ21wODGyaaQK0S4SrovPf-y!fMYB09)z^F8}}l delta 20 ccmZ21wODGyaaQIjEC(kSvPf-y!fMYB08+RIR{#J2 diff --git a/.ccls-cache/@home@huck@.repos@odot/file.c.blob b/.ccls-cache/@home@huck@.repos@odot/file.c.blob index e600dc336ec8dd093d9f7624d5335efc958ad6e3..06ba4f6dd24f6f3d16846e3349eac4bafccd20ed 100644 GIT binary patch delta 20 ccmbQLJym=8kS4Sr|vPf(`!g`S(09%*{p8x;= delta 20 ccmbQLJym=76EC(kyvPf(`!g`S(08(ZL#{d8T diff --git a/.ccls-cache/@home@huck@.repos@odot/func.c b/.ccls-cache/@home@huck@.repos@odot/func.c index 4d025af..06fe268 100644 --- a/.ccls-cache/@home@huck@.repos@odot/func.c +++ b/.ccls-cache/@home@huck@.repos@odot/func.c @@ -4,13 +4,13 @@ enum color {BLACK, RED, GREEN, YELLOW, BLUE, MAGENTA, CYAN, WHITE}; int listcheck(struct task t){ - char *s = malloc(t.length* sizeof(char)); + char *s = malloc(strlen(t.task) * sizeof(char)); fp = fopen(TODOLIST, "r"); if (fp == NULL) error('f'); - while (fgets(s, t.length, fp) != NULL){ + while (fgets(s, strlen(t.task), fp) != NULL){ s[strlen(s) - 1] = 0; if (strcmp(t.task, s) == 0){ free(s); @@ -21,38 +21,9 @@ int listcheck(struct task t){ return 0; } -int geturgency(int n){ - if(n > 0 && n <= 10){ - if (n > 7) - return RED; - else if (n > 3) - return YELLOW; - else - return GREEN; - } else { - error('r'); - } -} char *gettime(void){ - struct tm *s; - time_t *t ; - char *c = malloc(16*sizeof(char)); - - *t = time(NULL); - if (t == ((t) - 1)){ - error('t'); - } - - s = localtime(t); - - strftime(c, 16, "%y-%m-%d %H:%M", s); - - if (c == NULL){ - error('t'); - } - - return c; + return NULL; } int linecount(FILE *fp){ diff --git a/.ccls-cache/@home@huck@.repos@odot/func.c.blob b/.ccls-cache/@home@huck@.repos@odot/func.c.blob index 2f3e9faa942eea7dd6a82a670733c84191b724a0..fbb01542509103c54d7d87fd219002672ed05d05 100644 GIT binary patch delta 742 zcmaKpTSyd97{|{yGds+VXC`-?UB_{DXLQ$fc3Vx#OigH$QUj5K3L-Q`G|f_RB_g5= z(d8+Uk6zSziR!ILN$?@);!3^sQcw>SL{CN0?IFabJqs;9bso;;^5_m~HY7yVm>s1()lN>QT2k}Q)0i&Sxh5Z+sw zSs9r9vhu*Y*MDvCMcnt%JG@zWG<`5}iL)I$=~ZUWPd#~Ed7NL3rJ06ztZjH?s&}y# z6KZwPphiy2ASM$dgaVuKxxYzZFy2twaG%nJ2WYh)Xw*2?kil$|`ddq?X2@az;b!(i{*(5(9={_t(S@ZTGl zk+&%9p#p=q<*rt7jyYaCpb!9ASX*a%D5ONZvo&9zwhzDhjYjdFb^lTX%d%nupcOcB zMk@&Q5A{tr{X~{?DM3Vw=p00(h(4!KLO9#7O&uJ=F)0*&qit8`PA54yPAC;}jOALX zRZd{)DQ~QNw)?`%_8+TxI%U^Uh=!t!ez*75P4$F2pSO*QCi(0ZyETnjEyZ`xPW-8D z!Wk_V;Kdek2L;+pTPdhXbt9fGsR4p>C5L2EXc4alg5}}ju*N}H3Y!agw-rW(X+bO$ zGbonobvdX@-+;?{J@y30*Jmatjt-2vleLq5nURE(bTY#y2gU|n7C<7AYedw=5C@_p p4&wLVwgB(9{Otet)1EYxg~}q>5o!)Jip>Jh2HGfq8dqHb{sQ$R&J6$n delta 1709 zcmZWpO>7%Q6rNdcoV7D?)|Rn1nsZE4O%tcs z+onyaLP0@2ltY+ED1uX?sue<&Xi+K-NCaA_pb|w0L?k3YMH~u;A_OPGGPCY(g1U#D znKv`VQ0c-POnCxSW4I zoP)ULPP17#tKq9iVPqZOMvBMfl$tI0#l@TLZ+v{#h*n1e#V_-+Id0*% zm}3v$BVqwn@uw}hCfMq4mGK?-Q}_e-(9WJO#$LTGac@?tx;#9wmsdE8@AeX3|2c;%z!>*p8l&=Zu29gZ4kKJD^Q z!(5U}3I@Ki^7Bt;y*H?Zvi{$lM!IajcZ+(ra%L^>siGutG{pcksz`AW&(Mxz38OMQ zN6SwHQZ^kG4;E^&Rx1%hg(xPUugB$jWtN`F=cfwC=sYerq;t>N@^o#gpj+FUM7PPG zepm&P#BYFW0gz^ZqH|%%(-FDU*xUF+TUx*<+#I_#{{1iC;fUwSIZJ~uEv3UOG>-oI z`~w0X-=QBrTza8YCWtrXD6fN1$jk=uZ2S3#ETCO#sBns(IMPR|BhN->yEiDDI0-x+ z*1{AtZ#`s51x5l9k%cSPwly-g?CdT9c;55kT+m)q`BsQv8FM1{%SnPK!)JU9%y1cT zrIjFN2801ofvC^1B3`Jn2x36>kLa%5jUng-q}C@?PGtg)7#m2 zHi=*^kQ2%6AD=$A?7`(WelDBMZYP4UIBZbW>L3sxy#OPf5t)GzE+X3rG2tY*gxe33 zdy-EOhgM@z{8dVXTns9~7{wCo48~R{23GJ0Jc5EOgb-{O+6fY8N2nu=ApW5(;)EW} zlS24JTilUFIs9&0&vRDKH8fTvB$>NYlB21@BzeYSTYEJs$LVs6ZmBAX9Q8*742*Ko zVL+iel44RqFvX{Q2=)eg1?=OynxUwOaTeknpLaq@ky0#PQ|U|+v)kLf+v#Clo?&oA=?O^)Q+Qioorrp89-! zeg^h&ef~>kQnNx<^uvCkpH@kI)Yp9V!YMCJs$Qrc%48->)d~F|;QS;S0JOImXTq65 z5XI3p5@*u;5~n8`r||FI4mgTA-(Zk+NiNb@Xc+CyK~+-8JSC<=c+{8iYEF^_6hj&d KJ&GsB!v6r|(&fR|pa{dJ3KMBx|5|J*lpq~Eoyc=CU~W%Unht5xebCkJz<8we;#{GU?0 zW8$0nq05+o27&bd|CljHw(UuYW(b~}_{l(UkXyqWK?46BrYl#mFc ww16~_lrfSq;bD|hlhfc~RFYDfJcB=hkzq2cKq#lGoT>s3qnd!)=$953>1XC8=aiL-^}7NqKBOw?D{sM*BI zJcZ@pn~$>|U^d|T|M{`8*AFq551Dx-3OSj@CCM47$=Mp33>+Ln3}C@khLQVxlD@iC#cH#0j)f3Q@0rCIqG8?^? z@w$1sEI%_vA+@L|zepoFBe6)6fs2a^*>p7pHLc0hxl9-hCZFL_VC0$nmMgtpLP_QS zc2n6)^&ef7nSsVBD=2&Y=jVU$=l`wh$shrcF1QsS0ieSq{!gjhG4aj(&}AS2kVF1| z%$TEbOKtBxkO0UVa4&-dco;$M_&>e*M&+|UX0OzWlGLI+1&|{r&*SzFhFJ#_&(A9^ zQ7FwT&P>lsO;IS$$S*2U(9(*J2ZwQdQhZK+GBE6HY^0EU#{_aX&??3Vt_T$ehRtud zB^ZHTWaZUSW|K6Lw318LNWr4)dPmHJX;FO{zBVWWH}}|D>)}%d{`+>p1^xpiA_pCN=SrJT0j~|${5L* z@G#1$$!YK~Dyb;}No^_Z$@zQ{-|q%WX9S&v^A E08XT=o&W#< diff --git a/.ccls-cache/@home@huck@.repos@odot/main.c.blob b/.ccls-cache/@home@huck@.repos@odot/main.c.blob index 8b7bed5ef5c52a68e67f1c5af00956bc1596dea1..ca1a5167a231dfae28496bf10bb300151c741f61 100644 GIT binary patch delta 99 zcmZ3XxLa|=8kS4Sr|vPf(`!n&13ySSvNG`U2fB(XSKlYxUnhye_EKqQlphLF`? s6$eHc4H*!=76EC(kyvPf(`!n&13Mw5YqLx=$kct9kRkcN;I3!{vNj1|k~C0q?m ej4YGYd6OAgHuv&IF|q??Y-H?MHoxOL%LoALQxRbR diff --git a/.ccls-cache/@home@huck@.repos@odot/odot.h b/.ccls-cache/@home@huck@.repos@odot/odot.h index c465e23..897570b 100644 --- a/.ccls-cache/@home@huck@.repos@odot/odot.h +++ b/.ccls-cache/@home@huck@.repos@odot/odot.h @@ -9,11 +9,9 @@ #define TODOLIST "/home/huck/.local/state/odot/todo" struct task { - int length; char *task; - char *date; - char *due; - int urgency; + int date; + char *group; }; char *getnote(int, char *[]); @@ -23,7 +21,7 @@ void add(void); void rem(void); void show(void); -int listcheck(void); +int listcheck(struct task); int geturgency(int); char *gettime(void); diff --git a/.ccls-cache/@home@huck@.repos@odot/odot.h.blob b/.ccls-cache/@home@huck@.repos@odot/odot.h.blob index d1f8105d6d57d61a4d4e166ba456ead25be117f9..519e307eab40e65ec045b25968ea1b114eef77bf 100644 GIT binary patch delta 1504 zcma))eP|nX7{`CV%O$;BE@|4lU7FnGt&M5gG+n5rD{eaGI!3#x6`b!~np~4xYp&#_ ztteKIGK)ADAK2KKsPhF8ML|}qgRP8hpqt=Zw^FhQAGnK*UWp1&lv%^wN|E*$rK zp6~bj{GMOY_gO$6M$3n;ojyb1Vw7)Gl1jcUjp)QkJd;9^31x7%l*r3tQY6vR5=l$( zq?9F`uEG^}v~KQ+7IN9BoJounl2VjV(RH!5SX+B^qN{VDvm-K^h>XaY!bBvMDMSb5 ze6GYKl+2KvB1X&0GCEUyqQCQhHI5brlG2czk#hgE!WGI=T=W+|6~romvP&+X9EcBA zfmU$f-LQ#@z%|?i8LA1s)oNi67GMsyfSGEA*Rdafde~7Vl^`-B@?be9F>}HRS_iji zoNz$XSnkizHPElw0*jQvl2DXkSsIX)fuTZ%oSKr!flB$|CV7r&TH$@l1a8^~b2T;a zvnEKi1is3vVpTO6Y@nZn=NS%uqCF7PdPz_N)N5VPuT{vqj+P&jCg5{ygBPhr_)hx< zysZns3p!UB+=aDpQ73}ECIB~dURYmq{njeC|6Grf`0_|dAlh84%ZjlJxxA#ZeOCD-(7yO39M=bI9^Mng*n>PVQt8@!_0^t+ZQXE? z6>Lt<*?_SVIfJBf>h7_rclKUifZq(hexBjo81slPRnGUKOSLacK{=E6j>x%uA}u9` zL%DpmkjQ)U@!W7TVwieV{*^*H7zdGcAV&vjmLFI5^tk3H;fB6xviHp|{(SI={ZM%p zkrjE2MI?3-Z2Ii- z$z&PUt-%)7V#e5lEN%ktlbQ`zE}wmFOaYa(+pMgW)U3!_s{QbQcyzlfyAM7zglu(e zogL#kR9DJ9Hh$;fbSs~N7A~web7nG;8JXcxE)@=-07K)Mirw13M*aHtANR-1dvB^M z%Y#3-_DK^(7>&9Ry!4Q||Gjf)6? zu^1BDY3wn1$h%SfsBM0|>%!63dbag#@rH*+5y#P_HNXYT6eiiss^U8Q$khDSUyVc( z!K~3W>1X_Q3j2}YK2!d19Dkn6C3$kWyQFDeE-%-+G)b3cYctcL>jrafb+e;XsESbcVId7k)-I`e z@wKj95%G&J-QNznq2fT?a85z!2R}@-Q&2~lQK?wwhUb7W9{m#wUaw{ ze6fOfgs{q~62>Z0@1?M1`T3WQigPlQ?e}c{_czMfwf53V&(|X}w?pI@jPYSlfCNGq2T(vC z;hm26=APO8s10rl37d;|(cxUk1+tjyiJ=%_@j~OUjXSG#_PeYXP9JU2`WDYS$iS66MO^3<>8qZ>(h8$sE!!q z!_;Q28MsLi6)%g`xVn|aVKGeK9nj^FY%xCOWH9X!h8zidltjG@j-se{0bXy}1;rL0 z9|=T4433~k2no>HvUj-Ir5CZ8^=iH68%x|&72M8m^^TQC>` z5t@v%(wVvMlam7tMzN%0c^wI lW>u+{Yng^;)L%)`{Z&({;jbD{d$l9i)5=S4Sr^vPy0~&l=1H09VKdw*UYD delta 20 ccmZ3aut;IUW>)4YEC(kuvPy0~&l=1H08W+$-v9sr diff --git a/func.c b/func.c index 4d025af..06fe268 100644 --- a/func.c +++ b/func.c @@ -4,13 +4,13 @@ enum color {BLACK, RED, GREEN, YELLOW, BLUE, MAGENTA, CYAN, WHITE}; int listcheck(struct task t){ - char *s = malloc(t.length* sizeof(char)); + char *s = malloc(strlen(t.task) * sizeof(char)); fp = fopen(TODOLIST, "r"); if (fp == NULL) error('f'); - while (fgets(s, t.length, fp) != NULL){ + while (fgets(s, strlen(t.task), fp) != NULL){ s[strlen(s) - 1] = 0; if (strcmp(t.task, s) == 0){ free(s); @@ -21,38 +21,9 @@ int listcheck(struct task t){ return 0; } -int geturgency(int n){ - if(n > 0 && n <= 10){ - if (n > 7) - return RED; - else if (n > 3) - return YELLOW; - else - return GREEN; - } else { - error('r'); - } -} char *gettime(void){ - struct tm *s; - time_t *t ; - char *c = malloc(16*sizeof(char)); - - *t = time(NULL); - if (t == ((t) - 1)){ - error('t'); - } - - s = localtime(t); - - strftime(c, 16, "%y-%m-%d %H:%M", s); - - if (c == NULL){ - error('t'); - } - - return c; + return NULL; } int linecount(FILE *fp){ diff --git a/input.c b/input.c index a0dbedf..20cf7bb 100644 --- a/input.c +++ b/input.c @@ -32,15 +32,6 @@ void getopt(int n, char *arg[]){ strcat(o,"s"); } - if (strchr(c,'i') != NULL){ - if (isdigit((int) *++arg)){ - urgency = (int) *arg; - } else { - error('r'); - } - } else { - urgency = 5; - } free(c); } diff --git a/odot.h b/odot.h index c465e23..897570b 100644 --- a/odot.h +++ b/odot.h @@ -9,11 +9,9 @@ #define TODOLIST "/home/huck/.local/state/odot/todo" struct task { - int length; char *task; - char *date; - char *due; - int urgency; + int date; + char *group; }; char *getnote(int, char *[]); @@ -23,7 +21,7 @@ void add(void); void rem(void); void show(void); -int listcheck(void); +int listcheck(struct task); int geturgency(int); char *gettime(void); -- 2.45.2