repo_name
stringlengths
5
122
path
stringlengths
3
232
text
stringlengths
6
1.05M
chlds/util
lib/car/obj/src/cals_load_events_r.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_r(signed char(*path),cals_t(*argp))) { auto signed char **b; auto signed i,r; auto signed short ...
chlds/util
lib/car/obj/src/lk_agent.c
<gh_stars>0 /* **** Notes Look up sub-directories and their contents in the depth-first search Remarks: This program may immediately cause a stack overflow. */ # define CALEND # define CAR # define C_W32API # include "./../../../incl/config.h" # include "./../../../incl/c_dir.h" signed(__cdecl lk_agent(signed(argc...
chlds/util
lib/cbr/obj/src/cl_extend.c
/* **** Notes Extend workspace. Remarks: Based on fn. extend and fn. recharge Along with C library //*/ # define CBR # include <stdio.h> # include <stdlib.h> # include "../../../incl/config.h" signed(__cdecl cl_extend(signed short(cue),signed(extra),CLI_TYPEWRITER(*argp))) { /* **** DATA, BSS and STACK */ auto s...
chlds/util
lib/car/obj/src/cue.c
<reponame>chlds/util /* Retrieve bytes to the leading address of a word or symbol. Remarks: Refer at fn. ct_to Based on UTF-8 */ # define CAR # include "../../../incl/config.h" signed(__cdecl cue(signed char(*sym),signed char(*argp))) { auto signed char *b; auto signed r; auto signed short flag; auto signed short...
chlds/util
lib/car/obj/src/ct_txt.c
<filename>lib/car/obj/src/ct_txt.c /* **** Notes Count letters to the terminating null character. Remarks: Along with alignement of the tab. */ # define CAR # include "../../../incl/config.h" signed(__cdecl ct_txt(signed(arg/* align */),signed char(*argp))) { /* **** DATA, BSS and STACK */ auto signed i,r; /* **...
chlds/util
lib/car/obj/src/pickfiles.c
/* **** Notes Depth-first searching Remarks: If the function fails, the return value is (0x00). */ # define C_CODE_STDS # define C_W32API # define CAR # include "../../../incl/config.h" # define BUFF (0x400) signed(__cdecl pickfiles(signed char(*di),signed char(*si))) { /* **** DATA, BSS and STACK */ extern sign...
chlds/util
lib/car/obj/src/cals_unmap_events.c
<gh_stars>0 /* **** Notes Unmap out of the RAM //*/ # define CALEND # define CAR # include "../../../incl/config.h" signed(__cdecl cals_unmap_events(cals_roll_t(*argp))) { auto cals_event_t *ev; auto signed i,r; if(!argp) return(0x00); ev = (*(CLI_LEAD+(R(event,*argp)))); if(!ev) return(0x00); *(CLI_LEAD+(R(eve...
chlds/util
lib/car/obj/src/init_b.c
/* **** Notes Initialise. */ # define CAR # include "./../../../incl/config.h" signed(__cdecl init_b(signed(cached),signed(arg),signed char(**argp))) { auto signed char *b; if(arg<(0x01)) return(0x00); if(!argp) return(0x00); if(cached) { embed(0x00,*argp); rl(*argp); } b = (0x00); *argp = (b); argp++; --arg; ...
chlds/util
lib/cbr/obj/src/cli_ctrl_x_beta.c
<gh_stars>0 /* Press <Ctrl-X> 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_x_beta(CLI_W32_STAT(*a...
chlds/util
bin/obj/src/dsiz.c
/* **** Notes A program to check the size of each data type */ # define C_CODE_STDS # include "./../../../lib/incl/config.h" /* #ifdef _WIN32 #include <windows.h> #else #include <unistd.h> #endif //*/ /* **** entry point */ signed(__cdecl main(signed(argc),signed char(**argv),signed char(**envp))) { /* **** DATA...
chlds/util
lib/car/obj/src/concat_argv_r_r.c
<reponame>chlds/util /* **** Notes Concatenate */ # define CAR # include "../../../incl/config.h" signed(__cdecl concat_argv_r_r(signed(*di),signed char(**si))) { /* **** DATA, BSS and STACK */ auto signed i,r; /* **** CODE/TEXT */ if(!di) return(0x00); if(!si) return(0x00); if(!(*si)) return(0x00); r = ct(*si)...
chlds/util
lib/car/obj/src/ct_a_back.c
<gh_stars>0 /* **** Notes Count backward. */ # define CAR # include "./../../../incl/config.h" signed(__cdecl ct_a_back(signed char(*argp))) { if(!argp) return(0x00); // if(!(*argp)) return(0x00); return(ct_a_back_r(--argp)); }
chlds/util
lib/car/obj/src/ord.c
/* **** Notes Check the ordinal number. //*/ # define CAR # include "./../../../incl/config.h" signed(__cdecl ord(signed char(*di),signed char(si))) { if(!di) return(0x00); if(!(*di)) return(0x00); if(!(si^(*di))) return(0x00); di++; return(0x01+(ord(di,si))); }
chlds/util
lib/car/obj/src/cli_indent.c
<filename>lib/car/obj/src/cli_indent.c /* Output white space characters to the console screen. */ # define CAR # include <stdio.h> # include "../../../incl/config.h" signed(__cdecl cli_indent(signed short(arg))) { auto signed char *b; auto signed i,r; auto signed short flag; if(arg<(0x00)) return(0x00); if(0x08<(...
chlds/util
lib/car/obj/src/cli_align_r.c
/* Output white space characters to the console screen. Remarks: Refer at fn. cli_indent_r. */ # define CAR # include <stdio.h> # include "../../../incl/config.h" signed(__cdecl cli_align_r(signed short(arg))) { auto signed char *b = (" "); auto signed i,r; auto signed short flag; if(!arg) return(0x00); r = cli...
chlds/util
lib/car/obj/src/cals_crown_mo.c
<reponame>chlds/util<filename>lib/car/obj/src/cals_crown_mo.c /* **** Notes Overwrite time //*/ # define CALEND # define CAR # include "../../../incl/config.h" signed(__cdecl cals_crown_mo(signed short(arg),time_t(*argp))) { auto struct tm *tp; auto time_t t; auto signed i,r; auto signed short mo,yr; auto signed s...
chlds/util
lib/car/obj/src/wr_s_r.c
/* **** Notes Write. //*/ # define CAR # include <stdio.h> # include <errno.h> # include "../../../incl/config.h" signed(__cdecl wr_s_r(signed(fd),signed char(*argp))) { auto signed char *b; auto signed i,r; auto signed short flag; if(fd<(0x00)) return(0x00); if(!argp) return(0x00); AND(flag,0x00); r = wr_b(fd,a...
chlds/util
lib/cbr/obj/src/cli_indent_beta.c
/* Output whitespace to the console screen. Along with C and Windows libraries Remarks: Refer at fn. cli_io_beta, fn. cli_ctrl_i_beta, fn. cli_coord_out_beta and fn. cli_out. */ # define CBR # define CLI_W32 # include <conio.h> # include <stdio.h> # include <stdlib.h> # include "../../../incl/config.h" signed(__...
chlds/util
lib/car/obj/src/appdw_ds.c
<filename>lib/car/obj/src/appdw_ds.c /* **** Notes Append. Remarks: write di,si ; write contents into a storage */ # define CAR # include <stdio.h> # include "./../../../incl/config.h" signed(__cdecl appdw_ds(signed short(**argp))) { auto signed short **v; auto signed short *w; auto signed i,r; auto signed short ...
chlds/util
lib/ccr/obj/src/cmdl2_save.c
<reponame>chlds/util /* **** Notes Commandlet to save except the commandlets Attention: This code is for a doubly LL i.e., <NOT> for a circular LL.. Remarks: Implemented along with fn. cv_v() and with fn. rl_v() */ # define C_CODE_STDS # define CCR # include "../../../incl/config.h" unsigned(__stdcall cmdl2_save(...
chlds/util
lib/car/obj/src/out_argt_line_r.c
<filename>lib/car/obj/src/out_argt_line_r.c /* **** Notes Output only one line. Remarks: Return the number of bytes output for characters. */ # define CAR # include "./../../../incl/config.h" signed(__cdecl out_argt_line_r(signed(n),signed char(**argp))) { auto signed char *b; auto signed r; auto signed short fla...
chlds/util
lib/car/obj/src/cue_backward.c
<gh_stars>0 /* Retrieve the leading address to a previous word. Along with C library Remarks: Refer at fn. cli_io_beta, fn. cli_ctrl_r_beta and fn. cli_ctrl_b_beta. */ # define CAR # include <stdio.h> # include "../../../incl/config.h" signed(__cdecl cue_backward(signed char(**retrv),signed char(*sym),signed char...
chlds/util
lib/cbr/obj/src/cli_load_internal.c
/* Load. Remarks: Refer at fn. cli_bind_pages and fn. cli_concat_pages. */ # define CLI_SYM # define CBR # include <io.h> # include <conio.h> # include <stdio.h> # include <stdlib.h> # include <fcntl.h> # include <sys/stat.h> # include <sys/types.h> # include "../../../incl/config.h" signed(__cdecl cli_load_intern...
chlds/util
lib/cbr/obj/src/cli_ctrl_z_beta.c
/* Press <Ctrl-Z> 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_z_beta(CLI_W32_STAT(*argp))) { /*...
chlds/util
lib/car/obj/src/wr_ds_b_r.c
<filename>lib/car/obj/src/wr_ds_b_r.c<gh_stars>0 /* **** Notes Retrieve a file descriptor to read. Remarks: Refer at fn. wr_ds_b. */ # define CAR # include <stdio.h> # include "./../../../incl/config.h" signed(__cdecl wr_ds_b_r(signed(fd),fl_t(*argp))) { auto signed char *b; auto signed r; auto signed short flag;...
chlds/util
lib/car/obj/src/sleep_b.c
<filename>lib/car/obj/src/sleep_b.c /* **** Notes Sleep. */ # define CAR # include <windows.h> # include "./../../../incl/config.h" void(__cdecl sleep_b(signed(arg))) { auto signed min = (0x10); if(arg) { if(arg<(min)) arg = (min); Sleep(arg); }}
chlds/util
lib/cbr/obj/src/cli_ctrl_y_beta.c
<reponame>chlds/util<gh_stars>0 /* Press <Ctrl-Y> 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_y_...
chlds/util
lib/car/obj/src/ctrl_fn_b.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_b(signed(arg),ty_t(*argp))) { auto signed char *b; auto rule_t *rule; auto page_t *page; auto signed r; auto signed short flag; if(arg&(~CTRL_M...
chlds/util
lib/car/obj/src/cals_init_roll.c
/* **** Notes Initialise //*/ # define CALEND # define CAR # include "../../../incl/config.h" signed(__cdecl cals_init_roll(signed(arg),cals_roll_t(*argp))) { auto time_t t; auto signed r; auto signed short di; auto signed short mo; if(!argp) return(0x00); r = (CALS_OBJS); if(!arg) while(r) *(--r+(R(event,*argp)...
chlds/util
lib/car/obj/src/decode_b_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
lib/car/obj/src/ct_vb.c
<reponame>chlds/util<gh_stars>0 /* **** Notes Count pointers. Remarks: Refer at fn. ct_p, ct_v, and ct_bv. */ # define CAR # include "./../../../incl/config.h" signed(__cdecl ct_vb(signed char(**argp))) { if(!argp) return(0x00); if(!(*argp)) return(0x00); argp++; return(0x01+(ct_vb(argp))); }
chlds/util
lib/car/obj/src/cals_sort_events_r.c
/* **** Notes Sort //*/ # define CALEND # define CAR # include "../../../incl/config.h" signed(__cdecl cals_sort_events_r(signed(arg),cals_roll_t(*argp))) { auto cals_event_t *ev; auto time_t t; auto signed i,r; if(arg<(0x00)) return(0x00); if(!arg) return(0x00); if(!argp) return(0x00); ev = (*(CLI_LEAD+(R(event...
chlds/util
lib/car/obj/src/op_b.c
<reponame>chlds/util<filename>lib/car/obj/src/op_b.c /* **** Notes Open. Remarks: Put a null pointer at the end of arguments if you do not need the third argument. */ # define CAR # include <io.h> # include <stdio.h> # include <stdarg.h> # include <sys/types.h> # include <sys/stat.h> # include <fcntl.h> # include "...
chlds/util
lib/car/obj/src/encode_bw_r.c
<reponame>chlds/util /* Encode characters into bytes based on UTF-8. Remarks: Support for surrogate pairs. */ # define CAR # include <stdio.h> # include "../../../incl/config.h" signed(__cdecl encode_bw_r(signed char(**di),signed short(*si))) { auto signed short SECOND = (0xDC00); auto signed short FIRST = (0xD80...
chlds/util
lib/car/obj/src/cli_outs_legible.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/xt_w.c
<filename>lib/car/obj/src/xt_w.c /* **** Notes Extract and execute. */ # define C_CODE_STDS # define C_AS # define CAR # include "./../../../incl/config.h" signed(__cdecl xt_w(signed char(*param),signed short(*path),void(*argp),signed(__cdecl*f)(signed(arg),void(*argp)))) { auto struct _stat stats; auto signed ac;...
chlds/util
lib/car/obj/src/include_num_internal.c
/* **** Notes Check numerals. Remarks: Based on the decimal notation */ signed(__cdecl include_num_internal(signed short(*flagp), signed char(*argp))) { /* **** DATA, BSS and STACK */ static signed char const(*table) = ("0123456789"); auto signed(i), (r); auto signed char(c); /* **** CODE/TEXT */ if(!flagp) retur...
chlds/util
lib/car/obj/src/cli_set_codepages_beta.c
/* **** Notes Set code pages for console input/output. Remarks: The beta edition is for Win32 API. Based on UTF-8 */ # define CAR # include <stdio.h> # include <windows.h> # include "../../../incl/config.h" signed(__cdecl cli_set_codepages_beta(signed(codepage_input),signed(codepage_output))) { auto signed i,r; a...
chlds/util
lib/car/obj/src/cv_ord_f_r.c
/* **** Notes Check the ordinal number. //*/ # define CAR # include "./../../../incl/config.h" signed(__cdecl cv_ord_f_r(signed char(**table),signed(*retv),signed char(*argp))) { auto signed i,r; if(!table) return(0x00); if(!retv) return(0x00); if(!argp) return(0x00); if(!(*argp)) return(0x00); r = ords(table,ar...
chlds/util
lib/car/obj/src/cv_ord_l_r.c
/* **** Notes Check the ordinal number from behind. //*/ # define CAR # include "./../../../incl/config.h" signed(__cdecl cv_ord_l_r(signed(arg),signed char(**table),signed(*retv),signed char(*argp))) { auto signed i,r; if(arg<(0x01)) return(0x00); if(!table) return(0x00); if(!retv) return(0x00); if(!argp) return...
chlds/util
lib/car/obj/src/cli_fn_backward.c
/* Go backward. Remarks: Refer at util/lib/obj/src/cli_io.c */ # define CAR # include <stdio.h> # include "../../../incl/config.h" signed(__cdecl cli_fn_backward(cli_property_t(*argp))) { auto signed char *b; auto cli_rule_t *rule; auto cli_text_t *text; auto signed i,r; auto signed short flag; if(!argp) return(...
chlds/util
bin/obj/src/art.c
<gh_stars>0 /* **** Notes Read content out of FILE in column. */ # define LDBUFF (2048) # define THRESHOLD (0x03) # define C_CODE_STDS # define C_AS # define CAR # include "./../../../lib/incl/config.h" signed(__cdecl main(signed(argc),signed char(**argv),signed char(**envp))) { auto signed const QUANTUM = (0x10)...
chlds/util
lib/car/obj/src/cals_display_mo_yr.c
/* **** Notes Display the month and year. //*/ # define CALEND # define CAR # include <stdio.h> # include "../../../incl/config.h" signed(__cdecl cals_display_mo_yr(signed short(mo),signed short(yr),cals_t(*argp))) { auto signed char *b; auto rect_t rect; auto signed i,r; auto signed short flag; if(mo<(0x00)) ret...
chlds/util
lib/car/obj/src/cals_release_for_today.c
/* **** Notes Release Remarks: Refer at fn. cals_allocate_for_today. //*/ # define CALEND # define CAR # include "../../../incl/config.h" signed(__cdecl cals_release_for_today(cals_t(*argp))) { auto cals_event_t *event; auto signed char *b; auto signed r; if(!argp) return(0x00); rl(R(b,R(today,*argp))); R(b,R(t...
chlds/util
lib/car/obj/src/ct_digits.c
<reponame>chlds/util<gh_stars>0 /* **** Notes Count digits. */ # define CAR # include "./../../../incl/config.h" signed(__cdecl ct_digits(signed char(*argp))) { auto signed char *fig = ("0123456789"); if(!argp) return(0x00); if(!(*argp)) return(0x00); return(ct_digits_r(fig,argp)); }
chlds/util
lib/car/obj/src/cals_copy_events.c
<gh_stars>0 /* **** Notes Copy //*/ # define CALEND # define CAR # include "../../../incl/config.h" signed(__cdecl cals_copy_events(cals_event_t(*di),cals_event_t(*si))) { auto cals_event_t *ev; auto signed i,r; if(!di) return(0x00); if(!si) return(0x00); R(w,*di) = (R(w,*si)); R(b,*di) = (R(b,*si)); R(t,*di) = ...
chlds/util
lib/car/obj/src/cue_fd.c
/* Cue. Remarks: Return a negative value on failure. Based on UTF-8 */ # define CAR # include "../../../incl/config.h" signed(__cdecl cue_fd(signed(offset),signed(fd))) { auto signed char *b; auto signed i,r; auto signed short flag; auto signed buff = (1024*(1024)); if(offset<(0x00)) return(~0x00); if(fd<(0x00))...
chlds/util
lib/car/obj/src/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 ctrl_fn(signed char(*cache),void(*argp))) { auto signed char *b; auto signed r; auto signed short flag; if(!cache) return(0x00); if(!argp) return(0x00)...
chlds/util
lib/cbr/obj/src/clip_to_empty_beta.c
/* Empty the clipboard. */ # define CAR # include <stdio.h> # include <windows.h> # include "../../../incl/config.h" signed(__cdecl clip_to_empty_beta(void)) { auto signed char *b; auto void *v; auto signed r; auto signed short flag; auto signed DENIED = (0x05); // if(!argp) return(0x00); // retrieve a handle to...
chlds/util
lib/car/obj/src/embed_rr.c
/* **** Notes Embed. */ # define CAR # include <stdio.h> # include "../../../incl/config.h" signed(__cdecl embed_rr(signed(arg),signed char(*argp))) { if(arg<(0x01)) return(0x00); if(!argp) return(0x00); *(--arg+(argp)) = (0x00); return(0x01+(embed_rr(arg,argp))); }
chlds/util
lib/cbr/obj/src/cli_pasting_beta.c
/* Paste out of 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_pasting_beta(CLI_W32_S...
chlds/util
lib/car/obj/src/cmpr_part.c
/* **** Notes Compare ones in case sensitive character strings. */ # define CAR # include "../../../incl/config.h" signed(__cdecl cmpr_part(signed(*cache),signed char(*di),signed char(*si))) { auto signed r; if(!cache) return(0x00); if(!di) return(0x00); if(!si) return(0x00); *cache = (~0x00); return(cmpr_part_...
chlds/util
lib/car/obj/src/store_rule_b.c
<reponame>chlds/util /* **** Notes Store. Remarks: Refer at fn. rule_b, backup_rule_b and restore_rule_b. Based on rule *(CLI_BASE+(R(rule,ty. */ # define CAR # include "../../../incl/config.h" signed(__cdecl store_rule_b(signed(di),signed(si),rule_t(*argp))) { auto signed char *b; auto rule_t *rule; auto signed ...
chlds/util
lib/car/obj/src/decode_key_01.c
<filename>lib/car/obj/src/decode_key_01.c /* **** Notes Decode bytes starting from (0xE0) for a control function. Remarks: Refer at fn. decode_keys, cli_i_b and cli_io_b. */ # define CAR # include <stdio.h> # include "../../../incl/config.h" signed(__cdecl decode_key_01(signed(*di),signed char(*si))) { auto signe...
chlds/util
lib/cbr/obj/src/cli_init_stat_beta.c
/* Initialise along with Win32 API. Retrieve a handle to the specified standard output device. Remarks: The beta edition is for Windows 10 64-bit OS. */ # define CBR # define CLI_W32 # include "../../../incl/config.h" signed(__cdecl cli_init_stat_beta(CLI_W32_STAT(*argp))) { /* **** DATA, BSS and STACK */ auto s...
chlds/util
lib/ccr/obj/src/cmdl2_time.c
/* **** Notes Commandlet to output the local time Flow: Create/map all the Objects on the RAM ---- Select all the handles of the created, loaded or mapped objects to the handles of the memory device context ---- Get a handle of the common device context Bit Block Transfer to the common DC Release the handle of the co...
chlds/util
lib/cbr/obj/src/cli_spool_beta.c
<reponame>chlds/util<filename>lib/cbr/obj/src/cli_spool_beta.c /* **** Notes Along with C and Windows libraries Remarks: Build a doubly linked list Based on UTF-8 */ # define CBR # define CLI_W32 # include <conio.h> # include <stdio.h> # include <stdlib.h> # include "../../../incl/config.h" signed(__cdecl cli_spo...
chlds/util
lib/car/obj/src/cals_agent.c
/* **** Notes Refer at <corecrt_wtime.h> */ # define CALEND # define CAR # include <stdio.h> # include "./../../../incl/config.h" signed(__cdecl cals_agent(signed(argc),signed char(**argv),signed char(**envp))) { auto cals_event_t *ev; auto signed char *b; auto signed char *path; auto cals_t cs; auto cals_roll_t r...
chlds/util
lib/car/obj/src/xt_parse_w.c
<filename>lib/car/obj/src/xt_parse_w.c /* Along with C library Remarks: Refer at util/lib/car/obj/src/xt.c */ # define CAR # include <conio.h> # include <stdio.h> # include <stdlib.h> # include "../../../incl/config.h" signed(__cdecl xt_parse_w(signed(*permission),signed(*access),signed char(*argp))) { auto signe...
chlds/util
lib/car/obj/src/encode_bw.c
/* Encode characters into bytes based on UTF-8. Remarks: Return the number of encoded bytes. Support for surrogate pairs. */ # define CAR # include "../../../incl/config.h" signed(__cdecl encode_bw(signed char(**di),signed short(*si))) { auto signed char *b; auto signed i,r; auto signed short flag; if(!di) retur...
chlds/util
lib/car/obj/src/cals_count_events_r.c
<reponame>chlds/util /* **** Notes Count //*/ # define CALEND # define CAR # include "../../../incl/config.h" signed(__cdecl cals_count_events_r(cals_event_t(*argp))) { if(!argp) return(0x00); argp = (*(CLI_SI+(R(event,*argp)))); return(0x01+(cals_count_events_r(argp))); }
chlds/util
lib/car/obj/src/color_text_r.c
<reponame>chlds/util /* **** Notes Text attributes. Remarks: Virtual Terminal */ # define CAR # include <stdio.h> # include "./../../../incl/config.h" signed(__cdecl color_text_r(signed char(*argp))) { auto signed char *b; auto signed r; auto signed short flag; auto signed char *es = ("\033["); if(!argp) return(...
chlds/util
lib/car/obj/src/cals_sched.c
<filename>lib/car/obj/src/cals_sched.c /* **** Notes Convert //*/ # define CALEND # define CAR # include "../../../incl/config.h" signed(__cdecl cals_sched(time_t(arg),cals_event_t(*argp))) { /* **** DATA, BSS and STACK */ auto struct tm *tp; auto time_t t; auto signed i,r; /* **** CODE/TEXT */ if(!argp) return(0...
chlds/util
lib/cbr/obj/src/cli_ctrl_p_beta.c
<filename>lib/cbr/obj/src/cli_ctrl_p_beta.c /* Press <Ctrl-P> 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...
chlds/util
lib/car/obj/src/cv_argv_bw_r.c
<filename>lib/car/obj/src/cv_argv_bw_r.c /* **** 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_r(signed char(**di),signed s...
chlds/util
lib/car/obj/src/cli_io_b.c
/* **** Notes Output characters in UTF-16 after decoding 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_b(ty_t(*argp))) { auto signed char *b; auto rule_t *rule; auto page_t *page; auto signed i,r; auto signed ...
chlds/util
lib/car/obj/src/cli_i_b_r.c
<reponame>chlds/util /* Get a byte or bytes for one character based on UTF-8 out of the key board. */ # define CAR # include <conio.h> # include <stdio.h> # include "../../../incl/config.h" signed(__cdecl cli_i_b_r(signed(arg),signed char(**argp))) { auto signed char *b; auto signed r; auto signed short flag; if(...
chlds/util
lib/car/obj/src/pixel_beta.c
<filename>lib/car/obj/src/pixel_beta.c /* Set CLI_IN to get the screen pixels at argument io. Remarks: Refer at fn. cli_init_property. The beta edition is for Windows 10 64-bit OS. */ # define CAR # include "../../../incl/config.h" # include <windows.h> signed(__cdecl pixel_beta(signed(io),signed(arg),pixel_t(*arg...
chlds/util
lib/car/obj/src/cli_align.c
/* Output white space characters to the console screen. Remarks: Refer at fn. cli_indent. */ # define CAR # include <stdio.h> # include "../../../incl/config.h" signed(__cdecl cli_align(signed short(arg))) { auto signed char *b; auto signed r; auto signed short flag; if(arg<(0x00)) return(0x00); if(0x08<(arg)) r...
chlds/util
lib/car/obj/src/ct_argt_r.c
<reponame>chlds/util /* **** Notes Count arguments. */ # define CAR # include "./../../../incl/config.h" signed(__cdecl ct_argt_r(signed char(*argp))) { auto signed r; if(!argp) return(0x00); if(!(*argp)) return(0x00); AND(r,0x00); if(!(EQ(HT,*argp))) OR(r,0x01); return(r+(ct_argt_r(argp+(cue_argt(argp))))); }
chlds/util
lib/cbr/obj/src/cli_search_pages.c
<reponame>chlds/util /* **** Notes Search pages out of the index page to find characters. Remarks: Based on a doubly linked list */ # define CBR # include "../../../incl/config.h" signed(__cdecl cli_search_pages(CLI_TYPEWRITER(*argp))) { /* **** DATA, BSS and STACK */ auto cli_page_t *page; auto signed char *cu...
chlds/util
lib/car/obj/src/wr_pages.c
<reponame>chlds/util<gh_stars>0 /* **** Notes Write. //*/ # define CAR # include "../../../incl/config.h" signed(__cdecl wr_pages(signed(fd),page_t(*argp))) { auto signed char *b; auto page_t *page; auto signed i,r; auto signed short flag; if(fd<(0x00)) return(0x00); if(!argp) return(0x00); page = (*(CLI_BASE+(R...
chlds/util
lib/car/obj/src/cvlf_rddir.c
/* **** Notes Convert the code of line break into LF. Remarks: Along with fn. cvlf_finds */ # define CALEND # define CAR # define C_W32API # include "../../../incl/config.h" # include "../../../incl/c_dir.h" signed(__cdecl cvlf_rddir(c_dirs_info_t(*argp))) { auto SYSTEMTIME st; void *dis; auto signed char *path;...
chlds/util
lib/cbr/obj/src/cli_ctrl_s_beta.c
/* Press <Ctrl-S> 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_s_beta(CLI_W32_STAT(*argp))) { /*...
chlds/util
lib/car/obj/src/encode2b_r.c
<gh_stars>0 /* Encode characters into bytes based on UTF-8. Remarks: No support for surrogate pairs. */ # define CAR # include <stdio.h> # include "../../../incl/config.h" signed(__cdecl encode2b_r(signed char(**di),signed short(*si))) { auto signed char *b; auto signed i,r; auto signed short flag; if(!di) retur...
chlds/util
lib/car/obj/src/ascend_ll.c
<filename>lib/car/obj/src/ascend_ll.c /* **** Notes Ascend the current temporary knot position - i.e., (*argp).t in a pointer of the knot structure. Deprecated.. di: Put the address for the current temporary knot i.e., (*argp).t in a pointer of the knot structure at. si: Put the current temporary knot - or e.g., lea...
chlds/util
lib/cbr/obj/src/cli_ctrl_rsb_beta.c
<reponame>chlds/util<gh_stars>0 /* Press <Ctrl-]> to invoke the function. Remarks: Refer at util/lib/obj/src/cli_io_beta.c */ # define CBR # define CLI_W32 # include <stdio.h> # include "../../../incl/config.h" signed(__cdecl cli_ctrl_rsb_beta(CLI_W32_STAT(*argp))) { /* **** DATA, BSS and STACK */ auto signed cha...
chlds/util
lib/car/obj/src/cv_time.c
/* **** Notes Convert to time out of characters. //*/ # define CALEND # define CAR # include "../../../incl/config.h" signed(__cdecl cv_time(signed char(*b),cals_event_t(*argp))) { auto signed i,r; auto signed short flag; if(!b) return(0x00); if(!argp) return(0x00); // init. i = (CALS_TIME); while(i) *(--i+(R(ti...
chlds/util
lib/car/obj/src/wr_ds_r.c
<gh_stars>0 /* **** Notes Store contents after retrieving a file descriptor to write. Remarks: Refer at fn. wr_ds_w and fn. wr_ds_b. */ # define CAR # include <stdio.h> # include "./../../../incl/config.h" signed(__cdecl wr_ds_r(signed(fd),fl_t(*argp))) { auto signed *d; auto signed r; auto signed short flag; if...
chlds/util
lib/cbr/obj/src/cli_unmap.c
<reponame>chlds/util /* **** Notes Unmap. Remarks: Along with C library //*/ # define CBR # include <stdlib.h> # include "../../../incl/config.h" signed(__cdecl cli_unmap(signed(times),signed char(**argp))) { /* **** CODE/TEXT */ if(!argp) return(0x00); if(times<(0x01)) return(0x00); if(*argp) { embed(0x00,*argp...
chlds/util
lib/car/obj/src/cals_crown_yr_r.c
/* **** Notes Overwrite time //*/ # define CALEND # define CAR # include "../../../incl/config.h" signed(__cdecl cals_crown_yr_r(signed short(arg),time_t(*argp))) { auto struct tm *tp; auto time_t t; auto signed i,r; auto signed short mo,yr; auto signed short weeks; auto signed short flag; if(!arg) return(0x00); ...
chlds/util
lib/car/obj/src/cals_init_event.c
/* **** Notes Initialise //*/ # define CALEND # define CAR # include "../../../incl/config.h" signed(__cdecl cals_init_event(cals_event_t(*argp))) { auto struct tm *tp; auto time_t t; auto signed i,r; if(!argp) return(0x00); time(&t); R(t,*argp) = (t); tp = localtime(&t); if(!tp) return(0x00); *(CALS_YR+(R(dat...
chlds/util
lib/car/obj/src/ct_argt.c
<reponame>chlds/util<filename>lib/car/obj/src/ct_argt.c /* **** Notes Count arguments. Remarks: Refer at fn. rm_brs. */ # define CAR # include "./../../../incl/config.h" signed(__cdecl ct_argt(signed char(*argp))) { if(!argp) return(0x00); if(!(*argp)) return(0x00); return(ct_argt_r(argp+(cue_ready(argp)))); }
chlds/util
lib/car/obj/src/cals_count_scheduled_events.c
/* **** Notes Count events scheduled for a week. //*/ # define CALEND # define CAR # include "../../../incl/config.h" signed(__cdecl cals_count_scheduled_events(signed(*cache),time_t(arg),cals_roll_t(*argp))) { /* **** DATA, BSS and STACK */ auto cals_event_t *ev; auto struct tm *tp; auto cals_event_t term; auto t...
chlds/util
lib/car/obj/src/cals_cache_periodic_events_in_the_day_r.c
<reponame>chlds/util<gh_stars>0 /* **** 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_r(time_t(arg),cals_event_t(*cache),cals_roll_t(*ar...
chlds/util
lib/car/obj/src/coord_b.c
<gh_stars>0 /* Set CLI_IN to get the current cursor position or CLI_OUT to set the cursor position at argument io. Remarks: Only in the Virtual Terminal */ # define CAR # include "../../../incl/config.h" signed(__cdecl coord_b(signed(io),signed(arg),coord_t(*argp))) { auto signed char *b; auto signed i,r; auto si...
chlds/util
lib/car/obj/src/cli_support_meta_keys.c
/* Support for function and arrow keys Remarks: Refer at fn. cli_io_beta, fn. cli_in and fn. cli_ctrl_at_beta. */ # define CAR # include <stdio.h> # include "../../../incl/config.h" signed(__cdecl cli_support_meta_keys(signed(*character),signed char(second),signed char(first))) { /* **** DATA, BSS and STACK */ a...
chlds/util
lib/car/obj/src/color_text.c
<gh_stars>0 /* **** Notes Text attributes. Remarks: Virtual Terminal */ # define CAR # include <stdio.h> # include "./../../../incl/config.h" signed(__cdecl color_text(signed(fg),signed(bg))) { auto signed i,r; r = color_text_fg(fg); if(!r) { printf("%s \n","<< Error at fn. color_text_fg()"); return(0x00); } r ...
chlds/util
lib/cbr/obj/src/cli_display_header.c
<filename>lib/cbr/obj/src/cli_display_header.c /* **** Notes Display the two-row header. Remarks: EOL with CR (0x0D) and LF (0x0A) */ # define CBR # include <stdio.h> # include <time.h> # include "../../../incl/config.h" signed(__cdecl cli_display_header(CLI_TYPEWRITER(*argp))) { /* **** DATA, BSS and STACK */ au...
chlds/util
lib/cbr/obj/src/cli_ctrl_u_beta.c
/* Press <Ctrl-U> 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_u_beta(CLI_W32_STAT(*argp))) { /*...
chlds/util
lib/car/obj/src/cv_ords_r.c
<reponame>chlds/util /* **** Notes Check the ordinal number. //*/ # define CAR # include "../../../incl/config.h" signed(__cdecl cv_ords_r(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); ...
chlds/util
lib/car/obj/src/ctrl_kick.c
/* Delete forward. Remarks: Refer at util/lib/obj/src/cli_io_b.c */ # define CAR # include <stdio.h> # include "../../../incl/config.h" signed(__cdecl ctrl_kick(ty_t(*argp))) { auto signed char *b; auto rule_t *rule; auto page_t *page; auto signed i,r; auto signed short flag; if(!argp) return(0x00); // page = (...
chlds/util
lib/car/obj/src/c_putch.c
<reponame>chlds/util /* Fn. putch for Linux */ # include <stdio.h> // # include "./incl/car.h" signed(__cdecl c_putch(signed(arg))) { // return(fputc(arg,stdout)); return(0x01); }
chlds/util
lib/car/obj/src/read2_f_r.c
/* **** Notes Read bytes to the delimiter. //*/ # define CAR # include "../../../incl/config.h" signed(__cdecl read2_f_r(signed char(**di),signed short(*flag),signed char(*delim),signed(fd))) { auto signed char *b; auto signed i,r; if(!di) return(0x00); if(!flag) return(0x00); if(*flag) return(0x00); r = ct(*di)...
chlds/util
lib/car/obj/src/writef.c
/* **** Notes Write. //*/ # 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 writef(signed short(arg),signed(fd),void(*a...
chlds/util
lib/car/obj/src/cli_k.c
/* I/O. Remarks: Return the number of bytes. */ # define CAR # include <stdio.h> # include "../../../incl/config.h" signed(__cdecl cli_k(void(*argp))) { auto signed char *b; auto signed r; auto signed short flag; if(!argp) return(0x00); /* b = (0x00); r = cli_i(&b); if(!r) { printf("%s\n","<< Error at fn. cli_i...
chlds/util
lib/car/obj/src/color_text_fg.c
/* **** Notes Text attributes. Remarks: Virtual Terminal */ # define CAR # include <stdio.h> # include "./../../../incl/config.h" signed(__cdecl color_text_fg(signed(arg))) { auto signed fg[] = { COLOR_BLACK, COLOR_RED, COLOR_GREEN, COLOR_YELLOW, COLOR_BLUE, COLOR_MAGENTA, COLOR_CYAN, COLOR_WHITE, COLOR_BRIGHT_BL...
chlds/util
lib/car/obj/src/nbytechar.c
/* Check the leading Unicode byte for a character based on UTF-8: .iiii.o*** (0xF0) that stands for the leading byte for a 4-byte character i.e., for a 21-bit-efficient character expressed in .iiii.o*** .io**.**** .io**.**** .io**.**** (3+6+6+6) on 32 bits, .iiio.**** (0xE0) that stands for the leading byte for a 3-b...
chlds/util
lib/car/obj/src/wr_rd_r.c
/* **** Notes Read and write. */ # define CAR # include <stdio.h> # include <errno.h> # include "./../../../incl/config.h" signed(__cdecl wr_rd_r(signed(*fd),signed char(*cache),signed(size))) { auto signed char *b; auto signed i,r; if(!fd) return(0x00); if(!cache) return(0x00); if(size<(0x01)) return(0x00); r =...
chlds/util
lib/car/obj/src/cli_i.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. */ # define CAR # include <stdio.h> # include "../../.....