From ff0f7b217248bd60e7bfaf995c5171567a1ea580 Mon Sep 17 00:00:00 2001 From: Huck Boles Date: Sat, 22 Oct 2022 12:00:02 -0500 Subject: [PATCH] automatic backup --- .../@usr@include@alloca.h.blob | Bin 3031 -> 3029 bytes ...sr@include@bits@atomic_wide_counter.h.blob | Bin 3401 -> 3399 bytes .../@usr@include@bits@byteswap.h.blob | Bin 3839 -> 3839 bytes .../@usr@include@bits@endian.h.blob | Bin 2916 -> 2906 bytes .../@usr@include@bits@endianness.h.blob | Bin 2573 -> 2563 bytes .../@usr@include@bits@floatn-common.h.blob | Bin 6614 -> 6604 bytes .../@usr@include@bits@floatn.h.blob | Bin 2929 -> 2919 bytes ...@usr@include@bits@libc-header-start.h.blob | Bin 3205 -> 3213 bytes .../@usr@include@bits@long-double.h.blob | Bin 2494 -> 2494 bytes ...@usr@include@bits@pthreadtypes-arch.h.blob | Bin 3535 -> 3535 bytes .../@usr@include@bits@pthreadtypes.h.blob | Bin 7515 -> 7505 bytes .../@usr@include@bits@select.h.blob | Bin 2816 -> 2806 bytes .../@usr@include@bits@stdint-intn.h.blob | Bin 2993 -> 2983 bytes .../@usr@include@bits@stdio_lim.h.blob | Bin 2778 -> 2768 bytes .../@usr@include@bits@stdlib-float.h.blob | Bin 2389 -> 2387 bytes .../@usr@include@bits@struct_mutex.h.blob | Bin 3783 -> 3773 bytes .../@usr@include@bits@struct_rwlock.h.blob | Bin 4195 -> 4185 bytes ...sr@include@bits@thread-shared-types.h.blob | Bin 4851 -> 4841 bytes .../@usr@include@bits@time.h.blob | Bin 3528 -> 3528 bytes .../@usr@include@bits@time64.h.blob | Bin 2568 -> 2578 bytes .../@usr@include@bits@timesize.h.blob | Bin 2490 -> 2480 bytes .../@usr@include@bits@types.h.blob | Bin 9860 -> 9858 bytes .../@usr@include@bits@types@FILE.h.blob | Bin 2641 -> 2649 bytes .../@usr@include@bits@types@__FILE.h.blob | Bin 2588 -> 2578 bytes .../@usr@include@bits@types@__fpos64_t.h.blob | Bin 3379 -> 3369 bytes .../@usr@include@bits@types@__fpos_t.h.blob | Bin 3325 -> 3315 bytes .../@usr@include@bits@types@__locale_t.h.blob | Bin 3509 -> 3499 bytes ...@usr@include@bits@types@__mbstate_t.h.blob | Bin 3167 -> 3157 bytes .../@usr@include@bits@types@__sigset_t.h.blob | Bin 2795 -> 2785 bytes .../@usr@include@bits@types@clock_t.h.blob | Bin 2628 -> 2618 bytes .../@usr@include@bits@types@clockid_t.h.blob | Bin 2658 -> 2648 bytes .../@usr@include@bits@types@locale_t.h.blob | Bin 2685 -> 2675 bytes .../@usr@include@bits@types@sigset_t.h.blob | Bin 2728 -> 2718 bytes ...@usr@include@bits@types@struct_FILE.h.blob | Bin 6896 -> 6886 bytes ...nclude@bits@types@struct_itimerspec.h.blob | Bin 2891 -> 2891 bytes ...@include@bits@types@struct_timespec.h.blob | Bin 3118 -> 3108 bytes ...r@include@bits@types@struct_timeval.h.blob | Bin 2934 -> 2924 bytes .../@usr@include@bits@types@struct_tm.h.blob | Bin 3563 -> 3563 bytes .../@usr@include@bits@types@time_t.h.blob | Bin 2608 -> 2598 bytes .../@usr@include@bits@types@timer_t.h.blob | Bin 2645 -> 2635 bytes .../@usr@include@bits@typesizes.h.blob | Bin 6390 -> 6388 bytes .../@usr@include@bits@uintn-identity.h.blob | Bin 3405 -> 3405 bytes .../@usr@include@bits@waitflags.h.blob | Bin 2954 -> 2944 bytes .../@usr@include@bits@waitstatus.h.blob | Bin 3514 -> 3504 bytes .../@usr@include@bits@wordsize.h.blob | Bin 2620 -> 2628 bytes .../@usr@include@ctype.h.blob | Bin 14556 -> 14556 bytes .../@usr@include@endian.h.blob | Bin 3838 -> 3828 bytes .../@usr@include@features-time64.h.blob | Bin 2437 -> 2445 bytes .../@usr@include@features.h.blob | Bin 5477 -> 5475 bytes .../@usr@include@gnu@stubs-64.h.blob | Bin 2946 -> 2944 bytes .../@usr@include@gnu@stubs.h.blob | Bin 2426 -> 2424 bytes .../@usr@include@stdc-predef.h.blob | Bin 2898 -> 2906 bytes .../@usr@include@stdio.h.blob | Bin 37510 -> 37518 bytes .../@usr@include@stdlib.h.blob | Bin 43360 -> 43350 bytes .../@usr@include@string.h.blob | Bin 17042 -> 17040 bytes .../@usr@include@strings.h.blob | Bin 6444 -> 6434 bytes .../@usr@include@sys@cdefs.h.blob | Bin 12470 -> 12460 bytes .../@usr@include@sys@select.h.blob | Bin 6078 -> 6078 bytes .../@usr@include@sys@types.h.blob | Bin 8113 -> 8103 bytes .../@usr@include@time.h.blob | Bin 14872 -> 14872 bytes ...usr@lib@clang@14.0.6@include@stdarg.h.blob | Bin 3235 -> 3235 bytes ...usr@lib@clang@14.0.6@include@stddef.h.blob | Bin 2703 -> 2703 bytes .ccls-cache/@home@huck@.repos@odot/dialogue.c | 13 +++++- .../@home@huck@.repos@odot/dialogue.c.blob | Bin 2585 -> 3363 bytes .ccls-cache/@home@huck@.repos@odot/file.c | 19 +++------ .../@home@huck@.repos@odot/file.c.blob | Bin 5452 -> 5438 bytes .ccls-cache/@home@huck@.repos@odot/func.c | 37 ++++++++++++------ .../@home@huck@.repos@odot/func.c.blob | Bin 4772 -> 5777 bytes .ccls-cache/@home@huck@.repos@odot/input.c | 2 +- .../@home@huck@.repos@odot/input.c.blob | Bin 4266 -> 4247 bytes .ccls-cache/@home@huck@.repos@odot/main.c | 8 ++-- .../@home@huck@.repos@odot/main.c.blob | Bin 4162 -> 4283 bytes .ccls-cache/@home@huck@.repos@odot/odot.h | 17 +++++++- .../@home@huck@.repos@odot/odot.h.blob | Bin 3421 -> 4430 bytes .../@home@huck@.repos@odot/structure.c | 22 +++-------- .../@home@huck@.repos@odot/structure.c.blob | Bin 4516 -> 4296 bytes dialogue.c | 13 +++++- file.c | 19 +++------ func.c | 37 ++++++++++++------ input.c | 2 +- main.c | 8 ++-- odot.h | 17 +++++++- structure.c | 22 +++-------- 83 files changed, 140 insertions(+), 96 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 899af999d4930e4d32140bbcb569888a16d126db..d86109c2cea1605265d76dca91aea3d89be602ca 100644 GIT binary patch delta 42 scmcaEepP&eB6~_^VorW~=|oK>7;|HA0xPqU^@_=itdg70vvRNj07lde_y7O^ delta 44 tcmcaAeqDTmB1dsaQE75XY0*RtB{+LyU;-<1kMFX{j4V={&#|(z0RVin54`{Y 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 b7f5f30f1652f2e8bb0aaab177c78b7b920ff937..492f8654d8c47299a36cba1944c929677d55cbd9 100644 GIT binary patch delta 42 scmX>pbzEwKB6~_^VorW~=|oK>7;|H=F)Oo@^@_=jERvfSu`Xu^07WSdrvLx| delta 44 tcmX>uby8}AB1dsaQE75XY0*RtB{+LypfM|RkMFX{51Ax4FJN8H4gh`45Xt}m 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 5f7f1eba554347afe708d8260cae4d074c823bab..b859ea72b74fe562d9c8e7930825a25c5ac2547e 100644 GIT binary patch delta 20 ccmew_`(Jj$dRAs7>lKq3nWQ$KVKwFi09R`V6#xJL delta 20 ccmew_`(Jj$dRFEh-(`~-nWQ$KVKwFi09_Raj{pDw 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 533ada92fcb2060ebb815a29c388a2af0b9e36b3..9727efa567416e6f6a118d79e366982a8b3308ae 100644 GIT binary patch delta 34 ocmaDNc1vu6B6C`1&O}Wm5VbKlft6Xwdc|Z$R>{rhS*NlB0MB#_H~;_u delta 55 zcmca5_C#!gqHu9ZQE75XX;G?PG6QpRPGVjH8 delta 59 zcmZn`=@prvC|q1pRGM5;T9m4n%)p$SlbDyzFfl=#117xD(}tC~$9LIeMn;jz3e0Sq J7qKR?002`y69fPN 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 691d09dcf11ff9dcb88f08432a610309db867a42..0b6438bdeb0a3ca166b593b606afa872cd001f44 100644 GIT binary patch delta 38 scmca+e8zZ!B6C`1&O}Wm5VbMbl9gG>dd1|8?81{jaIkJ(&Z;j000`6!>;M1& delta 59 zcmX?Oe9d@*qHu9ZQE75XX;G?PG6QpRPGVj{rhSr@Sa0Mh6SUjP6A delta 55 zcmaDZ_EBttqHu9ZQE75XX;G?PG6QpRPGVjykasVi`3@DtgqMry+jKP 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 926d0afa0c32118d3de5315e31fb92fac445ee5e..c179bd3af26d6f2727618d9bfbead2d729ab7aa0 100644 GIT binary patch delta 16 Xcmdldyia&TA1kwx^@`0CS#?veO`J)2P?CZ^@_;?%#xdzuxfJv08N4hXaE2J delta 20 ccmX>veO`J)2P<=r@3P4P%#xdzuxfJv08=am;s5{u 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 58e50ff19753b1d221ebd0779d3422afdf6e98d2..22c68f3209c62552aa9f2c1da31a53dd17f23bcb 100644 GIT binary patch delta 34 ncmca@b{rhS$o6*)*=gc delta 55 zcmca;b=zu!qHu9ZQE75XX;G?PG6QpRPGVj6HovE 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 8374ea6275cdd2cd8c14461e3ad94db22783326e..b844b2568e528981d397c691c9cf8534f25a0363 100644 GIT binary patch delta 30 jcmdlezFd5QB6C`1&O}Wm5VbMbnw43}dd236tO{%ZnI;KK delta 55 zcmZ23zEOOFqHu9ZQE75XX;G?PG6QpRPGVju8B6C`1&O}Wm5VbKlft6Xwdc|Z$R>{rhS-DvO%Zv(` delta 55 zcmca0dP{VIqHu9ZQE75XX;G?PG6QpRPGVj6VU(w 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 7b6c5c2a2045ca49846f6c66d546c6c5c9b9c729..fa813d913db02f8279e2c00dd0fd9150b0904ab5 100644 GIT binary patch delta 42 scmcaAbXjPEB6~_^VorW~=|oK>7;|HA0xPqU^@_=itdg70v$in<07aP&WdHyG delta 44 tcmcaCbX91AB1dsaQE75XY0*RtB{+LyU;-<1kMFX{j4V={&#|^L0|0wm5Gnuw 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 06660e0d4fca6888ca23555bf22b3e372a9e13f1..adf850056c597bad6de551617de65fb3adbfde30 100644 GIT binary patch delta 36 ocmX>uyH|FCB1>9nUh+gO2)!{Ro|Re2dc|Z$R>{rhS$}W<0O!vPRsaA1 delta 56 zcmdlhdt7#cqHu9ZQE75XX;G?PG6QpRPGVj9nUh+gO2)!}Hf|Xgxdd1|8?81{jaIkJ(&bo&S04b&pM*si- delta 56 zcmcbq@K|AjqHu9ZQE75XX;G?PG6QpRPGVj6g2<< 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 aceb24fe773d49437ef8d53b504b7040c526d47f..7601b306a3def63d7d36e8df7dd6489f691e6c0d 100644 GIT binary patch delta 24 gcmX>heL{M}R90ps>lKqHGK)+$U}oFAiB*gP0BvUnr~m)} delta 24 gcmX>heL{M}R95C5-({00GK)+$U}oFAiB*gP0Cf2XA^-pY 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 03bbdaa4431fc5e47c1a2e48e6342403c7e770b6..271fbc11641581202341bc3f82b2fb55bc477e98 100644 GIT binary patch delta 55 zcmeAWnItknQMkCIs5H5xv?x_CnSnVuCowObVPb+f2TXXQX96p;lJ$zojVuzIkFdJ1 F000fY5{Li* delta 34 ncmbOv(jhWIkvT0hXQHMOh}syOz{{rhS)Ew`zbgv6 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 e27db2cfe24276ce50c9073cb5d7c568374adc7a..01e5eb1d3f94f3be460184a29baefa2b0db096e0 100644 GIT binary patch delta 34 ocmdlbyg_(^B6C`1&O}Wm5VbMbj+I%-dd1|2%u<`zvGTA00LMcL@Bjb+ delta 55 zcmdlWyi0h3qHu9ZQE75XX;G?PG6QpRPGVjStK?eVeMrB E0QH{|WB>pF delta 34 ocmca9a#3W0B6C`1&O{9*5VbKdft7iO@`}lfEK-}#v39cn0MZQ$j{pDw 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 cd8f0719168226931601ffce199fe1840793aa42..fe30053a392c6553d13d78e534b11d771e4772ad 100644 GIT binary patch delta 34 ocmbOuGD&2DB6C`1&O}Wm5VbMbij`T(dd1|6tdg5ovKF%d0Kd%(1poj5 delta 55 zcmbOvGDl>BqHu9ZQE75XX;G?PG6QpRPGVj delta 55 zcmZ1}wOML{qHu9ZQE75XX;G?PG6QpRPGVj`B`#;B6C`1&O}Wm5VbMbf|Xgxdd1{GcHzkdEbN F4gf=R6deEn 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 41fdbb605b971b767e2bff54f9125d192d6ac10e..856dab4231535714896c86e51627f46451436324 100644 GIT binary patch delta 34 ocmdlgy;^#LB6C`1&O}Wm5VbKlft6Xwdc|Z$R>{rhS)Z{30L3~BHvj+t delta 55 zcmZ22y;XXGqHu9ZQE75XX;G?PG6QpRPGVjU F4ge$F6RZFL 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 b8e332950abf21c3c90193ee971ffb45873c6915..fe7aca3aca1652c8560c2f3fde88f091282de78e 100644 GIT binary patch delta 38 scmcaFaaCf1B6C`1&O}Wm5VbMbl$BY@dd1|8%)*oJv$Abo!n&Ic00YGhC;$Ke delta 51 zcmcaAabIGBqHu9ZQE75XX;G?PG6QpRPGVj{rhS!GxO&=3mC delta 55 zcmaDT`dV~?qHu9ZQE75XX;G?PG6QpRPGVjivP)!wB6C`1&O}Wm5VbMbl9gG>dd1|8?81{jaIkJ(&N`O`0Q;p3=l}o! delta 59 zcmdlbaztc;qHu9ZQE75XX;G?PG6QpRPGVj{rhStqjq0M2U*EdT%j delta 55 zcmca1@B6 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 428fb166c8d17944113b312942bcaa061406f541..36f8628392dde6a5e9ca25d5424cede347bdeb31 100644 GIT binary patch delta 34 ocmew>@>yhpB6C`1&O}Wm5VbMbf|Xgxdd1{}Op=?IvtDBX0NC0L6951J delta 55 zcmew?@>gVnqHu9ZQE75XX;G?PG6QpRPGVjI!|LUsO11Svc delta 51 zcmaE6`oVO9qHu9ZQE75XX;G?PG6QpRPGVjtc3Nyh6DzZl^@_=iEW(o~u&`~O$GVmk0BFw#;s5{u delta 24 gcmX>tc3Nyh6DxC%@3P5^EW(o~u&`~O$GVmk0B~UlTmS$7 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 97e0b424cceb0f54fe09abf1767006a5c952572a..e70160011d86c7c0346ab63cfafe77b44b373a05 100644 GIT binary patch delta 37 rcmZ1{u|#5mB6C`1&O}Wm5VbMbkd;} Jp3d6K1^{JV6Q=+G 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 fb2d47b02fbde9a1d2fa8b9651deab76e3e8d160..288d577f0dca5cab43a58623c0e844828299791e 100644 GIT binary patch delta 34 ocmew+_C{=iB6C`1&O}Wm5VbMbh?QB%dc|Y`X35P9S+BAJ0MVEWO#lD@ delta 59 zcmaDO_DyVpqHu9ZQE75XX;G?PG6QpRPGVjTIsgCw 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 07ed96006b3e79c78131ee6a4a417e87729837d5..c4868f4e132f89ba8ac04cd6e15b5b6df658f8fb 100644 GIT binary patch delta 34 ocmdlWvP@)xB6C`1&O}Wm5VbMbij`T(dd1|6tdg5ovbM7T0L2{(K>z>% delta 55 zcmZ1`vO#2mqHu9ZQE75XX;G?PG6QpRPGVjdd1|8?81{jaIkJ(&bp2T006)Z8vpta#du4qHu9ZQE75XX;G?PG6QpRPGVj7;|H=Ei1E<^@_<4IV3i(X7v^Z0A1$~RR910 delta 40 ocmexj_|0&FB1dsaQE75XY0*RtB{+Lype-wNkMFY06Iqjm0Z?KOh5!Hn 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 b4df500b5f2259348a370dea2c71bd225ca38891..4e45704c3c36492881dcf2869f0968532126128f 100644 GIT binary patch delta 20 ccmX>rbyjM_W>#h;>lKq3StU20XRTug08oAg{Qv*} delta 20 ccmX>rbyjM_W>)4N-(`~-StU20XRTug09GgmcK`qY 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 d802eb778ef7fbdf894c78392a063e2e69a52103..7b374a53b3e261a02ab0ce3f08a4a2b7e96b299a 100644 GIT binary patch delta 36 ncmeAYZxElL$dXo?mpoAmLT?O-XJuBhUNM=GRdVxr*4?ZC)eH-e delta 56 zcmZn=?-HM&C|q1pRGM5;T9m4n%)p$SlbDyzFfl=#6E3{bE1s3P$9LJ}kL;40kFxG& F1pq286iWaA 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 29f35f7de2d4938a6ff5aa908c01beb6d2286fec..fee1c089db8c1c0c7092d5947753ade0afa8fecb 100644 GIT binary patch delta 36 ocmdlby+L|{B1>9nUh+gO2)!{Ro|Re2dc|Z$R>{rhSzogQ0OOtvDgXcg delta 56 zcmdlWy-Rw6qHu9ZQE75XX;G?PG6QpRPGVjStK?eVXa^R E0PO7&B>(^b delta 34 ocmX>ivPWcsB6C`1&O{9*5VbKdft7iO@`}lfEK-}#v6is_0L*y{Pyhe` 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 08f0be32b1907930b0e8e096e7b53688f5a82d74..844666ed7ecd092387398a399c5448b9456e53fc 100644 GIT binary patch delta 20 ccmcapc&Bi~dRAs7>lKq3nWQ$KVHGe20A1||egFUf delta 20 ccmcapc&Bi~dRFEh-(`~-nWQ$KVHGe20ArU2_y7O^ 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 bff878251e40e18e0bbf674937319c8276c809bc..ecacf64a2c718e3eee106a962feb88f889413c09 100644 GIT binary patch delta 34 ncmew-`$cwwB6C`1&O}Wm5VbMbm6ch^dc|Z$R>{p7;|H=Gb?j}!-~lhStK`aV%^LS09eoumH+?% delta 44 tcmaE?^;BzuB1dsaQE75XY0*RtB{+Lypff9TkMFX{ADJXKZ(!Zb4*-ru5oQ1Y 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 52d62fb451da5b2b24b130a954c51f783ab429df..006dd6e2de31442a83d67077bbf58e2ff2cbb5e9 100644 GIT binary patch delta 42 rcmZn?ZxElL$exm!n3JDgI#E*z#@ra3z{*_UuwpVJtK{bMteaT@FwPE3 delta 44 tcmZn=ZxWxN$WdHURGM5;S~O8Z3C`Xan83=sLwUtyMi!~f=U6wf0svvq55WKc 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 2b84f8b73cbc50770c60e4860c8e8f085ee3856f..234c447338a2159482b629834242ee78fc7399ac 100644 GIT binary patch delta 42 scmew*^h0QZB6~_^VorW~=|oK>7;|HA0xNTY!-~m_tdg70v#w?a09Bk1CjbBd delta 44 tcmew%^h;=hB1dsaQE75XY0*RtB{+LyU;-=i4&@b-8Cj$@pJQFc3;>8~5S;)3 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 ec725debd6f0b76f6da0e9b960661e4f4f5756d9..605f6ab091b41d1545c257fd5f9a2f97db9d5dbc 100644 GIT binary patch delta 53 zcmca4c1vu6qEJd^VorW~X{uf_19NgtVqQAK!~}76sOUz|1Xkt(hZU0>StK?eVeMlD E0QS}rYybcN delta 34 ocmca5c1di4B6C`1&O{9*5VbKdft7iO@`}lfEK-}#vG%Y60MgP6mjD0& 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 f7f3f3e2296148a69de3372ac3d3bff01ee32900..46791e7a1dd387ae708dabac96d02e756a46033b 100644 GIT binary patch delta 39 ocmZo$%G9@%X@WU>N@ikCetPLdDHz@pf(?!U 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 8075e3830277ca03b187719a61bd74ec1fac01c1..94075804a25734036311d2f174aa2cf4b3519409 100644 GIT binary patch delta 38 qcmaEGiRs!UrU{BHX{C9|6SW}p#*lbcW+m$tlNnhhH=k#nxEKH=Ee4dFc!j6T~^;!W+HfS($r$mrZVDk=T5M Hb<$!0pph1F 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 8f17dd3f50b5c05426419185a5a36efe6974e123..7ca7c8a8fdaad3454fe3197cac9fb56c463aac88 100644 GIT binary patch delta 44 scmbQ#$~XatEZ9>r6La#@OD8%g!I&GfTv?fwtXE9F$SAq_H0yC20Ay1TGXMYp delta 45 ucmbQx$~dW&ae@U$aY<2Wa!F~?M0+JTdt-(xD|3(UvWXidH=krZZUX>{%MsN8 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 8381de7ebd7d608feb91e4a503666d6fb194c816..3bcb32034ef7a3695826d5747c19105347145091 100644 GIT binary patch delta 34 ncmZ2uw8&_JB6C`1&O}Wm5VbMbg_T*!dc|Z%7OBl!SSy49$Hxl# delta 55 zcmZ2vw8m(HqHu9ZQE75XX;G?PG6QpRPGVj*!X5K_C2)!}Hk(F7=dd1|4%pwyvux{SS%Bl?j9cK-3 delta 60 zcmZ3JxGiylqHu9ZQE75XX;G?PG6QpRPGVjlK?Xvc44r06aMc?EnA( delta 16 Ycmdm|zfXU|IacN#-({OGvc44r06+T&X8-^I 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 26c055b040051b5aeeda86d22003ee57d3d1cd35..9754b2e179d9aa1dc10da793340ff7e88d6a465c 100644 GIT binary patch delta 34 ocmdmJzubO;B6C`1&O}Wm5VbKlft6Xwdc|Z$R>{rhSszIP0L?rLg#Z8m delta 55 zcmZ2(ztMhzqHu9ZQE75XX;G?PG6QpRPGVj>&m6iNU9 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 f73f1a9449877e4cf7b9f38253779d248a2de01a..7b24f83657d72d19520aebaa0f3d40308c8a1798 100644 GIT binary patch delta 20 ccmbPHGNWX}W>#h;>lKq3StU20XZ17z096YIKL7v# delta 20 ccmbPHGNWX}W>)4N-(`~-StU20XZ17z09v&Nxc~qF 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 419fa603d02673c0644be6ee9a9563981ba9d6c3..47ed2b83f241ff9e01f8f7048df2bc298b8388a6 100644 GIT binary patch delta 20 ccmZ21xma>TJ1eu2^@_=cEK-}7u>NNQ07+g400000 delta 20 ccmZ21xma>TJ1cXK@3P5;EK-}7u>NNQ08a=9dH?_b 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 8bf5ca30f0efe268314fc1f2d746049410794401..c622d3bd5ab8afb99ead2dfdbda80ab079f5e2da 100644 GIT binary patch delta 20 bcmeAd?HAq9&dRK0y<##WtK{aztZ!HVL@Nf0 delta 20 bcmeAd?HAq9&dS{5yKFKetK{aztZ!HVN!14g diff --git a/.ccls-cache/@home@huck@.repos@odot/dialogue.c b/.ccls-cache/@home@huck@.repos@odot/dialogue.c index 9e186ad..599408c 100644 --- a/.ccls-cache/@home@huck@.repos@odot/dialogue.c +++ b/.ccls-cache/@home@huck@.repos@odot/dialogue.c @@ -3,7 +3,18 @@ void error(char type){ switch (type) { case 'f': + fprintf(stderr,"ERROR: COULD NOT ACCESS FILE: %s\n", TODOLIST); + exit(1); case 't': - case '' + fprintf(stderr,"ERROR: COULD NOT GET CURRENT TIME\n"); + exit(2); + case 'r': + fprintf(stderr,"ERROR: ARGUMENT OUT OF RANGE\n"); + exit(3); } } + +void dialogue(char *m1, char *m2, int c){ + printf("\033[1;3%im%s\033[0m: %s\n", c, m1, m2); + return; +} diff --git a/.ccls-cache/@home@huck@.repos@odot/dialogue.c.blob b/.ccls-cache/@home@huck@.repos@odot/dialogue.c.blob index 0f2a42fff251b7e9657643f9db44501d95a0fba8..47b96a61e7a5bd33321c2efc01050e5c3048afd8 100644 GIT binary patch delta 860 zcmbO!vRF!9i{YP~<%(krjEoHWrNu@1nR&@Mr75ZU#U&}3`Fa_Xb2%j@dU0>mX=PJ-L@ty`B%`L&pEJz0d76byNvt1F41E3i1!gZE)X!1VE;sr~tVdMFq%w6cs@K zpsIib64N#YDTq7aBqKaz8780Rl&NQj^Fh&{%)r3`bT6ZTkAUA_CKg5k7XiO*e}Q4h zC>SId!ovuUA87mNNy(!0P#A1azPp zA_QZ2CO_vis{ilxW7Q}7Y|SueoIv6Mn4D9KiWsD%z%k0pz{tSDs=;c)!#G85ik1Td zhXx0b&8@)=B>#Udc-IiDKKCNr*Ptk1ZDO4SOs`5(IsY9d$d)3@F@sD3Mjy}&2SzrK HAr6cH@3`zK delta 91 zcmZ21HB*FBi{T%W+KOWgj2q=wurlvZUNO0lMQZaC*8R+rnYq=CIhYt27#RQ0_CB}Q Z)KMjnfrk;uXJFg}B9Q@-lF2zdMgVsL7H|Ln diff --git a/.ccls-cache/@home@huck@.repos@odot/file.c b/.ccls-cache/@home@huck@.repos@odot/file.c index 9800c59..9449bae 100644 --- a/.ccls-cache/@home@huck@.repos@odot/file.c +++ b/.ccls-cache/@home@huck@.repos@odot/file.c @@ -8,10 +8,8 @@ enum color {BLACK, RED, GREEN, YELLOW, BLUE, MAGENTA, CYAN, WHITE}; void add(void){ fp = fopen(TODOLIST, "a"); - if (fp == NULL){ - printf("ERROR: COULD NOT ACCESS FILE: %s\n",TODOLIST); - return; - } + if (fp == NULL) + error('f'); fputs(strcat(note,"\n"),fp); fclose(fp); } @@ -21,10 +19,8 @@ void rem(void){ FILE *tmp = fopen("temp", "w"); fp = fopen(TODOLIST, "r"); - if (fp == NULL){ - printf("ERROR: COULD NOT ACCESS FILE: %s\n",TODOLIST); - return; - } + if (fp == NULL) + error('f'); while (fgets(s, MAXLINE, fp) != NULL){ @@ -46,11 +42,8 @@ void rem(void){ void show(void){ char *c = (char *) malloc(MAXLINE * sizeof(int)); - fp = fopen(TODOLIST,"r"); - if (fp == NULL){ - printf("ERROR: COULD NOT ACCESS FILE %s",TODOLIST); - return; - } + if (fp == NULL) + error('f'); while (fgets(c, MAXLINE, fp) != NULL ) printf("\t\t\033[1;3%im*\033[0m %s",geturgency(urgency), c); diff --git a/.ccls-cache/@home@huck@.repos@odot/file.c.blob b/.ccls-cache/@home@huck@.repos@odot/file.c.blob index 5ce3b003db84050a257ec877717128e127aba895..2417fd5da138f7aec64cbb69479606626eb329e3 100644 GIT binary patch delta 1244 zcmZXTe`p*<6vuCNFLifsF4^78ZEp9r>E2~~-mQ1py-f@u)^Zgw@xUTzVpIwdbC7^G z2rLt`!k!^gX#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gUjdLyM`F-40V-7#1=Hg_&ee-`JeZWJRo z;aV8^3E!H#w>==PQm~XJ(p=43W_hF~H1F&(E#za7n2J%%>WU>X(hWV1k&!fPjDi+- z@^Q>84sY92ER1Zod~15*&B_$LJ@kpCz=@yPO3WTqp#snhLD^C&oJeDvOrn`a8m7h9dGR~U>%;1dQ$imPNXIo&bV*5!8P zXnyMrl1zs=xMk4)zZ+Y#sT*6ghZ=4;U-V@SrPVZb)2H_tn8dVxuG{S<1uaJwwLwdH z=ABF5eLHyz&TI`<@P&u-Nb;mDdGc&*XC{;gW$9yDzwSl;^H;Wxw(?-*q+QZedE|Ib wUmm67>13YViRMxlvOhi2{qtuZ?kE%~wSD_(TRfygTWm-SVGT)-N>5<)AHq^l%K!iX diff --git a/.ccls-cache/@home@huck@.repos@odot/input.c b/.ccls-cache/@home@huck@.repos@odot/input.c index 5f1ac10..a0dbedf 100644 --- a/.ccls-cache/@home@huck@.repos@odot/input.c +++ b/.ccls-cache/@home@huck@.repos@odot/input.c @@ -36,7 +36,7 @@ void getopt(int n, char *arg[]){ if (isdigit((int) *++arg)){ urgency = (int) *arg; } else { - printf("Non-integer argument for -i: %s\n", *arg); + error('r'); } } else { urgency = 5; diff --git a/.ccls-cache/@home@huck@.repos@odot/input.c.blob b/.ccls-cache/@home@huck@.repos@odot/input.c.blob index 00881a6334724f8758447d810cc11ba2ca18b60e..36a66b37cd105299ef78c2657e5ac9148384f029 100644 GIT binary patch delta 160 zcmZ3bI9-uji{alarxnK-7@3$RI>>L-+Rn;c;ILw{A&b=Jf2`M;6^l!XN|Q?zN)n5+ zH5oWKgc!hp2ShUJOX=&dOn%GxL`Rp|=(UX3&C_N1nJEgXMMe2V8p#=nMVbs;TwKUH t)D+aTCZFMY$fflkre*SWZWBh9$?v!`H_zdj!N|xq*_2OZb3C6n698?&El2*i{am{f@Q}T7@3$RI>>L-+Rn&r5EJ8J00S_^sHUK%v$>0BE+ZrRWDPzQ7PTt1hRt4lzDxjeq%&jy diff --git a/.ccls-cache/@home@huck@.repos@odot/main.c b/.ccls-cache/@home@huck@.repos@odot/main.c index 745a777..6ec8b64 100644 --- a/.ccls-cache/@home@huck@.repos@odot/main.c +++ b/.ccls-cache/@home@huck@.repos@odot/main.c @@ -6,17 +6,17 @@ extern int urgency; int main(int argc, char *argv[]){ char op; int length,i; + struct task t; note = (char *) malloc(MAXLINE * sizeof(char)); o = (char *) malloc (3 * sizeof(char)); - getnote(argc, argv); - length = strlen(note)+1; + t = maketask(argc, argv); getopt(argc, argv); for (i = 0; i < strlen(o); i++) switch (o[i]) { case 'n': - if (listcheck() == 0){ + if (listcheck(t) == 0){ add(); printf("\033[32mAdded to list\033[0m: %s\n", note); } else { @@ -26,7 +26,7 @@ int main(int argc, char *argv[]){ } break; case 'd': - if (listcheck() == 1) { + if (listcheck(t) == 1) { rem(); printf("\033[36mRemoved from list\033[0m: %s\n", note); } else { diff --git a/.ccls-cache/@home@huck@.repos@odot/main.c.blob b/.ccls-cache/@home@huck@.repos@odot/main.c.blob index 9ab12dad3e25b78aa864be61084cb7e7b0516721..2c2f711729c86689f600924c8a2c27ae49f8eb91 100644 GIT binary patch delta 439 zcmX@4uv?K!i{al6lNHAp7#Sueh;LNvU}Y|FSTVVgMPl<2)~zhu#U(|h$t4OUiN)EI zE4fbkGV*KioBUOAVElhmwz{p6Z>lVk3WeOn>{O6ajm*3fg*+XFB0&3w<;80>>F$!Ywa%$#PNlQ;2eF>`Tn vO}@`>p~}X|!6_iZDAFX-#lt9eMeGg_qgc^72bkH8S%`bQB;$(XpBgJUo01V88<+ z8M!&Q#U}sfw&&*1;4lH1#;L?P*^|eCk#%wxkFKLANccbFy5$_Pk5AMv0~G+}^-u&r zCj5t44N?Je*Z+?hb2M(L?Y+181CKT%Bh%y%zFr7tHZ^Xha!L2a)DZeK(hZ)CYLjf&jP7cn=aRL@R>>L~%0wRn&8axI(ljjJ?0|2Px BPdxwt diff --git a/.ccls-cache/@home@huck@.repos@odot/odot.h b/.ccls-cache/@home@huck@.repos@odot/odot.h index d617324..81a5ea9 100644 --- a/.ccls-cache/@home@huck@.repos@odot/odot.h +++ b/.ccls-cache/@home@huck@.repos@odot/odot.h @@ -8,16 +8,31 @@ #define TIME "%H:%M %m-%d-%y" #define TODOLIST "/home/huck/.local/state/odot/todo" +struct task { + int length; + char *task; + char *date; + char *due; + int urgency; +}; + char *getnote(int, char *[]); void getopt(int, char *[]); + void add(void); void rem(void); void show(void); -int listcheck(void); + +int listcheck(struct task); int geturgency(int); +char *gettime(void); void error(char); +struct task maketask(int n, char **arg); +void puttask(struct task n, FILE *fp); +struct task gettask(FILE *fp); + char *note, *o; int urgency; FILE *fp; diff --git a/.ccls-cache/@home@huck@.repos@odot/odot.h.blob b/.ccls-cache/@home@huck@.repos@odot/odot.h.blob index 7ca150acdff257c5b8181794a9e7a17ed8463a70..e61d6f5a9eda9f9d45ccaf5ee0d3e515d8358d04 100644 GIT binary patch delta 1404 zcmZ8hPi)&%9R9u3Y_?-NS&}-5lg!T~DQN@+g#cNF*d|J7N5x>{fIvvg(kzXdC2g93 zpaORja6uFyYtw|b9pF+92yq~X9YA7er!j%VRJCFUgfwm1__I|os1(e5cARARVEb9` z`+nc=d*9DjluP&WY4~@3&*}w0@Zq7LZ>CbH*2}HZSP_Pb)k3XIzi#h-{bH)Z>4F)0 z>HP-3ap&w}v(YLxakH>Ehs&iVeWvnL(@){_k@-;wg(M&sGT-}=`|j6I_g({mthA6e zf{+HVqC zZdlZq$039;;C+O8J+}1jG3i8XknLz;u4IX<)S8%37iS9%oK6=SWvbRo)w;};=MG>0 zAoKhw^Q!*Y?PqR3@{h%>hSU^7DyYxug#6D1`O;eT>Mfgqwq7|}N{xabSS^DEi3kw| zp$J4q2x9Y>hxh$0Py9hES1XIn;%uonml_Z^3M}iR3T$wg4HIw}!dU{omN@@?=WB(#UN(X`6L(QgFb|U5H!y4S`@U=fCo@Kd1Ni?Oke4p8h?2;{up({S^CV zb??P(18(4@H$l=RmIQ{Ec-e(`@VW@`Jv~M+H%6|!Y@Yo5;A%zuj3zy`mj(K@ia>I>BMW>2QWYs-(&c!YNF8&?Jq#@8~s{pOWn)lT&2~HYp^% zF50QFun|s>`*8h7Ku6=BDfAApK0CS?bb@0nwrtS<#_)#@iXx zu3uVK%TaEUkepeMoPOn<%TI6GH8$seTRwQ-nIB%*Z&ZW>x^rZAm2A<9RHPJ;6v`v9 zlG1I+2~*#+R-;_16<;T=kpV;=uV*KPcv#QQu4~RzTa!;ljUJAgQL|**ZltEwY}=OR s1Y|IaHS%+y`*8--{Rk^K+Y4<+FjVo0Om9;D=K`L(^b delta 352 zcmYL@u}i~16vp3c3nq7$O9+<(YthnHtpOWE5nT#`ii#kjgPTHaX=pXY#>vJ1K;#A& zHy2kCi#R!TbQ329adc2{ak9n=`VH^nuKUffR4tck`4P}G8@gfuXliB> z(FAiy4b!Y{5W_+=z))*6r!&H$#DJ+o>gqPJ1)>eMx}<|TC)`Hlz|}LI&?%u3kpfly zY*e>2D}`u*rPkS`K^Tc%5Fk?kadpBrR}#QcGa#x6uE@&Ox|v`qul} zhMvFW`NieAv|DKaV~MD`WYUWL98huYQb%)S3>|P}OKtK2Logv?C_o4>P~Dna>WI&% RBA13pid2`Re#nzm{07``N*n+H diff --git a/.ccls-cache/@home@huck@.repos@odot/structure.c b/.ccls-cache/@home@huck@.repos@odot/structure.c index 5071761..ecdfb7f 100644 --- a/.ccls-cache/@home@huck@.repos@odot/structure.c +++ b/.ccls-cache/@home@huck@.repos@odot/structure.c @@ -3,41 +3,29 @@ extern int urgency; extern FILE *fp; -struct task { - int length; - char *task; - int date; - int due; - int urgency; -}; struct task maketask(int n, char **arg){ struct task temp; temp.task = getnote(n,arg); temp.length = strlen(temp.task); - temp.date = 0; + temp.date = gettime(); temp.due = 0; temp.urgency = urgency; return temp; } -void puttask(struct task n){ - fp = fopen(TODOLIST, "w"); +void puttask(struct task n, FILE *fp){ - if (fp == NULL){ - error('f'); - } - - fprintf(fp, "%i\t%s\t%i\t%i\t%i\n",n.length,n.task,n.date,n.due,n.urgency); + fprintf(fp, "%i\t%s\t%s\t%s\t%i\n",n.length,n.task,n.date,n.due,n.urgency); } -struct task gettask(char *c){ +struct task gettask(FILE *fp){ struct task tmp; - sscanf(c,"%i\t%s\t%i\t%i\t%i\n",&tmp.length,tmp.task,&tmp.date,&tmp.due,&tmp.urgency); + fscanf(fp,"%i\t%s\t%s\t%s\t%i\n",&tmp.length,tmp.task,tmp.date,tmp.due,&tmp.urgency); return tmp; } diff --git a/.ccls-cache/@home@huck@.repos@odot/structure.c.blob b/.ccls-cache/@home@huck@.repos@odot/structure.c.blob index 72290d822909bfa9789cb3f5cbcb2dcdbdaef6f0..c697e642af4be7b917743e35bbb7edce88afc1f0 100644 GIT binary patch delta 1239 zcmY*ZU1%It6ux(7c6R;~FPF(ou1UwXtdrHouqXQPL1`^T3d(vtcegvH1M|&r@BPj> z-**o8<8|NNqvp`R8+#X*Q5uo@v$plO$tC{sg|?Bt!59DJ_m18w zc9)HFB4sx}mHp)H!&^o)395z=J^aS_Lhw`e+|Ob`RF^1;Pnp3MQ8Yqr@JdM_o)pzI zCau_tBjb#d>69@ENRNzN+l3X+@#5{)?k6PvdH1DF?DE;uiIBuzNwOt4N{XZxXn_ml zrFzy?kmAop0}I!^-V1jFp^HSgJt_ zu-2pHO`K?%j;b@Gksp<(pYfy0m(3*W~&~oMK0c6|2z)HU|RM%2ehEPLGK`Q}6j7E=`jpii5(8)j`ePloo zz}W%*EL(W$rAu3H)``@mam`*k+o(d;h}KTAzFF@xG2KrOLM>0TDnxEJdbLX-SR||^ zc~ZBQw39+&l8BzBkJ247rhDl=z>rP>9;L?sU!kwcn0NJ&%r}e2@0tkXcU$OVx1G?5 z-U&_&(>;)VgzcTfeC5_3@8nxg{(Xmm2MWXEr8)CyUX8YJUV8o69&a)GM@39YM l+~IWG4Q4g3i~hk4jZ5Wr8{C3h6m5XfF5cM&=CF1X{|9qQPagmP delta 1436 zcmY+Ee`p(J7{}i?cbB|L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