repo_name
stringlengths
5
122
path
stringlengths
3
232
text
stringlengths
6
1.05M
chlds/util
lib/car/obj/src/coord_save.c
<gh_stars>0 /* Coordinate. */ # define CAR # include "../../../incl/config.h" signed(__cdecl coord_save(void)) { return(cli_es(CTRL_S)); }
chlds/util
bin/obj/src/cli_kb3.c
/* **** Notes Output Unicode characters in UTF-8. Remarks: Based on UTF-8 */ # include <conio.h> # include <stdio.h> # include <stdlib.h> # define COUNT_CP (0x04) # define BUFF (0x1000) signed(__cdecl main(void)) { /* **** DATA, BSS and STACK */ enum { OUTPUT,INPUT,BACKUP, }; auto unsigned const UTF_8 = (65001)...
chlds/util
lib/car/obj/src/cv_da_first.c
/* **** Notes Convert into a signed double word out of characters. //*/ # define CAR # include "../../../incl/config.h" signed(__cdecl cv_da_first(signed short(radix),signed(*di),signed char(*si))) { auto signed char *table = ("0123456789ABCDEF"); auto signed char minus = ('-'); auto signed short hexa = (0x10); au...
chlds/util
lib/car/obj/src/rl_v.c
/* **** Notes Unmap all the buffers allocated by fn. cv_v, cv_wo, cv_ww or.. Remarks: Refer at fn. cv_pv, cli_outv or cli_output. */ # define CAR # include "../../../incl/config.h" signed(__cdecl rl_v(signed char(***argp))) { auto signed r; if(!argp) return(0x00); if(!(*argp)) return(0x00); r = rl_v_r(*argp); i...
chlds/util
lib/car/obj/src/rm_trailing_spaces.c
<reponame>chlds/util /* **** Notes Remove trailing spaces. */ # define CAR # include "./../../../incl/config.h" signed(__cdecl rm_trailing_spaces(signed char(*argp))) { auto signed r; if(!argp) return(0x00); r = ct(argp); return(rm_trailing_spaces_r(r,r+(argp))); }
chlds/util
lib/car/obj/src/release.c
<gh_stars>0 /* **** Notes Release. Remarks: Refer at fn. keep and fn. keep_w. */ # define CAR # include "../../../incl/config.h" signed(__cdecl release(signed(arg),void(**argp))) { /* **** DATA, BSS and STACK */ auto signed char *b; auto signed i,r; /* **** CODE/TEXT */ if(arg<(0x00)) return(0x00); if(!argp) ret...
chlds/util
bin/obj/src/t.c
/* **** Notes Refer at <corecrt_wtime.h> */ # define C_CODE_STDS # define CALEND # define CAR # include "./../../../lib/incl/config.h" signed(__cdecl main(signed(argc),signed char(**argv),signed char(**envp))) { /* **** DATA, BSS and STACK */ auto signed const QUANTUM = (0x10); auto signed const SNOOZE = (0x04); a...
chlds/util
lib/car/obj/src/v_map_beta.c
<filename>lib/car/obj/src/v_map_beta.c /* 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 v_map_beta(cli_text_t(*cache),cli_clipboard_t(*argp))) { /* ****...
chlds/util
lib/car/obj/src/wr_trunc_b.c
<gh_stars>0 /* **** Notes Truncate. //*/ # define CAR # include <io.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 wr_trunc_b(signed char(*cache/* an extension for...
chlds/util
lib/cbr/obj/src/cli_init_ty.c
<filename>lib/cbr/obj/src/cli_init_ty.c /* Initialise. */ # define CBR # include "../../../incl/config.h" signed(__cdecl cli_init_ty(signed(size),CLI_TYPEWRITER(*argp))) { /* **** DATA, BSS and STACK */ auto signed char *p; auto signed i,r; auto signed short flag; /* **** CODE/TEXT */ if(size<(0x01)) return(0x00...
chlds/util
lib/car/obj/src/retr_f_r.c
<reponame>chlds/util /* **** Notes Retrieve files. Remarks: Refer at fn. rddir. */ # define CAR # define C_W32API # include "../../../incl/config.h" # include "../../../incl/c_dir.h" signed(__cdecl retr_f_r(signed char(***di),dir_info_stored_t(*argp))) { auto signed char *b; auto signed char *p; auto signed i,r; ...
chlds/util
lib/car/obj/src/cals_refer_events_internal.c
<filename>lib/car/obj/src/cals_refer_events_internal.c /* **** Notes Refer //*/ # define CALEND # define CAR # include "../../../incl/config.h" signed(__cdecl cals_refer_events_internal(signed short(arg),cals_event_t(*cache),cals_t(*argp))) { auto struct tm *tp; auto time_t t; auto signed i,r; auto signed short di...
chlds/util
lib/car/obj/src/cals_allocate_for_today.c
/* **** Notes Allocate //*/ # define CALEND # define CAR # include "../../../incl/config.h" signed(__cdecl cals_allocate_for_today(cals_t(*argp))) { auto cals_event_t *event; auto signed char *b; auto rect_t rect; auto signed i,r; if(!argp) return(0x00); // r = (-16+(5+(COL_R))); if(!(rect_beta(CLI_IN,CLI_BASE,&...
chlds/util
lib/car/obj/src/sw_p.c
<gh_stars>0 /* **** Notes Exchange the DI and the SI */ # define CAR # include "../../../incl/config.h" signed(__cdecl sw_p(void(**di),void(**si))) { auto void *p; if(!di) return(0x00); if(!si) return(0x00); p = (*di); *di = (*si); *si = (p); return(0x01); }
chlds/util
lib/incl/config.h
/* Configure Remarks: ---- */ # define __cdecl // # define COMPILE_IN_GCC_WSL64 # ifdef COMPILE_IN_GCC_WSL64 # define __cdecl __attribute__((ms_abi)) # endif # include "./dbg.h" # include "./ctrl.h" # include "./cli_codepage.h" # include "./cli_property.h" # include "./cli_macro.h" # ifdef C_CODE_STDS # include <...
chlds/util
lib/cbr/obj/src/cli_ctrl_b_beta.c
/* Press <Ctrl-B> 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_b_beta(CLI_W32_STAT(*argp))) { /*...
chlds/util
lib/car/obj/src/cv_v_r.c
/* **** Notes Split out of an array for letters. Remarks: After calling fn. cv_v, please call fn. rl_v to unmap the buffer allocated on the RAM. */ # define CAR # include "../../../incl/config.h" signed(__cdecl cv_v_r(signed char(**di),signed short(*flag),signed char(*si))) { auto signed char *b; auto signed i,r;...
chlds/util
lib/car/obj/src/cals_refer_monthly_events_in_days.c
<reponame>chlds/util /* **** Notes Refer Remarks: Refer at fn. cals_refer_events_internal. //*/ # define CALEND # define CAR # include "../../../incl/config.h" signed(__cdecl cals_refer_monthly_events_in_days(signed short(arg),cals_event_t(*cache),cals_t(*argp))) { auto struct tm *tp; auto time_t t; auto signed i...
chlds/util
lib/cbr/obj/src/cli_concat_snapshots.c
/* **** Notes Concatenate the lead, index, offset and base snapshots in a doubly linked list (for general purpose). Remarks: Refer at fn. cli_init_pages, fn. cli_bind_pages and fn. cli_unmap_pages. Based on a doubly linked list (i.e., not a circular linked list) //*/ # define CBR # include "../../../incl/config.h"...
chlds/util
lib/car/obj/src/wr_bkup_b.c
/* **** Notes Store a backup file. //*/ # define CAR # include <stdio.h> # include "../../../incl/config.h" signed(__cdecl wr_bkup_b(signed char(*extension),signed char(*argp))) { auto signed char **v; auto signed char *b; auto signed i,r; auto signed short flag; auto signed char *(a[OBJS]); if(!extension) return...
chlds/util
lib/incl/cals_e.h
<reponame>chlds/util<gh_stars>0 /* cals_e.h */ enum { JANUARY,FEBRUARY,MARCH,APRIL,MAY,JUNE,JULY,AUGUST,SEPTEMBER,OCTOBER,NOVEMBER,DECEMBER,MONTHS, }; enum { SUNDAY,MONDAY,TUESDAY,WEDNESDAY,THURSDAY,FRIDAY,SATURDAY,DAYS, }; enum { CALS_WK,CALS_DI,CALS_MO,CALS_YR,CALS_DATE, }; enum { CALS_SM,CALS_MN,CALS_HR,CALS_TIM...
chlds/util
lib/car/obj/src/cals_out_t.c
/* **** Notes Output. Remarks: To debug //*/ # define CALEND # define CAR # include "../../../incl/config.h" signed(__cdecl cals_out_t(time_t(arg))) { auto struct tm *tp; auto time_t t; auto signed i,r; auto signed short sm,mn,hr; auto signed short wk,di,mo,yr; t = (arg); tp = localtime(&t); if(!tp) return(0x00)...
chlds/util
lib/car/obj/src/concat_ll.c
/* **** Notes Concatenate a knot in a circular/doubly linked list. flag: 0x00 is in a doubly linked list and the others are in a circular linked list. cache: Put an address of the <knot> structure at. Remarks: Please look at util/incl/ll.h */ # define CAR # include "../../../incl/config.h" signed(__cdecl concat_l...
chlds/util
lib/incl/cals_d.h
<reponame>chlds/util /* cals_d.h */ # define CALS_INIT (0x01) # define CALS_VERBOSE (0x02) # define CALS_DATE_TODAY (0x04) # define CALS_TIME_ALLDAY (0x08) # define CALS_NO_SUBJECT (0x10) # define CALS_LOADED (0x20) # define CALS_INVALID (0x40) # define CALS_INTERRUPT (0x80) # define CALS_ERROR (0x100) # define CALS_N...
chlds/util
lib/car/obj/src/cli_init_virtual_terminal_beta.c
/* **** Notes Initialise */ # define CAR # include <windows.h> # include "./../../../incl/config.h" signed(__cdecl cli_init_virtual_terminal_beta(signed(arg),cli_virtual_terminal_t(*argp))) { auto i_mode[] = { ENABLE_ECHO_INPUT, ENABLE_INSERT_MODE, ENABLE_LINE_INPUT, ENABLE_MOUSE_INPUT, ENABLE_PROCESSED_INPUT, ENA...
chlds/util
lib/car/obj/src/cli_fn_esc.c
<reponame>chlds/util /* Escape. Remarks: Refer at util/lib/obj/src/cli_io.c */ # define CAR # include <stdio.h> # include "../../../incl/config.h" signed(__cdecl cli_fn_esc(cli_property_t(*argp))) { auto signed char *b; auto cli_text_t *text; auto signed i,r; auto signed short flag; if(!argp) return(0x00); text...
chlds/util
lib/incl/car.h
/* Configure Remarks: ---- */ # include "./car_e.h" # include "./car_d.h" # include "./car_f.h"
chlds/util
bin/obj/src/dupl.c
<gh_stars>0 /* **** Notes Duplicate in the binary format. */ # define CAR # include <stdio.h> # include "./../../../lib/incl/config.h" signed(__cdecl wmain(signed(argc),signed short(**argv),signed short(**envp))) { auto signed r; auto signed short flag; r = dupl_agent_w(argc,argv,envp); if(!r) printf("%s \n","<< ...
chlds/util
lib/car/obj/src/rect_b.c
/* Set CLI_IN to get the current rectangle or CLI_OUT to set the rectangle at argument io. Remarks: Only in the Virtual Terminal */ # define CAR # include "../../../incl/config.h" signed(__cdecl rect_b(signed(io),signed(arg),rect_t(*argp))) { auto signed char *b; auto signed i,r; auto signed short flag; if(arg<(...
chlds/util
lib/car/obj/src/output_ll.c
/* **** Notes Output character lines out of the argument argp: Put the terminating address of the <knot> structure at. Remarks: Use in debugging */ # define CAR # include <stdio.h> # include "../../../incl/config.h" signed(__cdecl output_ll(KNOT(*argp))) { auto KNOT *cache; if(!argp) return(0x00); cache = (arg...
chlds/util
lib/car/obj/src/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) Refer at fn. concat_pages and fn. bind_pages. //*/ # define CAR # include "../../../incl/config.h" signed(__cdecl unmap_pages(page_t(*argp))) { auto page_t *page; auto s...
chlds/util
lib/incl/cli_macro.h
<reponame>chlds/util<filename>lib/incl/cli_macro.h /* Circ. XNOR, XOR, NOR, OR, NAND, AND and/or NOT Standards: STDIN, STDOUT and STDERR The object-like macros and function-like macros for Typewriter Remarks: Refer at ./config.h */ # define external extern # define global # define SHL(A,B) A = (A<<(B)) # define SH...
chlds/util
lib/cbr/obj/src/cli_ctrl_w_beta.c
<gh_stars>0 /* Press <Ctrl-W> 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_w_beta(CLI_W32_STAT(*a...
chlds/util
lib/car/obj/src/closef.c
<reponame>chlds/util<gh_stars>0 /* **** Notes Close. //*/ # 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 closef(sign...
chlds/util
lib/car/obj/src/cre_b.c
/* **** Notes Create. */ # define CAR # include "./../../../incl/config.h" signed(__cdecl cre_b(signed char(*perm),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)); if(!perm) return(0x00); if(!path) return(0x00); ...
chlds/util
lib/cbr/obj/src/cli_do_beta.c
/* Undo or redo. 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_do_beta(signed short(arg),CLI_W32_STAT(*argp))) { /* **** DATA,...
chlds/util
lib/car/obj/src/cals_count_scheduled_periodic_events.c
/* **** Notes Count periodic events scheduled for a week. //*/ # define CALEND # define CAR # include "../../../incl/config.h" signed(__cdecl cals_count_scheduled_periodic_events(signed(*cache),cals_event_t(*term),cals_event_t(*argp))) { auto signed i,r; auto signed short periodic; auto signed(__cdecl*f)(signed(*c...
chlds/util
lib/car/obj/src/cals_bind_events.c
/* **** Notes Concatenate events after allocating a memory block for structure cals_t. Remarks: Build a doubly linked list */ # define CALEND # define CAR # include <stdio.h> # include "../../../incl/config.h" signed(__cdecl cals_bind_events(cals_roll_t(*argp))) { auto cals_event_t *ev; auto signed char *b; auto...
chlds/util
lib/car/obj/src/cals_reparse.c
<reponame>chlds/util<gh_stars>0 /* **** Notes Convert an event into a CSV. [DATE],[YEAR],[TIME](,[DATE],[YEAR],[TIME]),[FLAG],[PERIODIC],[SUBJECT] Remarks: Release a memory block at the *b. Refer at fn. cals_store. //*/ # define CALEND # define CAR # include <stdio.h> # include "../../../incl/config.h" signed(__c...
chlds/util
lib/car/obj/src/clear_rows.c
/* **** Notes Clear rows. Remarks: Only in the Virtual Terminal */ # define CAR # include <stdio.h> # include "../../../incl/config.h" signed(__cdecl clear_rows(signed(arg))) { auto signed char *b; auto coord_t coord; auto signed r; auto signed short flag; if(arg<(0x00)) return(cli_es(CTRL_J)); if(!arg) return(c...
chlds/util
lib/car/obj/src/reading.c
/* **** Notes Read one line out of the standard input. di: Put a buffer at. size: Put the buffer size at. */ # define CAR # include <stdio.h> # include "../../../incl/config.h" signed(__cdecl reading(signed char(*di),signed(size))) { auto signed r; if(!di) return(0x00); if(size<(0x01)) return(0x00); r = rd_b(CL...
chlds/util
lib/car/obj/src/cv_da_r.c
/* **** Notes Convert into a signed double word out of characters. //*/ # define CAR # include "../../../incl/config.h" signed(__cdecl cv_da_r(signed short(radix),signed char(*table),signed(*di),signed char(*si))) { auto signed i,r; auto signed short flag; auto signed char c; if(!table) return(0x00); if(!di) retu...
chlds/util
lib/car/obj/src/align_backward.c
<filename>lib/car/obj/src/align_backward.c /* **** Notes Return the number of spaces that are output when the tab key is pressed. Remarks: Refer at fn. align_b. */ # define CAR # include "../../../incl/config.h" signed(__cdecl align_backward(signed(arg),signed char(*argp))) { if(arg<(0x00)) return(0x00); if(!arg)...
chlds/util
lib/cbr/obj/src/cli_ctrl_l_beta.c
<filename>lib/cbr/obj/src/cli_ctrl_l_beta.c /* Press <Ctrl-L> to invoke the function. Along with C and Windows libraries Remarks: Refer at fn. cli_io_beta. */ # define CLI_SYM # define CBR # define CLI_W32 # include <stdio.h> # include "../../../incl/config.h" signed(__cdecl cli_ctrl_l_beta(CLI_W32_STAT(*argp)))...
chlds/util
lib/car/obj/src/init_ty.c
/* **** Notes Initialise Remarks: Refer at fn. cli_restore. */ # define CLI_SYMB # define CAR # include "./../../../incl/config.h" signed(__cdecl init_ty(signed(arg),ty_t(*argp))) { auto signed char **v; auto signed char *b; auto config_t *config; auto rule_t *rule; auto page_t *page; auto signed r; auto signed s...
chlds/util
lib/car/obj/src/cpy2.c
/* **** Notes Copy up to a specific character. Remarks: Using for fn. splt */ # define CAR # include "../../../incl/config.h" signed(__cdecl cpy2(signed char(cache), signed char(*di), signed char(*si))) { /* **** DATA, BSS and STACK */ auto signed char c; /* **** CODE/TEXT */ if(!di) return(0x00); if(!si) return...
chlds/util
lib/cbr/obj/src/cli_ctrl_f_beta.c
/* Press <Ctrl-F> 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_f_beta(CLI_W32_STAT(*argp))) { /*...
chlds/util
lib/cbr/obj/src/cli_reconcat_pages.c
/* **** Notes Reconcatenate the lead, index, offset and base pages in a doubly linked list (for general purpose). Remarks: Refer at fn. cli_init_pages, fn. cli_concat_pages, fn. cli_bind_pages and fn. cli_unmap_pages. Based on a doubly linked list (i.e., not a circular linked list) //*/ # define CBR # include "../...
chlds/util
lib/car/obj/src/cat_p.c
/* **** Notes Concatenate pointers. Remarks: Release buffer later. */ # define CAR # include "./../../../incl/config.h" signed(__cdecl cat_p(signed char(***di),signed char(*si))) { auto signed char **b; auto signed char *p; auto signed i,r; if(!di) return(0x00); if(!si) return(0x00); // if(!(*di)) return(0x00); ...
chlds/util
lib/car/obj/src/cals_load_events_r_r.c
/* **** Notes Load events i.e., map events at *(CLI_B/O/I/L+(R(event,R(roll,*argp)))) on the RAM. Remarks: Refer at fn. cals_load_events_internal. //*/ # define C_CODE_STDS # define CALEND # define CAR # include "../../../incl/config.h" signed(__cdecl cals_load_events_r_r(signed char(**path),cals_t(*argp))) { aut...
chlds/util
lib/car/obj/src/ctrl_pin_r.c
/* 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 "../../../incl/config.h" signed(__cdecl ctrl_pin_r(ty_t(*argp))) { auto signed char *b; auto signed short *w; auto rule_t *rule; auto page_t *page; auto signed i,r; ...
chlds/util
lib/incl/cue_sym.h
<filename>lib/incl/cue_sym.h /* Cue. Remarks: Refer at header file config.h. */ signed char CUE_SYM[] = { SYM_EXCLAMATION_MARK, SYM_QUOTATION_MARK, SYM_NUMBER_SIGN, SYM_DOLLAR_SIGN, SYM_PERCENT_SIGN, SYM_AMPERSAND, SYM_APOSTROPHE, SYM_LEFT_PARENTHESIS, SYM_RIGHT_PARENTHESIS, SYM_ASTERISK, SYM_PLUS_SIGN, SYM_COMMA, ...
chlds/util
lib/car/obj/src/rule_b.c
<filename>lib/car/obj/src/rule_b.c /* **** Notes Concatenate with a rule. Remarks: Refer at fn. append_rule_b, store_rule_b, backup_rule_b and restore_rule_b. */ # define CAR # include "../../../incl/config.h" signed(__cdecl rule_b(signed(arg),rule_t(*di),signed char(*si))) { auto signed char *b; auto signed i,r;...
chlds/util
lib/incl/cbr_f_w32.h
<filename>lib/incl/cbr_f_w32.h /* The constants, data types and functions for Typewriter Along with C and Windows libraries 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_beta.c...
chlds/util
lib/car/obj/src/ld_b_r.c
/* **** Notes Load. */ # define CAR # include <stdio.h> # include "./../../../incl/config.h" signed(__cdecl ld_b_r(signed(fd),fl_t(*argp))) { auto signed char *b; auto signed r; auto signed offset; auto signed range; auto signed short flag; if(fd<(0x00)) return(0x00); if(!argp) return(0x00); *(CLI_SI+(R(fd,*argp...
chlds/util
lib/cbr/obj/src/cli_count_pages.c
<reponame>chlds/util /* **** Notes Count pages of structure cli_page_t. Remarks: Based on a doubly linked list */ # define CBR # include "../../../incl/config.h" signed(__cdecl cli_count_pages(cli_page_t(*argp))) { /* **** CODE/TEXT */ if(!argp) return(0x00); argp = (R(d,*argp)); return(0x01+(cli_count_pages(a...
chlds/util
lib/car/obj/src/cv_wk_yr.c
/* **** Notes Convert into second minutes for Calendar Week 1. //*/ # define CALEND # define CAR # include <stdio.h> # include "../../../incl/config.h" signed(__cdecl cv_wk_yr(signed short(day_thefirst),signed short(month_thefirst),time_t(*di),time_t(si))) { auto struct tm *tp; auto time_t t; auto signed h,d,r; i...
chlds/util
lib/cbr/obj/src/cli_out_to_beta.c
<reponame>chlds/util /* Write to a console screen buffer. Remarks: As a wrapper */ # define CBR # define CLI_W32 # include "../../../incl/config.h" signed(__cdecl cli_out_to_beta(void(*target),signed char(*argp))) { /* **** DATA, BSS and STACK */ auto signed char *p; auto signed i,r; auto signed short flag; /* ...
chlds/util
lib/car/obj/src/cli_flush.c
<filename>lib/car/obj/src/cli_flush.c /* Output characters based on UTF-8 to the console screen. Remarks: Return the number of bytes for output characters (..or the number of output characters). */ # define CAR # include <stdio.h> # include "../../../incl/config.h" signed(__cdecl cli_flush(signed short(arg/* align...
chlds/util
lib/cbr/obj/src/cli_init_wraps.c
/* Initialise. */ # define CBR # include "../../../incl/config.h" signed(__cdecl cli_init_wraps(CLI_TYPEWRITER(*argp))) { /* **** DATA, BSS and STACK */ auto signed char *b; auto signed i,r; auto signed short flag; /* **** CODE/TEXT */ if(!argp) return(0x00); r = cli_init_pages(&(R(spool,R(wrap,*argp)))); if(!r...
chlds/util
lib/car/obj/src/cli_init_property.c
<reponame>chlds/util /* **** Notes Initialise */ # define CAR # include <stdio.h> # include "./../../../incl/config.h" signed(__cdecl cli_init_property(signed(arg),cli_property_t(*argp))) { /* **** DATA, BSS and STACK */ auto void **(v[]) = { R(device,*argp), R(token,*argp), R(thread,*argp), R(process,*argp), R(wi...
chlds/util
lib/car/obj/src/ct2.c
/* **** Notes Count letters to a letter you select. */ # define CAR # include "./../../../incl/config.h" signed(__cdecl ct2(signed char(di),signed char(*base))) { if(!base) return(0x00); if(!(*base)) return(0x00); if(!(di^(*base))) return(0x00); base++; return(0x01+(ct2(di,base))); }
chlds/util
lib/car/obj/src/ct_ww.c
/* **** Notes Count rows for words wrapped in the width. Remarks: Refer at fn. cv_ww. */ # define CAR # include "./../../../incl/config.h" signed(__cdecl ct_ww(signed short(arg),signed char(*sym),signed char(*argp))) { auto signed i,r; if(arg<(0x01)) return(0x00); // if(!sym) return(0x00); if(!argp) return(0x00)...
chlds/util
lib/car/obj/src/count_arguments_internal.c
<reponame>chlds/util /* **** **** **** **** Notes Count the arguments (to the terminating null character). argp: the leading address of an array of letters Remarks: Using along with an initialisation wrapper function called count_arguments. Being deprecated.. Please use fn. ct_args, fn. ct_ars2 or fn. ct_ars. */ s...
chlds/util
bin/obj/src/cvlf.c
/* **** Notes Convert the code of line break into LF. Remarks: This program may immediately cause a stack overflow. */ # define CALEND # define CAR # include "../../../lib/incl/config.h" signed(__cdecl main(signed(argc),signed char(**argv),signed char(**envp))) { auto signed r; AND(r,0x00); if(!(cvlf_agent(argc,...
chlds/util
lib/cbr/obj/src/cli_rule.c
<reponame>chlds/util /* Along with C and Windows libraries Remarks: Refer at util/lib/obj/src/cli_io_beta.c */ # define CBR # include <conio.h> # include <stdio.h> # include <stdlib.h> # include "../../../incl/config.h" signed(__cdecl cli_rule(signed char(*cur),CLI_TYPEWRITER(*argp))) { /* **** DATA, BSS and STA...
chlds/util
lib/car/obj/src/cals_help.c
/* **** Notes Help. Remarks: Currently under construction //*/ # define CALEND # define CAR # include <stdio.h> # include "../../../incl/config.h" signed(__cdecl cals_help(cals_t(*argp))) { auto time_t t; auto signed i,r; auto signed short flag; if(!argp) return(0x00); AND(flag,0x00); printf("\n"); printf("\t%...
chlds/util
lib/car/obj/src/cli_init_pages.c
<filename>lib/car/obj/src/cli_init_pages.c /* **** Notes Initialise the lead, index, offset and base pages. Remarks: Refer at fn. cli_bind_pages and fn. cli_concat_pages. Based on a doubly linked list (i.e., not a circular linked list) //*/ # define CAR # include "../../../incl/config.h" signed(__cdecl cli_init_pa...
chlds/util
lib/ccr/obj/src/cmdl2_open.c
<reponame>chlds/util /* **** Notes Commandlet to open a file 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(). And also with a flag to be added for code to run as far as possible to the end. */ # define C_CODE_STDS # define CCR #...
chlds/util
lib/car/obj/src/align_b.c
/* **** Notes Return the number of spaces to be indented at the terminating null character. Remarks: Based on one-byte characters */ # define CAR # include "../../../incl/config.h" signed(__cdecl align_b(signed(arg),signed char(*argp))) { auto signed r; if(arg<(0x00)) return(0x00); if(!arg) return(0x00); if(!arg...
chlds/util
lib/cbr/obj/src/cli_get_csbi_beta.c
/* Retrieve information about the specified console screen buffer. Remarks: Refer at fn. cli_init_ty_beta. */ # define CBR # define CLI_W32 # include <stdio.h> # include "../../../incl/config.h" signed(__cdecl cli_get_csbi_beta(CLI_W32_STAT(*argp))) { auto signed i,r; if(!argp) return(0x00); if(!(*(CLI_OUT+((*...
chlds/util
lib/ccr/obj/src/cmdl2_exit.c
/* **** Notes Commandlet to exit Remarks: unsigned int(__stdcall fn(void(*argp))) for fn. _beginthreadex */ # define CCR # include <stdio.h> # include "../../../incl/config.h" unsigned(__stdcall cmdl2_exit(SAT(*argp))) { auto signed i,r; /* **** Monitoring printf("%s\n", "<< cmdl_exit runs."); printf("%s\n", (si...
chlds/util
lib/car/obj/src/append_rule_b.c
<reponame>chlds/util /* **** Notes Append. Remarks: Refer at fn. rule_b. //*/ # define CAR # include "../../../incl/config.h" signed(__cdecl append_rule_b(rule_t(*di),signed char(*si))) { auto signed char *b; auto signed i,r; auto signed short flag; if(!di) return(0x00); // if(!si) return(0x00); b = (*(CLI_BASE...
chlds/util
lib/car/obj/src/out_argt_line_limited.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. */ # define CAR # include "./../../../incl/config.h" signed(__cdecl out_argt_line...
chlds/util
lib/car/obj/src/init_config.c
/* **** Notes Initialise Remarks: Refer at fn. cli_restore. */ # define CAR # include "./../../../incl/config.h" signed(__cdecl init_config(signed(arg),config_t(*argp))) { auto signed char *b; auto signed r; auto signed short flag; if(!argp) return(0x00); // initialise flag = (*(CLI_BASE+(R(flag,*argp)))); if(!...
chlds/util
lib/incl/car_f.h
/* Return (0x00) if the function fails. Remarks: Arguments ..are initialised by wrapper functions Along with C library */ signed(__cdecl dupl_agent_w(signed(argc),signed short(**argv),signed short(**envp))); signed(__cdecl cals_agent(signed(argc),signed char(**argv),signed char(**envp))); signed(__cdecl cvlf_agent(...
chlds/util
lib/incl/cli_codepage.h
/* Configure Remarks: ---- */ # define CLI_CODEPAGES (0x01+(0x03)) # define CLI_UTF_8 (65001) struct cli_codepage { signed (io[CLI_CODEPAGES]); signed short flag; void *optl; } typedef cli_codepage_t; signed(__cdecl cli_init_codepages(cli_codepage_t(*argp))); signed(__cdecl cli_backup_codepages_beta(signed short(f...
chlds/util
lib/car/obj/src/openf.c
/* **** Notes Open. //*/ # 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 openf(signed short(arg),signed char(*path),s...
chlds/util
lib/cbr/obj/src/cl_ctrl_b_beta.c
/* Press <Ctrl-B> to invoke the function. Along with C and Windows libraries Remarks: Refer at fn. cli_display_footer_beta, fn. cl_kb_beta and fn. cl_io_beta. */ # define CBR # define CLI_W32 # include <conio.h> # include <stdio.h> # include <stdlib.h> # include "../../../incl/config.h" signed(__cdecl cl_ctrl_b_...
chlds/util
lib/car/obj/src/wr_pages_r.c
/* **** Notes Write. //*/ # define CAR # include <io.h> # include <stdio.h> # include <errno.h> # include "../../../incl/config.h" signed(__cdecl wr_pages_r(signed(fd),page_t(*argp))) { auto signed char *b; // auto rule_t *rule; auto signed i,r; auto signed short flag; auto signed char *br = ("\n"); if(fd<(0x00))...
chlds/util
lib/cbr/obj/src/cli_confirm_save_beta.c
<gh_stars>0 /* Confirm overwrite. 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_confirm_save_beta(CLI_W32_STAT(*argp))) { /* *...
chlds/util
lib/car/obj/src/cpy2p.c
<reponame>chlds/util<gh_stars>0 /* **** Notes Copy to the <di> out of the <si> */ # define CAR # include "../../../incl/config.h" signed(__cdecl cpy2p(signed char(*di),signed char(*deadline),signed char(*si))) { /* **** DATA, BSS and STACK */ auto signed char cache; /* **** CODE/TEXT */ if(!di) return(0x00); if(!...
chlds/util
lib/car/obj/src/cli_reckon.c
<reponame>chlds/util<gh_stars>0 /* Reckon. Remarks: Escape sequences */ # define CAR # include <stdio.h> # include "../../../incl/config.h" signed(__cdecl cli_reckon(signed short(arg/* align */))) { auto signed char *b; auto coord_t coord; auto signed i,r; auto signed short x; auto signed short flag; if(arg<(0x0...
chlds/util
lib/car/obj/src/concat_argv.c
/* **** Notes Concatenate Remarks: Release at the *di. */ # define CAR # include <stdlib.h> # include "../../../incl/config.h" signed(__cdecl concat_argv(signed(offset),signed char(**di),signed char(**si))) { /* **** DATA, BSS and STACK */ auto signed i,r; /* **** CODE/TEXT */ if(offset<(0x00)) return(0x00); if(...
chlds/util
lib/car/obj/src/cv_wv.c
/* **** Notes Convert into an array. Remarks: After calling fn. cv_wv, please call fn. rl to unmap the buffer allocated on the RAM. Based on UTF-16 */ # define CAR # include "./../../../incl/config.h" signed(__cdecl cv_wv(signed short(*cache),signed short(**di),signed short(**si))) { auto signed r; if(!di) retur...
chlds/util
lib/car/obj/src/cue_back2.c
<gh_stars>0 /* Cue backward. Remarks: Based on UTF-8 */ # define CAR # include "../../../incl/config.h" signed(__cdecl cue_back2(signed char(*sym),signed char(*cache),signed char(*argp))) { /* **** DATA, BSS and STACK */ auto signed short BYTE_ONE = (0x01); auto signed short BYTE_MUL = (0x02); auto signed short B...
chlds/util
lib/car/obj/src/cals_remove_cached_events_r.c
<reponame>chlds/util<gh_stars>0 /* **** Notes Unmap out of the RAM //*/ # define CALEND # define CAR # include "../../../incl/config.h" signed(__cdecl cals_remove_cached_events_r(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) re...
chlds/util
lib/cbr/obj/src/cli_copy_to_pages_internal.c
/* Copy to pages. Along with C library Remarks: Refer at fn. cli_paste_beta. */ # define CBR # include <conio.h> # include <stdio.h> # include <stdlib.h> # include "../../../incl/config.h" signed(__cdecl cli_copy_to_pages_internal(signed short(lastbreak),cli_spool_t(*argp),signed char(*buff),signed char(*base)))...
chlds/util
lib/car/obj/src/cals_outv_legible.c
<reponame>chlds/util /* **** 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 ".....
chlds/util
lib/car/obj/src/pair_b.c
/* Pair bytes into a character based on UTF-16. */ # define CAR # include "../../../incl/config.h" signed(__cdecl pair_b(signed short(*di),signed(si))) { auto signed first = (0xD800); auto signed second = (0xDC00); auto signed char *b; auto signed r; auto signed short flag; if(!di) return(0x00); // first r = (s...
chlds/util
lib/car/obj/src/cli_kb_r.c
/* **** Notes Along with C and Windows libraries Remarks: Build a doubly linked list Based on UTF-8 */ # define CAR # include <stdio.h> # include "../../../incl/config.h" signed(__cdecl cli_kb_r(ty_t(*argp))) { auto signed char *b; auto signed i,r; auto signed short flag; auto coord_t coord; auto rect_t rect; if...
chlds/util
lib/cbr/obj/src/cli_eq_frame.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_frame(CLI_TYPEWRITER(*argp))) { auto signed char *(pos[]) = { (signed char(*)) ("default"), (signed char(*))...
chlds/util
lib/cbr/obj/src/cli_copy_pages.c
<gh_stars>0 /* Copy pages. Along with C library Remarks: Refer at fn. cli_clip_beta. */ # define CBR # include <conio.h> # include <stdio.h> # include <stdlib.h> # include "../../../incl/config.h" signed(__cdecl cli_copy_pages(signed short(linebreak_form),signed(count),signed(size),signed short(*w),cli_page_t(*a...
chlds/util
lib/car/obj/src/deviate.c
<filename>lib/car/obj/src/deviate.c<gh_stars>0 /* Retrieve bytes to the leading address of a word. */ # define CAR # include "../../../incl/config.h" signed(__cdecl deviate(signed char(*sym),signed char(*base),signed char(*index))) { /* **** DATA, BSS and STACK */ auto signed char *p; auto signed i,r; auto signed ...
chlds/util
lib/car/obj/src/cv_pv.c
<filename>lib/car/obj/src/cv_pv.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(page_t(*di),signed char(**si))) { auto signed char *b; auto page_t *page; auto signed r; au...
chlds/util
lib/car/obj/src/cli_replace_text_attributes_beta.c
<gh_stars>0 /* **** Notes Replace text attributes. Remarks: Refer at fn. cli_restore_text_attributes_beta. */ # define CAR # include "./../../../incl/config.h" # include <stdio.h> # include <windows.h> signed(__cdecl cli_replace_text_attributes_beta(signed(arg),cli_property_t(*argp))) { auto signed color[] = { FO...
chlds/util
lib/car/obj/src/cat_v.c
<filename>lib/car/obj/src/cat_v.c /* **** Notes Concatenate to the terminating null pointer. Remarks: Call fn. rl later to release buffer. Add an ABI attribute of functions to both the declaration and definition of variadic functions to compile C source files with GCC on WSL (Ubuntu 64-bit). Based on UTF-8 */ # de...
chlds/util
lib/car/obj/src/cv_da_xe_r.c
<gh_stars>0 /* **** Notes Convert into a signed double word out of characters. //*/ # define CAR # include "../../../incl/config.h" signed(__cdecl cv_da_xe_r(signed short(radix),signed char(*table),signed(*di),signed char(*si))) { auto signed i,r; auto signed short flag; auto signed char c; auto signed bi_unit[] =...
chlds/util
lib/ccr/obj/src/cmdl2_history.c
/* **** Notes Commandlet to output the history Remarks: This code is for a doubly LL i.e., <NOT> for a circular LL.. */ # define C_CODE_STDS # define CCR # include "../../../incl/config.h" unsigned(__stdcall cmdl2_history(SAT(*argp))) { /* **** DATA */ auto signed const QUANTUM = (0x10); auto signed const DELAY =...
chlds/util
lib/cbr/obj/src/cli_ctrl_d_beta.c
/* Press <Ctrl-D> 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_d_beta(CLI_W32_STAT(*argp))) { /*...