repo_name
stringlengths
5
122
path
stringlengths
3
232
text
stringlengths
6
1.05M
chlds/util
lib/car/obj/src/statf.c
/* **** Notes Status. //*/ # define CAR # include <io.h> # include <conio.h> # include <stdio.h> # include <stdlib.h> # include <time.h> # include <fcntl.h> # include <sys/types.h> # include <sys/stat.h> # include <errno.h> # include "../../../incl/config.h" signed(__cdecl statf(signed short(arg),signed char(*path)...
chlds/util
lib/car/obj/src/cli_i_except.c
/* Get a byte or bytes for one character based on UTF-8 out of the key board. Remarks: Call fn. rl() later. Call fn. _getch twice to read <Ctrl-@>. The first call returns (0x00) and the second call returns (0x03).. Return the number of bytes for one meta key starting from (0x00). Refer at fn. cli_i_b. */ # define C...
chlds/util
lib/cbr/obj/src/cli_ctrl_g_beta.c
<filename>lib/cbr/obj/src/cli_ctrl_g_beta.c /* Press <Ctrl-G> to invoke the function. Along with C and Windows libraries Remarks: Refer at util/lib/obj/src/cli_io_beta.c */ # define CLI_SYM # define CBR # define CLI_W32 # include <conio.h> # include <stdio.h> # include <stdlib.h> # include "../../../incl/config.h...
chlds/util
lib/car/obj/src/cals_load_events_internal.c
/* **** Notes Load events i.e., map events at *(CLI_B/O/I/L+(R(event,R(roll,*argp)))) on the RAM. //*/ # define C_CODE_STDS # define CALEND # define CAR # include "../../../incl/config.h" signed(__cdecl cals_load_events_internal(signed char(*path),cals_t(*argp))) { auto signed char *b; auto time_t t; auto signed f...
chlds/util
lib/cbr/obj/src/cli_ctrl_j_beta.c
<reponame>chlds/util /* Press <Ctrl-J> to invoke the function. Along with C and Windows libraries Remarks: Refer at fn. cli_io_beta. */ # define CBR # define CLI_W32 # include <conio.h> # include <stdio.h> # include <stdlib.h> # include "../../../incl/config.h" signed(__cdecl cli_ctrl_j_beta(CLI_W32_STAT(*argp))...
chlds/util
lib/cbr/obj/src/cli_connect_with_workspace.c
/* Connect a page with workspace. Along with C library Remarks: Refer at fn. cli_init_workspace. */ # define CBR # include <conio.h> # include <stdio.h> # include <stdlib.h> # include "../../../incl/config.h" signed(__cdecl cli_connect_with_workspace(cli_page_t(*page),CLI_TYPEWRITER(*argp))) { /* **** DATA, BSS...
chlds/util
lib/car/obj/src/cli_outv_legible.c
/* **** Notes Output. Remarks: A character string should be terminated with the null character. Refer at fn. cv_ww, fn. read_b and fn. rm_crlf to replace CR/LF with the null character. Return the number of rows output for characters (..or the number of characters). */ # define CAR # include "../../../incl/config.h"...
chlds/util
lib/car/obj/src/rd_pages.c
/* **** Notes Read. //*/ # define CAR # include "../../../incl/config.h" signed(__cdecl rd_pages(page_t(*argp),signed(fd))) { auto signed char *b; auto page_t *page; auto signed i,r; auto signed short flag; if(!argp) return(0x00); if(fd<(0x00)) return(0x00); flag = (*(CLI_BASE+(R(flag,*argp)))); if(!(CLI_INIT&(f...
chlds/util
lib/car/obj/src/cmpr_partially_r.c
/* **** Notes Partially compare strings */ # define CAR # include "../../../incl/config.h" signed(__cdecl cmpr_partially_r(signed(*cache),signed char(*di),signed char(*si))) { auto signed char c; if(!cache) return(0x00); if(!di) return(0x00); if(!si) return(0x00); if(!(*si)) { *cache = (0x00); return(0x00); } i...
chlds/util
lib/car/obj/src/cals_cache_day_events.c
<reponame>chlds/util /* **** Notes Cache events. //*/ # define CALEND # define CAR # include "../../../incl/config.h" signed(__cdecl cals_cache_day_events(time_t(criterion),cals_roll_t(*cache),cals_roll_t(*argp))) { auto cals_event_t *ev; auto struct tm *tp; auto time_t t; auto signed i,r; auto signed short flag;...
chlds/util
lib/cbr/obj/src/cli_ctrl_fn.c
<filename>lib/cbr/obj/src/cli_ctrl_fn.c /* **** Notes Run in an array of function pointers. Remarks: Based on UTF-8 */ # define CAR # include <stdio.h> # include "../../../incl/config.h" signed(__cdecl cli_ctrl_fn(signed(arg),cli_property_t(*argp))) { auto cli_clipboard_t *clipboard; auto cli_text_t *text; auto c...
chlds/util
lib/incl/ctrl_d.h
<filename>lib/incl/ctrl_d.h<gh_stars>0 # define CTRL_MASK (0x1F) # define DEL (0x7F)
chlds/util
lib/car/obj/src/sub_da.c
<filename>lib/car/obj/src/sub_da.c /* **** Notes Subtract //*/ # define CAR # include "../../../incl/config.h" signed(__cdecl sub_da(signed(arg),signed char(*argp))) { auto signed i,r; if(!argp) return(0x00); r = (arg+(0x01+(~(ct(argp))))); return(r); }
chlds/util
lib/car/obj/src/cv_d_r.c
<filename>lib/car/obj/src/cv_d_r.c /* **** Notes Convert a signed double word into letters. Remarks: Return (0x00) if the function fails. //*/ # define CAR # include "../../../incl/config.h" signed(__cdecl cv_d_r(signed short(radix),signed char(*table),signed char(*di),signed(si))) { auto signed i,r; if(!table) ...
chlds/util
lib/car/obj/src/cv_ww.c
<reponame>chlds/util /* **** Notes Convert into an array of pointers for words-wrap arrays. Remarks: Call fn. rl_v later. A character string should be terminated with the null character. Refer at fn. read_b and fn. rm_crlf to replace CR/LF with the null character. */ # define CAR # include "./../../../incl/config.h...
chlds/util
lib/car/obj/src/attrib_of.c
/* **** Notes Check the attributes of a directory or of a file */ # define CAR # include <stdio.h> # include <windows.h> # include "../../../incl/config.h" signed(__cdecl attrib_of(signed(arg))) { auto signed r; auto signed attrib[] = { (signed) (FILE_ATTRIBUTE_ARCHIVE), (signed) (FILE_ATTRIBUTE_COMPRESSED), (sign...
chlds/util
lib/car/obj/src/cals_upcoming_events.c
<filename>lib/car/obj/src/cals_upcoming_events.c /* **** Notes Display upcoming events or.. //*/ # define CALEND # define CAR # include "../../../incl/config.h" signed(__cdecl cals_upcoming_events(signed(days),time_t(criterion),cals_roll_t(*argp))) { auto cals_event_t *ev; auto cals_roll_t roll; auto time_t t; aut...
chlds/util
lib/car/obj/src/cue_back.c
/* Cue backward. Remarks: Based on UTF-8 */ # define CAR # include "../../../incl/config.h" signed(__cdecl cue_back(signed char(*sym),signed char(*cache),signed char(*argp))) { auto signed char *b; auto signed r; auto signed short flag; if(!sym) return(0x00); if(!cache) return(0x00); if(!argp) return(0x00); if(!...
chlds/util
lib/car/obj/src/cli_outs_legible_r.c
/* Output characters based on UTF-8 to the console screen. Remarks: A character string should be terminated with the null character. Refer at fn. cv_ww, fn. read_b and fn. rm_crlf to replace CR/LF with the null character. Return the number of bytes output for characters (..or the number of characters). */ # define ...
chlds/util
lib/car/obj/src/encode_w_r.c
/* Check the leading byte: .iiii.o*** that stands for a 4-byte character i.e., a 21-bit character expressed in .iiii.o*** .io**.**** .io**.**** .io**.**** (3+6+6+6) on 32 bits, .iiio.**** that stands for a 3-byte character i.e., a 16-bit character expressed in .iiio.**** .io**.**** .io**.**** (4+6+6) on 24 bits, .iio*...
chlds/util
bin/obj/src/cli_kb4.c
<filename>bin/obj/src/cli_kb4.c /* **** Notes Output characters in UTF-8. Remarks: Based on UTF-8 */ # define CBR # include <conio.h> # include <stdio.h> # include <stdlib.h> # include <windows.h> # include "../../../lib/incl/config.h" signed(__cdecl main(signed(argc),signed char(**argv))) { /* **** DATA, BSS an...
chlds/util
lib/car/obj/src/cals_load_events.c
<filename>lib/car/obj/src/cals_load_events.c /* **** Notes Load events i.e., map events at *(CLI_B/O/I/L+(R(event,R(roll,*argp)))) on the RAM. //*/ # define CALEND # define CAR # include <stdio.h> # include "../../../incl/config.h" signed(__cdecl cals_load_events(signed char(*csv_filename),cals_t(*argp))) { auto s...
chlds/util
lib/incl/car_d.h
<gh_stars>0 /* Build a linked list. */ # define C_FILE (0x01) # define C_DOTFILE (0x02) # define C_DIR (0x04) # define C_DOTDIR (0x08) # define C_CURRDIR (0x10) # define C_PDIR (0x20) # define C_DIRS (C_DIR+(C_DOTDIR+(C_CURRDIR+(C_PDIR)))) # define OPT_ERROR (0x8000) # define OPT_IGNORE (0x200) # define OPT_ENTRY (...
chlds/util
lib/car/obj/src/ctrl_fn_r.c
/* **** Notes Run in an array of function pointers. Remarks: Based on UTF-8 */ # define CAR # include <stdio.h> # include "../../../incl/config.h" signed(__cdecl ctrl_fn_r(signed(arg),void(*argp))) { auto signed char *b; auto signed char *p; auto signed dif; auto signed i,r; auto signed short flag; auto signed(__...
chlds/util
lib/car/obj/src/cli_io.c
/* **** Notes Output characters in UTF-8 after decoding Unicode bytes input out of the key board. Remarks: Based on UTF-8 */ # define CAR # include <stdio.h> # include "../../../incl/config.h" signed(__cdecl cli_io(cli_property_t(*argp))) { auto cli_text_t *text; auto cli_rule_t *rule; auto signed char *b; auto s...
chlds/util
lib/car/obj/src/init_rule.c
/* **** Notes Initialise Remarks: Refer at fn. init_rule_b. */ # define CAR # include <stdio.h> # include "./../../../incl/config.h" signed(__cdecl init_rule(signed short(flag),signed(arg),rule_t(*argp))) { auto signed char *b; auto signed i,r; if(arg<(0x00)) return(0x00); if(!argp) return(0x00); if(arg<(CLI_RU...
chlds/util
lib/car/obj/src/ctrl_ahead.c
<gh_stars>0 /* Press <Ctrl-A> to invoke the function. Remarks: Refer at fn. ctrl_fn_b. */ # define CAR # include <stdio.h> # include "../../../incl/config.h" signed(__cdecl ctrl_ahead(ty_t(*argp))) { auto signed char *b; auto page_t *page; auto signed r; auto signed short flag; if(!argp) return(0x00); // page =...
chlds/util
lib/car/obj/src/ct_ars_r.c
<reponame>chlds/util /* **** Notes Count arguments to the terminating null character. Remarks: Refer at fn. ct_ars2. */ # define CAR # include "./../../../incl/config.h" signed(__cdecl ct_ars_r(signed short(flag),signed(*retv),signed char(*base))) { /* **** DATA, BSS and STACK */ auto signed r; /* **** CODE/TEXT...
chlds/util
lib/cbr/obj/src/cli_display_footer_beta.c
/* **** Notes Prepare the the two-row footer. Remarks: Along with C and Windows libraries */ # define CBR # define CLI_W32 # include <conio.h> # include <stdio.h> # include <stdlib.h> # include "../../../incl/config.h" signed(__cdecl cli_display_footer_beta(signed short(comeback),signed char(*label),CLI_W32_STAT(...
chlds/util
lib/car/obj/src/cli_outv_r.c
/* **** Notes Output. */ # define CAR # include "../../../incl/config.h" signed(__cdecl cli_outv_r(signed char(**argp))) { auto signed char b = (LF); if(!argp) return(0x00); if(!(*argp)) return(0x00); cli_out(&b); cli_outs(*argp); argp++; // if(!(cli_es(CTRL_K))) return(0x00); return(0x01+(cli_outv_r(argp))); }...
chlds/util
lib/car/obj/src/ctrl_pin.c
/* Copy to the clipboard. Remarks: Refer at util/lib/obj/src/cli_io_b.c */ # define CAR # include <stdio.h> # include "../../../incl/config.h" signed(__cdecl ctrl_pin(ty_t(*argp))) { auto signed char *b; auto signed short *w; auto rule_t *rule; auto page_t *page; auto signed i,r; auto signed short flag; if(!argp...
chlds/util
lib/car/obj/src/cli_nout.c
/* Output characters based on UTF-8 to the console screen. Remarks: Return the number of bytes output for characters (..or the number of characters). */ # define CAR # include <stdio.h> # include "./../../../incl/config.h" signed(__cdecl cli_nout(signed(arg),signed char(*argp))) { auto signed char *b; auto signed...
chlds/util
lib/car/obj/src/cals_flag_c.c
<filename>lib/car/obj/src/cals_flag_c.c<gh_stars>0 /* **** Notes Flag //*/ # define CALEND # define CAR # include "../../../incl/config.h" signed(__cdecl cals_flag_c(cals_t(*argp))) { auto cals_event_t *ev; auto signed r; auto signed short flag; if(!argp) return(0x00); AND(flag,0x00); OR(flag,COLOR_BG_CYAN); SHL...
chlds/util
lib/car/obj/src/chrono_time_r.c
/* **** Notes Map the time. Remarks: Call fn. rl later. //*/ # define CALEND # define CAR # include "../../../incl/config.h" signed(__cdecl chrono_time_r(signed(arg),signed char(**di),signed short(*si))) { auto signed char *b; auto time_t t; auto signed r; auto signed short flag; auto signed char *colon = (":"); ...
chlds/util
lib/car/obj/src/cv_pv_r.c
/* **** Notes Convert an array of pointers for letters into the page format. Remarks: Call fn. unbind_pages later. */ # define CAR # include "./../../../incl/config.h" signed(__cdecl cv_pv_r(page_t(*di),signed char(**si))) { auto signed char *b; auto page_t *page; auto signed r; auto signed short flag; if(!di) r...
chlds/util
lib/car/obj/src/embed_l_rr.c
/* **** Notes Embed. */ # define CAR # include <stdio.h> # include "../../../incl/config.h" signed(__cdecl embed_l_rr(signed(arg),signed char(*argp))) { auto signed r; if(arg<(0x01)) return(0x00); if(!argp) return(0x00); AND(r,0x00); while(arg) { *(--arg+(argp)) = (0x00); r++; } return(r); }
chlds/util
lib/car/obj/src/dupl_agent_w.c
<gh_stars>0 /* **** Notes Agent. */ # define CAR # include <stdio.h> # include "./../../../incl/config.h" signed(__cdecl dupl_agent_w(signed(argc),signed short(**argv),signed short(**envp))) { auto signed short **w; auto signed i,r; auto signed short flag; auto fl_t fl; auto signed threshold = (0x03); if(!argv) r...
chlds/util
lib/cbr/obj/src/cli_rect_beta.c
<reponame>chlds/util<gh_stars>0 /* Set flag CLI_IN to get the current frame or flag CLI_OUT to set the frame. Remarks: Refer at fn. cli_init_stat_beta. The beta edition is for Windows 10 64-bit OS. */ # define CBR # define CLI_W32 # include "../../../incl/config.h" signed(__cdecl cli_rect_beta(signed short(flag),...
chlds/util
lib/car/obj/src/cals_crown_yr.c
/* **** Notes Overwrite time //*/ # define CALEND # define CAR # include "../../../incl/config.h" signed(__cdecl cals_crown_yr(signed short(arg),time_t(*argp))) { auto signed ad_h = (2100); auto signed ad_l = (1970); auto struct tm *tp; auto time_t t; auto signed i,r; auto signed short mo,yr; auto signed short fla...
chlds/util
lib/car/obj/src/cals_refer_events_r_r.c
/* **** Notes Refer //*/ # define CALEND # define CAR # include "../../../incl/config.h" signed(__cdecl cals_refer_events_r_r(signed short(flag),cals_event_t(*cache),cals_roll_t(*cached),cals_t(*argp))) { auto signed i,r; if(!cache) return(0x00); if(!cached) return(0x00); if(!argp) return(0x00); if(CALS_PERIODIC...
chlds/util
lib/car/obj/src/es_f.c
<reponame>chlds/util /* **** Notes Escape sequences */ # define CAR # include "./../../../incl/config.h" signed(__cdecl es_f(void)) { auto signed char *b = ("\033[1G"); auto signed r; r = wr_b(0x01,b,ct(b)); if(!(r^(~0x00))) AND(r,0x00); return(r); }
chlds/util
lib/car/obj/src/ct_a.c
<filename>lib/car/obj/src/ct_a.c /* **** Notes Count. Remarks: Based on UTF-8 */ # define CAR # include "./../../../incl/config.h" signed(__cdecl ct_a(signed char(*argp))) { auto signed r; if(!argp) return(0x00); if(!(*argp)) return(0x00); r = nbytechar(*argp); if(!(0x80^(r))) AND(r,0x00); return(r); }
chlds/util
lib/car/obj/src/cli_log_r.c
/* **** Notes Store bytes. Remarks: Code of line break: CRLF, LF or (0x00). Append. //*/ # define CAR # include <stdio.h> # include "../../../incl/config.h" signed(__cdecl cli_log_r(signed char(*di/* path */),signed char(**si/* contents */))) { auto signed char *b; auto signed i,r; auto signed short flag; auto si...
chlds/util
lib/incl/calend.h
/* calend.h */ # include "./cals_e.h" # include "./cals_d.h" # include "./cals_f.h"
chlds/util
lib/car/obj/src/rm_trailing_blanks_r.c
/* **** Notes Remove trailing blanks. */ # define CAR # include "./../../../incl/config.h" signed(__cdecl rm_trailing_blanks_r(signed(arg),signed char(*argp))) { if(!arg) return(0x00); if(!argp) return(0x00); if(SP^(*(--argp))) return(0x00); *argp = (0x00); return(0x01+(rm_trailing_blanks_r(--arg,argp))); }
chlds/util
lib/cbr/obj/src/cli_clip_beta.c
/* Copy to the clipboard. Along with C and Windows libraries Remarks: Refer at util/lib/obj/src/cli_init_roll.c and util/bin/obj/src/ty.c */ # define CBR # define CLI_W32 # include <conio.h> # include <stdio.h> # include <stdlib.h> # include "../../../incl/config.h" signed(__cdecl cli_clip_beta(CLI_W32_STAT(*arg...
chlds/util
lib/car/obj/src/wr_rd.c
/* **** Notes Copy. */ # define CAR # include <stdio.h> # include "./../../../incl/config.h" signed(__cdecl wr_rd(signed(*fd))) { auto signed char *b; auto signed i,r; if(!fd) return(0x00); AND(i,0x00); OR(i,0x01); SHL(i,0x0E); i = (100*(i)); --i; r = (i); r++; r = (r*(sizeof(*b))); b = (signed char(*)) alloc(r)...
chlds/util
lib/cbr/obj/src/cli_scroll_beta.c
/* Scroll a content on console screen buffer up or down in relative coordinates. Remarks: Refer at fn. cli_io_beta. */ # define CBR # define CLI_W32 # include <stdio.h> # include "../../../incl/config.h" signed(__cdecl cli_scroll_beta(signed short(range),CLI_W32_STAT(*argp))) { /* **** DATA, BSS and STACK */ aut...
chlds/util
lib/cbr/obj/src/cli_unmap_pages.c
/* **** Notes Unmap all the pages implemented in a doubly linked list. Remarks: Based on a doubly linked list (i.e., not a circular linked list) Along with C library //*/ # define CBR # include <stdlib.h> # include "../../../incl/config.h" signed(__cdecl cli_unmap_pages(cli_spool_t(*argp))) { /* **** DATA */ aut...
chlds/util
lib/car/obj/src/cf_dir.c
/* **** Notes Confirm. */ # define CALEND # define CAR # include <io.h> # include <conio.h> # include <stdio.h> # include <stdlib.h> # include <time.h> # include <fcntl.h> # include <sys/types.h> # include <sys/stat.h> # include <errno.h> # include "./../../../incl/config.h" signed(__cdecl cf_dir(signed char(*argp...
chlds/util
lib/cbr/obj/src/cli_clear_rows_beta.c
/* **** Notes Clear rows. Remarks: Refer at fn. cli_clear_row_beta. Return the number of cleared rows. */ # define CBR # define CLI_W32 # include <stdio.h> # include "../../../incl/config.h" signed(__cdecl cli_clear_rows_beta(signed short(comeback),CLI_W32_STAT(*argp))) { /* **** DATA, BSS and STACK */ auto CLI_...
chlds/util
lib/car/obj/src/cals_order_events.c
/* **** Notes Sort //*/ # define CALEND # define CAR # include "../../../incl/config.h" signed(__cdecl cals_order_events(cals_roll_t(*argp))) { auto cals_event_t *ev; auto time_t t; auto signed i,r; if(!argp) return(0x00); ev = (*(CLI_INDEX+(R(event,*argp)))); if(!ev) return(0x00); if(!(*(CLI_DI+(R(event,*ev))))...
chlds/util
lib/car/obj/src/cmpr_r.c
/* **** Notes Compare strings. */ # define CAR # include "../../../incl/config.h" signed(__cdecl cmpr_r(signed(*cache),signed char(*di),signed char(*si))) { auto signed char c; if(!cache) return(0x00); if(!di) return(0x00); if(!si) return(0x00); if(!(*si)) { *cache = (signed) (*di); return(0x00); } c = (*di); i...
chlds/util
lib/ccr/obj/src/cmdl2_help.c
<filename>lib/ccr/obj/src/cmdl2_help.c<gh_stars>0 /* **** Notes Commandlet to help */ # define C_CODE_STDS # define CCR # include "../../../incl/config.h" unsigned(__stdcall cmdl2_help(SAT(*argp))) { /* **** DATA */ auto signed i,r; /* **** CODE/TEXT */ INC(R(Running,*argp)); /* Monitoring printf("%s\n","<< cmdl...
chlds/util
lib/car/obj/src/cals_check_for_periodic_events.c
/* **** Notes Check for periodic events. //*/ # define CALEND # define CAR # include "../../../incl/config.h" signed(__cdecl cals_check_for_periodic_events(signed char(*content),cals_event_t(*argp))) { auto signed char *b; auto signed i,l,r; auto signed short flag; auto signed char *first = ("every"); auto signed ...
chlds/util
bin/obj/src/dump.c
/* **** Notes Dump a file in the binary Implemented with a flag to be added for code to run as far as possible to the end */ # define C_CODE_STDS # define CLI_ASCII # define CAR # include "./../../../lib/incl/config.h" signed(__cdecl wmain(signed(argc),signed short(**argv),signed short(**envp))) { auto signed cha...
chlds/util
lib/cbr/obj/src/cli_io_beta.c
/* **** Notes Output Unicode characters in UTF-8 after decoding Unicode bytes input out of the key board. Along with C and Windows libraries Remarks: Based on UTF-8 */ # define CBR # define CLI_W32 # define CLI_FN (0x01+(0x20)) # include <conio.h> # include <stdio.h> # include <stdlib.h> # include "../../../incl...
chlds/util
lib/car/obj/src/cv_mo_yr_r.c
<reponame>chlds/util /* **** Notes Convert into seconds of a first week of the first month. Remarks: Refer at <corecrt_wtime.h> */ # define CALEND # define CAR # include "../../../incl/config.h" signed(__cdecl cv_mo_yr_r(signed short(flag),signed short(mon),time_t(*di),time_t(si))) { auto struct tm *tp; auto time...
chlds/util
lib/car/obj/src/cals_thirty_first_day.c
/* **** Notes On the thirty first day of the month. //*/ # define CALEND # define CAR # include "../../../incl/config.h" signed(__cdecl cals_thirty_first_day(signed short(arg/* month */))) { auto signed i,r; auto signed short flag; auto signed char mo[] = { 1,3,5,7,8,10,12,0x00, }; if(arg<(0x00)) return(0x00); if...
chlds/util
lib/car/obj/src/keep_w.c
<reponame>chlds/util<gh_stars>0 /* Map on the RAM. Along with C library Remarks: Please be sure to release. */ # define CAR # include "../../../incl/config.h" # include <conio.h> # include <stdio.h> # include <stdlib.h> signed(__cdecl keep_w(signed short(**di),signed char(*si))) { /* **** DATA, BSS and STACK */ ...
chlds/util
lib/car/obj/src/color_text_bg.c
<filename>lib/car/obj/src/color_text_bg.c /* **** Notes Text attributes. Remarks: Virtual Terminal */ # define CAR # include <stdio.h> # include "./../../../incl/config.h" signed(__cdecl color_text_bg(signed(arg))) { auto signed bg[] = { COLOR_BG_BLACK, COLOR_BG_RED, COLOR_BG_GREEN, COLOR_BG_YELLOW, COLOR_BG_BLUE...
chlds/util
lib/cbr/obj/src/cli_extend.c
<gh_stars>0 /* **** Notes Extend the base workspace. Remarks: Return the number of copied bytes. Along with C library //*/ # define CBR # include <stdio.h> # include <stdlib.h> # include "../../../incl/config.h" signed(__cdecl cli_extend(signed short(channel),signed short(cue),signed(extra),CLI_TYPEWRITER(*argp))...
chlds/util
bin/obj/src/fact.c
<reponame>chlds/util /* **** Notes Factorial: Up to 20 */ # define C_CODE_STDS # include "./../../../lib/incl/config.h" unsigned long long(__cdecl fact(unsigned(arg))) { if(arg<(2)) return(0x01); return(arg*(fact(arg+(~(0x00))))); } /* **** entry point */ signed(__cdecl main(signed(argc),signed char(**argv),signed...
chlds/util
lib/cbr/obj/src/cli_run_meta_beta.c
/* Run. Along with C and Windows libraries Remarks: Refer at fn. cli_io_beta, fn. cli_in, fn. cli_ctrl_at_beta and cli_support_meta_keys. */ # define CBR # define CLI_W32 # include <conio.h> # include <stdio.h> # include <stdlib.h> # include "../../../incl/config.h" signed(__cdecl cli_run_meta_beta(signed short(...
chlds/util
lib/car/obj/src/ctrl_forward.c
<filename>lib/car/obj/src/ctrl_forward.c /* Go forward. Remarks: Refer at util/lib/obj/src/cli_io_b.c */ # define CAR # include <stdio.h> # include "../../../incl/config.h" signed(__cdecl ctrl_forward(ty_t(*argp))) { auto signed char *b; auto rule_t *rule; auto page_t *page; auto signed i,r; auto signed short fla...
chlds/util
lib/cbr/obj/src/cli_ctrl_t_beta.c
<reponame>chlds/util<gh_stars>0 /* Press <Ctrl-T> to invoke the function. Along with C and Windows libraries Remarks: Refer at util/lib/obj/src/cli_io_beta.c */ # define CBR # define CLI_W32 # include <conio.h> # include <stdio.h> # include <stdlib.h> # include "../../../incl/config.h" signed(__cdecl cli_ctrl_t_...
chlds/util
lib/car/obj/src/cals_flag_n.c
<filename>lib/car/obj/src/cals_flag_n.c /* **** Notes Flag //*/ # define CALEND # define CAR # include "../../../incl/config.h" signed(__cdecl cals_flag_n(cals_t(*argp))) { auto cals_event_t *ev; auto signed i,r; if(!argp) return(0x00); OR(R(flag,*argp),CALS_NONLOADING); return(0x01); }
chlds/util
lib/car/obj/src/cli_retrieve_standard_handles_beta.c
/* **** Notes Retrieve */ # define CAR # include "./../../../incl/config.h" # include <stdio.h> # include <windows.h> signed(__cdecl cli_retrieve_standard_handles_beta(void(**argp))) { auto signed param[] = { STD_INPUT_HANDLE, STD_OUTPUT_HANDLE, STD_ERROR_HANDLE, 0x00, }; auto signed i,r; if(!argp) return(0x00);...
chlds/util
lib/incl/car_e.h
<filename>lib/incl/car_e.h /* enum { SI, DI, CACHE, }; //*/ enum { CIN, COUT, CERR, };
chlds/util
lib/car/obj/src/clipboard_to_pin_paste_beta.c
<gh_stars>0 /* Copy to the clipboard. Remarks: Refer at util/lib/obj/src/cli_init_roll.c and util/bin/obj/src/ty.c */ # define CAR # include <stdio.h> # include <windows.h> # include "../../../incl/config.h" signed(__cdecl clipboard_to_pin_paste_beta(signed(arg),cli_clipboard_t(*argp))) { /* **** DATA, BSS and ST...
chlds/util
lib/car/obj/src/catppp.c
<reponame>chlds/util<gh_stars>0 /* **** Notes Call fn. catpp */ # define CAR # include "../../../incl/config.h" signed(__cdecl catppp(signed char(***argp))) { /* **** DATA, BSS and STACK */ auto signed(r); /* **** CODE/TEXT */ if(!argp) return(0x00); if(!(*argp)) return(0x00); r = catpp(*argp); argp++; return(1...
chlds/util
lib/car/obj/src/trunc_b.c
/* **** Notes Truncate. */ # define CAR # include "./../../../incl/config.h" signed(__cdecl trunc_b(signed char(*path))) { auto void *argp; auto signed char *b; auto signed i,r; auto signed short flag; auto signed(__cdecl*f)(signed(arg),void(*argp)); auto signed char *perm = ("trunc,rdwr,binary"); if(!path) retur...
chlds/util
lib/car/obj/src/cals_agent_r.c
<filename>lib/car/obj/src/cals_agent_r.c /* **** Notes Refer at <corecrt_wtime.h> */ # define CALEND # define CAR # include <errno.h> # include <string.h> # include <stdio.h> # include "./../../../incl/config.h" signed(__cdecl cals_agent_r(signed(arg/* months */),signed char(*path),cals_t(*argp))) { auto cals_even...
chlds/util
lib/car/obj/src/cals_crown_mo_r.c
<filename>lib/car/obj/src/cals_crown_mo_r.c /* **** Notes Overwrite time //*/ # define CALEND # define CAR # include "../../../incl/config.h" signed(__cdecl cals_crown_mo_r(signed short(arg),time_t(*argp))) { auto struct tm *tp; auto time_t t; auto signed i,r; auto signed short di,mo,yr; auto signed short weeks; a...
chlds/util
lib/car/obj/src/cv_ds_f.c
/* **** Notes Convert. */ # define CAR # include <stdio.h> # include "./../../../incl/config.h" signed(__cdecl cv_ds_f(signed char(*argp),signed char(di),signed char(si))) { auto signed char *b; auto signed i,r; if(!argp) return(0x00); b = (0x00); if(!(rd_s(&b,argp))) { if(b) rl(b); printf("%s \n","<< Error at f...
chlds/util
lib/cbr/obj/src/cli_emul.c
<reponame>chlds/util<gh_stars>0 /* **** Notes Backup or restore parameters associated with workspace. Along with C library Remarks: Refer at fn. cli_init_ty, cli_spool_beta and fn. cli_io_beta. */ # define CBR # include <conio.h> # include <stdio.h> # include <stdlib.h> # include "../../../incl/config.h" signed(...
chlds/util
lib/car/obj/src/concatenate.c
<reponame>chlds/util /* **** Notes Concatenate. Remarks: Release the *di later e.g., rl(di). Refer at fn. rl. //*/ # define CAR # include "../../../incl/config.h" signed(__cdecl concatenate(signed(arg),signed char(**di),signed char(*si))) { auto signed char *b; auto signed r; auto signed short flag; if(arg<(0x00...
chlds/util
lib/car/obj/src/cv_argv_bw.c
<reponame>chlds/util /* **** Notes Convert into a table pointer of pointers secured for bytes in UTF-8. Remarks: Call fn. rl_argv to release secured buffers at **di and at their contents. */ # define CAR # include "./../../../incl/config.h" signed(__cdecl cv_argv_bw(signed char(***di),signed short(**si))) { auto ...
chlds/util
lib/car/obj/src/cals_flag.c
<gh_stars>0 /* **** Notes Flag. */ # define CALEND # define CAR # include "./../../../incl/config.h" signed(__cdecl cals_flag(signed char(**argv),cals_t(*argp))) { auto signed(__cdecl*f)(cals_t(*argp)); auto signed(__cdecl*(fn[]))(cals_t(*argp)) = { (signed(__cdecl*)(cals_t(*))) (cals_flag_c), (signed(__cdecl*)(ca...
chlds/util
lib/car/obj/src/wrap_words_r.c
<filename>lib/car/obj/src/wrap_words_r.c /* **** Notes Count bytes of words wrapped in the width. Remarks: Refer at fn. cv_ww. */ # define CAR # include "./../../../incl/config.h" signed(__cdecl wrap_words_r(signed short(arg),signed(*cache),signed char(*sym),signed char(*argp))) { auto signed i,r; if(arg<(0x01))...
chlds/util
lib/car/obj/src/cli_indent_r.c
/* Output white space characters to the console screen. */ # define CAR # include <stdio.h> # include "../../../incl/config.h" signed(__cdecl cli_indent_r(signed short(arg))) { auto signed char *b = (" "); auto signed i,r; auto signed short flag; if(!arg) return(0x00); r = cli_o_b(0x01,b); if(!r) return(0x00); ...
chlds/util
lib/cbr/obj/src/cli_coord_output_pages_internal_beta.c
/* Coordinate and output pages to the console screen. Remarks: Return the number of output pages. */ # define CBR # define CLI_W32 # include <stdio.h> # include "../../../incl/config.h" signed(__cdecl cli_coord_output_pages_internal_beta(signed short(flag),signed short(edge),cli_page_t(*page),CLI_W32_STAT(*argp))...
chlds/util
lib/car/obj/src/cv_ords.c
/* **** Notes Check the ordinal number. //*/ # define CALEND # define CAR # include "../../../incl/config.h" signed(__cdecl cv_ords(signed(arg/* front or from behind */),signed char(***vi),signed(*di),signed char(*si))) { auto signed i,r; auto signed short flag; if(!vi) return(0x00); if(!di) return(0x00); if(!si)...
chlds/util
lib/car/obj/src/cli_es.c
<gh_stars>0 /* **** Notes Escape sequences. */ # define CAR # include "./../../../incl/config.h" signed(__cdecl cli_es(signed(arg))) { auto signed(__cdecl*f)(void); auto signed(__cdecl*(fn[]))(void) = { es_at,es_a,es_b,es_c, es_d,es_e,es_f,es_g, es_h,es_i,es_j,es_k, es_l,es_m,es_n,es_o, es_p,es_q,es_r,es_s, es_t,e...
chlds/util
lib/ccr/obj/src/transcribe_beta.c
/* **** Notes Transcribe dots retrieved from a dc to a dc with a handle. */ # define CCR # define C_W32API # include "../../../incl/config.h" signed(__cdecl transcribe_beta(signed(width),signed(height),void(*di/* hdl */),void(*si/* dc */))) { auto void *dc; auto signed r; auto signed short flag; if(width<(0x01)) r...
chlds/util
lib/car/obj/src/cli_i_b.c
/* Get a byte or bytes for one character based on UTF-8 out of the key board. Remarks: Call fn. rl() later. Call fn. _getch twice to read <Ctrl-@>. The first call returns (0x00) and the second call returns (0x03).. Return the number of bytes for one character. Return (~0x00) if a meta key starting from (0x00) is dete...
chlds/util
lib/cbr/obj/src/cli_opt.c
<gh_stars>0 /* **** Notes Opt. Remarks: Based on UTF-8 */ # define CBR # include <stdio.h> # include "../../../incl/config.h" signed(__cdecl cli_opt(cli_property_t(*argp))) { auto signed char *b; auto signed i,r; auto signed short flag; auto cli_codepage_t codepage; if(!argp) return(0x00); r = cli_backup_codepa...
chlds/util
lib/incl/cbr.h
<gh_stars>0 /* The constants, data types and functions for Typewriter Along with C library Remarks: Call function _getch twice to read <Ctrl-@>. The first call returns (0x00) and the second call returns (0x03).. Refer at util/lib/obj/src/cli_in.c and at util/lib/obj/src/cli_io.c Refer at ./config.h */ # include "....
chlds/util
lib/cbr/obj/src/cli_eq_eol.c
/* Along with C library Remarks: Refer at util/lib/obj/src/cli_parse.c */ # define CBR # include <conio.h> # include <stdio.h> # include <stdlib.h> # include "../../../incl/config.h" signed(__cdecl cli_eq_eol(CLI_TYPEWRITER(*argp))) { auto signed char *crlf = ("crlf"); auto signed char *lf = ("lf"); auto signed...
chlds/util
lib/car/obj/src/cals_load_events_internals.c
/* **** Notes Load events i.e., map events at *(CLI_B/O/I/L+(R(event,R(roll,*argp)))) on the RAM. //*/ # define CALEND # define CAR # include <stdio.h> # include "../../../incl/config.h" signed(__cdecl cals_load_events_internals(signed(fd),cals_t(*argp))) { auto signed commas = (0x04); auto signed char comma = (',...
chlds/util
lib/car/obj/src/cv_mo_yr.c
/* **** Notes Convert into seconds of a first week of the first month. Remarks: Refer at <corecrt_wtime.h> */ # define CALEND # define CAR # include "../../../incl/config.h" signed(__cdecl cv_mo_yr(signed short(mon),time_t(*di),time_t(si))) { auto struct tm *tp; auto time_t t; auto signed curr_mo; auto signed i,r...
chlds/util
lib/car/obj/src/ctrl_trim.c
<gh_stars>0 /* Press <Ctrl-X> to invoke the function. Remarks: Refer at fn. ctrl_fn_b. */ # define CAR # include <stdio.h> # include "../../../incl/config.h" signed(__cdecl ctrl_trim(ty_t(*argp))) { auto signed char *b; auto rule_t *rule; auto page_t *page; auto signed r; auto signed short flag; if(!argp) return...
chlds/util
bin/obj/src/ker.c
<reponame>chlds/util<gh_stars>0 /* Key events */ # define R(A,B) (B).A # define THRESHOLD (0x02) # include <conio.h> # include <stdio.h> # include <stdlib.h> # include <windows.h> signed(__cdecl main(signed(argc),signed short(**argv),signed short(**envp))) { /* **** DATA, BSS and STACK */ auto signed char CR = (0...
chlds/util
lib/car/obj/src/read_f.c
<gh_stars>0 /* **** Notes Read bytes to the delimiter. Remarks: Call fn. rl later. Refer at fn. rm_crlf to replace line breaks with the null character. //*/ # define CAR # include <stdio.h> # include "../../../incl/config.h" signed(__cdecl read_f(signed char(**di),signed char(delim),signed(fd))) { auto signed cha...
chlds/util
lib/incl/cli_dbg.h
<filename>lib/incl/cli_dbg.h // # include "dbg.h" # define CLI_DBG_Q (DBG_Q) # define CLI_DBG_D (DBG_D) # define CLI_DBG_W (DBG_W) # define CLI_DBG_B (DBG_B) # define CLI_DBG (DBG) // # define CLI_MONO (0x01) # define CLI_MONO (0x00)
chlds/util
lib/car/obj/src/c_kbhit.c
/* Fn. kbhit for Linux */ // # include <termios.h> // # include <fcntl.h> # include <stdio.h> // # include "./incl/car.h" signed(__cdecl c_kbhit(void)) { /* auto signed flag; auto signed fd; auto signed r; auto struct termios current,old; fd = (0x00); tcgetattr(fd,&old); current = (old); current.c_lflag &= (~(ICANO...
chlds/util
lib/car/obj/src/cals_cache_periodic_events_in_the_day.c
<filename>lib/car/obj/src/cals_cache_periodic_events_in_the_day.c /* **** Notes Cache and update the time. Remarks: Refer at fn. cals_cache_day_events and fn. cals_merge_rolls. //*/ # define CALEND # define CAR # include "../../../incl/config.h" signed(__cdecl cals_cache_periodic_events_in_the_day(time_t(arg),cals...
chlds/util
lib/car/obj/src/cals_reset_event.c
/* **** Notes Reset an event. Remarks: Refer at fn. cv_date, fn. cals_parse, fn. cals_entry and fn. cals_init_event. //*/ # define CALEND # define CAR # include "../../../incl/config.h" signed(__cdecl cals_reset_event(signed char(*content),cals_event_t(*argp))) { auto signed char *b; auto struct tm *tp; auto time...
chlds/util
lib/car/obj/src/cals_cache_day_events_r.c
<filename>lib/car/obj/src/cals_cache_day_events_r.c /* **** Notes Cache events. //*/ # define CALEND # define CAR # include <stdio.h> # include "../../../incl/config.h" signed(__cdecl cals_cache_day_events_r(time_t(criterion),cals_event_t(*cache),cals_roll_t(*argp))) { auto cals_event_t *ev; auto struct tm *tp; au...
chlds/util
lib/car/obj/src/cmpr_part_r.c
<filename>lib/car/obj/src/cmpr_part_r.c /* **** Notes Compare ones in case sensitive character strings. */ # define CAR # include "../../../incl/config.h" signed(__cdecl cmpr_part_r(signed(*cache),signed char(*di),signed char(*si))) { auto signed r; auto signed char c; if(!cache) return(0x00); if(!di) return(0x00...