repo_name stringlengths 5 122 | path stringlengths 3 232 | text stringlengths 6 1.05M |
|---|---|---|
chlds/util | lib/car/obj/src/cli_coord_out.c | <filename>lib/car/obj/src/cli_coord_out.c
/*
Coordinate and output one character based on UTF-8 to the console screen.
Remarks:
Return the number of bytes decoded out of the array.
*/
# define CAR
# include <stdio.h>
# include "../../../incl/config.h"
signed(__cdecl cli_coord_out(signed short(arg/* align */),signe... |
chlds/util | bin/obj/src/cli_kb1.c | <filename>bin/obj/src/cli_kb1.c<gh_stars>0
/* **** Notes
Output Unicode characters in UTF-8.
Remarks:
Based on UTF-8
*/
# include <conio.h>
# include <stdio.h>
# define COUNT_CP (0x04)
# define BUFF (0x1000)
signed(__cdecl main(void)) {
/* **** DATA, BSS and STACK */
enum {
OUTPUT,INPUT,BACKUP,
};
auto unsigned... |
chlds/util | lib/car/obj/src/unmap_ll.c | <filename>lib/car/obj/src/unmap_ll.c
/* **** Notes
Unmap a circular/doubly linked list.
flag: 0x00 is in a doubly linked list and the others are in a circular linked list.
Remarks:
Please look at util/incl/ll.h
//*/
# define CAR
# include "../../../incl/config.h"
signed(__cdecl unmap_ll(signed short(flag),REEL(*a... |
chlds/util | lib/cbr/obj/src/cli_ctrl_d.c | <reponame>chlds/util
/*
Press <Ctrl-D> to invoke the function.
Remarks:
Refer at util/lib/obj/src/cli_io.c
*/
# define CAR
# include <stdio.h>
# include "../../../incl/config.h"
signed(__cdecl cli_ctrl_d(cli_property_t(*argp))) {
auto signed char *b;
auto signed i,r;
auto signed short flag;
if(!argp) return(0x00... |
chlds/util | lib/car/obj/src/concat_b_r.c | /* **** Notes
Concatenate strings.
*/
# define CAR
# include <stdarg.h>
# include "../../../incl/config.h"
signed(__cdecl concat_b_r(signed char(*argp),signed char(*bp))) {
auto signed char *b;
auto signed r;
if(!argp) return(0x00);
if(!bp) return(0x00);
b = va_arg(bp,void*);
if(!b) return(0x00);
argp = (argp+(... |
chlds/util | bin/obj/src/lk.c | /* **** 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
# include "../../../lib/incl/config.h"
signed(__cdecl main(signed(argc),signed char(**argv),signed char(**envp))) {
auto signed r;
AND(r... |
chlds/util | lib/car/obj/src/column.c | /* **** Notes
Console output
Remarks:
Output a tab as whitespace
Wrap words
*/
# define C_CODE_STDS
# define CAR
# include "../../../incl/config.h"
signed(__cdecl column(signed short(cols),signed(algn),signed char(*base))) {
/* **** DATA, BSS and STACK */
static signed char const HYPHEN = ('-');
static signed cha... |
chlds/util | lib/car/obj/src/cli_outs_b.c | <reponame>chlds/util
/*
Coordinate and output characters based on UTF-8 to the console screen in UTF-16.
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_outs_b(signed short(arg/* ali... |
chlds/util | bin/obj/src/cals.c | /* **** Notes
Calendar
*/
# define CALEND
# define CBR
# include <stdio.h>
# include "./../../../lib/incl/config.h"
signed(__cdecl wmain(signed(argc),signed short(**argv),signed short(**envp))) {
auto signed char **v;
auto signed char *b;
auto signed i,r;
auto signed short flag;
auto cli_virtual_terminal_t vt;
if... |
chlds/util | lib/incl/ctrl_f.h | <gh_stars>0
signed(__cdecl cl_ctrl_at(void(*argp)));
signed(__cdecl cl_ctrl_a(void(*argp)));
signed(__cdecl cl_ctrl_b(void(*argp)));
signed(__cdecl cl_ctrl_c(void(*argp)));
signed(__cdecl cl_ctrl_d(void(*argp)));
signed(__cdecl cl_ctrl_e(void(*argp)));
signed(__cdecl cl_ctrl_f(void(*argp)));
signed(__cdecl cl_ctrl_g(vo... |
chlds/util | lib/cbr/obj/src/cli_coord_outs_beta.c | /*
Output characters based on UTF-8 to the console screen.
Remarks:
Based on fn. cli_coord_out_beta
Return the number of bytes for output characters (..or the number of output characters).
*/
# define CBR
# define CLI_W32
# include <stdio.h>
# include "../../../incl/config.h"
signed(__cdecl cli_coord_outs_beta(si... |
chlds/util | lib/incl/c_dir.h | <gh_stars>0
/*
Depth-first searching
*/
enum {
CLI_LK_FILE,
CLI_LK_DIRECTORY,
CLI_LK_FILES,
};
enum {
CLI_LK_PATH,
CLI_LK_TARGET,
CLI_LK_F_EXTENSION,
CLI_LK_F_BACKUP,
CLI_LK_PATHS,
};
struct dir_info_stored {
signed char *p_dir;
void *search;
WIN32_FIND_DATA wfd;
void *optl;
} typedef dir_info_stored_t;
struct c_... |
chlds/util | lib/car/obj/src/recharge.c | /* **** Notes
Unmap and map.
Remarks:
Along with C library
//*/
# include <stdlib.h>
signed(__cdecl recharge(signed char(**argp),signed(arg))) {
/* **** CODE/TEXT */
if(!argp) return(0x00);
if(arg<(0x01)) return(0x00);
if(*argp) {
embed(0x00,*argp);
free(*argp);
}
arg = (arg*(sizeof(**argp)));
*argp = (signed c... |
chlds/util | lib/car/obj/src/cals_refer_events_r.c | /* **** Notes
Refer
//*/
# define CALEND
# define CAR
# include "../../../incl/config.h"
signed(__cdecl cals_refer_events_r(signed short(flag),cals_roll_t(*cache),cals_t(*argp))) {
auto cals_event_t *ev;
auto signed i,r;
if(!cache) return(0x00);
if(!argp) return(0x00);
if(!(CALS_INIT&(R(flag,*cache)))) return(0x... |
chlds/util | lib/cbr/obj/src/cli_init_rolls.c | <reponame>chlds/util<gh_stars>0
/* **** Notes
Charge buffer.
Remarks:
Along with C library
//*/
# define CBR
# include <stdio.h>
# include <stdlib.h>
# include "../../../incl/config.h"
signed(__cdecl cli_init_rolls(signed(size),CLI_ROLL(*argp))) {
/* **** DATA, BSS and STACK */
auto signed char *p;
auto signed i... |
chlds/util | lib/car/obj/src/cals_unbind_events.c | /* **** Notes
Unmap out of the RAM
//*/
# define CALEND
# define CAR
# include "../../../incl/config.h"
signed(__cdecl cals_unbind_events(cals_roll_t(*argp))) {
auto cals_event_t *ev;
auto signed i,r;
if(!argp) return(0x00);
r = cals_unmap_events(argp);
ev = (*(CLI_LEAD+(R(event,*argp))));
if(ev) return(0x00);
... |
chlds/util | lib/car/obj/src/cue2l.c | /*
Retrieve bytes to the leading address of a word to wrap words.
*/
# define CAR
# include "../../../incl/config.h"
signed(__cdecl cue2l(signed char(*sym),signed char(*argp))) {
/* **** DATA, BSS and STACK */
auto signed char HT = ('\t');
auto signed char SP = (' ');
auto signed char *p;
auto signed i,r;
auto si... |
chlds/util | lib/car/obj/src/init_fl.c | <filename>lib/car/obj/src/init_fl.c
/* **** Notes
Initialise
Remarks:
Refer at fn. cli_restore.
*/
# define CAR
# include "./../../../incl/config.h"
signed(__cdecl init_fl(signed(arg),fl_t(*argp))) {
auto signed char *b;
auto signed r;
auto signed short flag;
if(!argp) return(0x00);
// destroy
r = (OBJS);
if(ar... |
chlds/util | bin/obj/src/sat.c | <filename>bin/obj/src/sat.c
/* **** **** Making a small shell
on branch develop
*/
# define C_CODE_STDS
# define C_MT
# define CCR
# define C_W32API
# include "./../../../lib/incl/config.h"
# define BUFF (0x400)
# define COUNT_FUNCTIONS (1+(8))
# define CMDFLAG (1)
signed(__cdecl main(signed(argc),signed char(**ar... |
chlds/util | lib/car/obj/src/cli_init_text.c | /* **** Notes
Initialise
Remarks:
Refer at fn. cli_init_property.
*/
# define CLI_SYM
# define CAR
# include <stdio.h>
# include "./../../../incl/config.h"
signed(__cdecl cli_init_text(signed(arg),cli_text_t(*argp))) {
auto signed char *b;
auto signed i,r;
auto signed char CUE_SYM[] = {
SYM_EXCLAMATION_MARK,
SYM_... |
chlds/util | lib/incl/cli_ascii.h | /*
ASCII stands for American Standard Code for Information Interchange.
Remarks:
ANSI code pages can be different on different computers.
Refer Code Page Identifiers on site:docs.microsoft.com.
*/
signed char(*(cli_ascii[])) = {
(signed char(*)) ("NUL"),
(signed char(*)) ("SOH"),
(signed char(*)) ("STX"),
(signed ch... |
chlds/util | lib/incl/cli_property.h | <reponame>chlds/util<filename>lib/incl/cli_property.h
# include "./cl.h"
# include "./cli_flag.h"
# include "./cli_e.h"
# include "./cli_d.h"
# include "./cli_f.h"
|
chlds/util | lib/car/obj/src/ct_words_r.c | /* **** Notes
Count words to the terminating null character.
Remarks:
Refer at fn. ct_wrds_r.
*/
# define CAR
# include "./../../../incl/config.h"
signed(__cdecl ct_words_r(signed short(flag),signed(*retv),signed char(*cache),signed char(*base))) {
/* **** DATA, BSS and STACK */
static signed short second = (0x02... |
chlds/util | lib/car/obj/src/cals_time.c | <filename>lib/car/obj/src/cals_time.c<gh_stars>0
/* **** Notes
Map the time.
Remarks:
Call fn. rl later.
//*/
# define CALEND
# define CAR
# include "../../../incl/config.h"
signed(__cdecl cals_time(signed short(**di),time_t(*si))) {
auto signed short *w;
auto struct tm *tp;
auto time_t t;
auto signed i,r;
if(!d... |
chlds/util | lib/car/obj/src/cals_r_r.c | <gh_stars>0
/* **** Notes
Go for months
//*/
# define C_CODE_STDS
# define CALEND
# define CAR
# include "../../../incl/config.h"
signed(__cdecl cals_r_r(signed short(mo),signed(arg),cals_t(*argp))) {
auto signed short secondary = (0x01);
auto signed short primary = (0x00);
auto struct tm *tp;
auto signed short *w... |
chlds/util | lib/car/obj/src/rect_report.c | <filename>lib/car/obj/src/rect_report.c
/*
Rectangle.
Remarks:
Only in the Virtual Terminal
*/
# define CAR
# include <stdio.h>
// # include <sys/ioctl.h>
# include "../../../incl/config.h"
signed(__cdecl rect_report(signed(arg),rect_t(*argp))) {
auto signed char *b;
auto signed i,r;
auto signed short flag;
// au... |
chlds/util | lib/car/obj/src/cv_hr.c | <reponame>chlds/util
/* **** Notes
Convert to time out of characters.
//*/
# define CAR
# include "../../../incl/config.h"
signed(__cdecl cv_hr(signed short(*hr),signed short(*mn),signed char(*si))) {
auto signed char *b;
auto signed i,r;
auto signed short flag;
if(!hr) return(0x00);
if(!mn) return(0x00);
if(!si)... |
chlds/util | lib/car/obj/src/day_before.c | <reponame>chlds/util
/* **** Notes
The day before
*/
# define CALEND
# define CAR
# include "./../../../incl/config.h"
signed short(__cdecl day_before(signed short(arg))) {
if(arg<(0x00)) return(0x00);
if(!(arg<(DAYS))) return(0x00);
if(!arg) return(0x06);
return(--arg);
}
|
chlds/util | lib/car/obj/src/ct_bv_r.c | <gh_stars>0
/* **** Notes
Count bytes.
*/
# define CAR
# include "./../../../incl/config.h"
signed(__cdecl ct_bv_r(signed(*di),signed char(**si))) {
auto signed r;
if(!di) return(0x00);
if(!si) return(0x00);
if(!(*si)) return(0x00);
r = ct(*si);
if(!r) return(0x00);
*di = (r+(*di));
si++;
return(0x01+(ct_bv_r(... |
chlds/util | lib/cbr/obj/src/cl_kb_beta.c | /* **** Notes
Set code pages for console input and output.
Along with C and Windows libraries
Remarks:
Based on UTF-8
*/
# define CBR
# define CLI_W32
# include <conio.h>
# include <stdio.h>
# include <stdlib.h>
# include "../../../incl/config.h"
signed(__cdecl cl_kb_beta(CLI_W32_STAT(*argp))) {
/* **** DATA, B... |
chlds/util | lib/car/obj/src/cli_coord_outs.c | /*
Coordinate and 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_coord_outs(signed short(arg/* align */),signed char(*argp)))... |
chlds/util | lib/car/obj/src/catpp.c | /* **** Notes
Output character lines out of the argument
*/
# define CAR
# include "../../../incl/config.h"
# include <stdio.h>
signed(__cdecl catpp(signed char(**argp))) {
/* **** CODE/TEXT */
if(!argp) return(0x00);
if(!(*argp)) return(0x00);
printf("%s\n", *argp);
argp++;
return(1+(catpp(argp)));
}
|
chlds/util | lib/car/obj/src/cue_argt.c | <filename>lib/car/obj/src/cue_argt.c
/* **** Notes
Cue to a lead of each argument
Remarks:
Return an addendum to point to the next leading address or to the null pointer.
*/
# define CAR
# include "../../../incl/config.h"
signed(__cdecl cue_argt(signed char(*argp))) {
auto signed i,r;
auto signed char b[] = {
HT,... |
chlds/util | lib/car/obj/src/cals_out_e.c | /* **** Notes
Output.
Remarks:
To debug
//*/
# define CALEND
# define CAR
# include "../../../incl/config.h"
signed(__cdecl cals_out_e(cals_event_t(*argp))) {
auto signed char *b;
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;
if(!argp) return(0x00)... |
chlds/util | lib/cbr/obj/src/cli_display_header_beta.c | <gh_stars>0
/* **** 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_beta(CLI_TYPEWRITER(*argp))) {
/* **** DATA, BSS and STACK */
auto coord_t coord;
auto signed ... |
chlds/util | lib/cbr/obj/src/cli_bind_pages.c | /* **** Notes
Concatenate pages after allocating a memory block for structure cli_page_t.
Remarks:
Build a doubly linked list
Along with C library
*/
# define CBR
# include <conio.h>
# include <stdio.h>
# include <stdlib.h>
# include "../../../incl/config.h"
signed(__cdecl cli_bind_pages(cli_spool_t(*argp))) {
/... |
chlds/util | lib/car/obj/src/sz_f.c | /* **** Notes
Size.
Remarks:
Return a negative value on failure.
*/
# define CAR
# include <stdio.h>
# include <fcntl.h>
# include <sys/types.h>
# include <sys/stat.h>
# include <errno.h>
# include "./../../../incl/config.h"
signed(__cdecl sz_f(signed char(*argp))) {
auto signed r;
auto struct stat stats;
if(!ar... |
chlds/util | lib/car/obj/src/cv_argt.c | <reponame>chlds/util
/* **** Notes
Split out of an array for letters.
Remarks:
Call fn. rl_v later to unmap the buffer allocated on the RAM.
Refer at fn. cv_v.
*/
# define CAR
# include "../../../incl/config.h"
signed(__cdecl cv_argt(signed char(***di),signed char(*si))) {
auto signed char **v;
auto signed char *... |
chlds/util | lib/car/obj/src/cpy.c | /* **** Notes
Copy to the <di> out of the <si>
*/
# define CAR
# include "../../../incl/config.h"
signed(__cdecl cpy(signed char(*di),signed char(*si))) {
auto signed char cache;
if(!di) return(0x00);
if(!si) return(0x00);
if(!(*si)) {
*di = (0x00);
return(0x00);
}
cache = (*si);
*di = (cache);
di++;
si++;
ret... |
chlds/util | lib/car/obj/src/cf.c | <gh_stars>0
/* **** Notes
Confer.
Remarks:
Refer at fn. ctdn_to and fn. ctdn_to_r.
*/
# define CAR
# include "../../../incl/config.h"
signed(__cdecl cf(signed short(*flag),signed char(*cache),signed char(*argp))) {
/* **** DATA, BSS and STACK */
auto signed i,r;
auto signed char c;
/* **** CODE/TEXT */
if(!flag)... |
chlds/util | bin/obj/src/extra/output_in_utf_8.c | <reponame>chlds/util<gh_stars>0
/* To output in UTF-8
Save files in UTF-8, define _UNICODE, include <tchar.h>, auto TCHAR *p = (L"...."), fn. _putwch/_puttch and more..
> cl -c -source-charset:utf-8 t.c
> cl -c -source-charset:utf-8 output_in_utf_8.c
> link t.obj output_in_utf_8.obj
> t(.exe)
*/
# define _UNICODE
... |
chlds/util | lib/cbr/obj/src/cli_ctrl_h_beta.c | /*
Press <Ctrl-H> 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_h_beta(CLI_W32_STAT(*argp))) {
/*... |
chlds/util | lib/car/obj/src/appd_ds_r.c | <reponame>chlds/util
/* **** Notes
Append.
Remarks:
write di,si
; write contents into a storage
*/
# define CAR
# include <stdio.h>
# include "./../../../incl/config.h"
signed(__cdecl appd_ds_r(signed char(*di),signed char(**si))) {
auto signed char **v;
auto signed char *b;
auto signed i,r;
auto signed short fla... |
chlds/util | lib/incl/cli_sym.h | <filename>lib/incl/cli_sym.h
/*
Refer command charmap
Remarks:
Refer at header file config.h.
*/
// U+0021
# define SYM_EXCLAMATION_MARK ('!')
# define SYM_QUOTATION_MARK ('\"')
# define SYM_NUMBER_SIGN ('#')
# define SYM_DOLLAR_SIGN ('$')
# define SYM_PERCENT_SIGN ('%')
# define SYM_AMPERSAND ('&')
# define SYM_AP... |
chlds/util | lib/car/obj/src/rl.c | /* **** Notes
Release
Remarks:
Along with C library
*/
# define CAR
# include <stdlib.h>
# include "./../../../incl/config.h"
signed(__cdecl rl(void(*argp))) {
if(!argp) return(0x00);
free(argp);
argp = (0x00);
return(0x01);
}
|
chlds/util | lib/incl/ccr_e.h | enum {
CARD_EXIT,
CARD_HELP,
CARD_CLEAR,
CARD_TIME,
CARD_SAVE,
CARD_OPEN,
CARD_OUTPUT,
CARD_HISTORY,
CARDS,
};
|
chlds/util | lib/car/obj/src/cvlf_finds.c | /* **** Notes
Convert the code of line break into LF.
*/
# define CALEND
# define CAR
# define C_W32API
# include "../../../incl/config.h"
# include "../../../incl/c_dir.h"
signed(__cdecl cvlf_finds(c_dirs_info_t(*argp))) {
auto signed char *path;
auto signed r;
auto dir_info_stored_t dis;
if(!argp) return(0x00);... |
chlds/util | lib/car/obj/src/cvlf_agent.c | /* **** Notes
Convert the code of line break into LF.
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 cvlf_agent(signed(argc),signed char(**argv),signed char(**env... |
chlds/util | lib/car/obj/src/append_b.c | <gh_stars>0
/* **** Notes
Append si to di.
Remarks:
Put sufficient buffer at di.
*/
# define CAR
# include "../../../incl/config.h"
signed(__cdecl append_b(signed char(*di),signed char(*si))) {
if(!di) return(0x00);
if(!si) return(0x00);
di = (di+(ct(di)));
return(cpy(di,si));
}
|
chlds/util | lib/car/obj/src/ct_b.c | <gh_stars>0
/* **** Notes
Count to the terminating null byte.
*/
# define CAR
# include "./../../../incl/config.h"
signed(__cdecl ct_b(signed char(*argp))) {
if(!argp) return(0);
if(!(*argp)) return(0);
argp++;
return(0x01+(ct_b(argp)));
}
|
chlds/util | lib/car/obj/src/store_b.c | /* **** Notes
Store bytes.
Remarks:
Put (non 0x0A) for CRLF or (0x0A) for LF to insert a line break, or (0x00) not to at the linebreak.
//*/
# 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.... |
chlds/util | lib/car/obj/src/cals_daily_event_in_the_day.c | <gh_stars>0
/* **** Notes
Confirm.
Remarks:
Refer at fn. cals_periodic_event_in_the_day.
//*/
# define CALEND
# define CAR
# include "../../../incl/config.h"
signed(__cdecl cals_daily_event_in_the_day(time_t(arg),cals_event_t(*argp))) {
auto struct tm *tp;
auto time_t t;
auto signed i,r;
auto signed short wk,di,m... |
chlds/util | lib/car/obj/src/sw.c | <filename>lib/car/obj/src/sw.c
/* **** Notes
Exchange the DI and the SI
*/
# define CAR
# include "../../../incl/config.h"
signed(__cdecl sw(signed(*di),signed(*si))) {
auto signed r;
if(!di) return(0x00);
if(!si) return(0x00);
r = (*di);
*di = (*si);
*si = (r);
return(0x01);
}
|
chlds/util | lib/car/obj/src/cli_init_codepages.c | <reponame>chlds/util
/* **** Notes
Initialise
//*/
# define CAR
# include "../../../incl/config.h"
signed(__cdecl cli_init_codepages(cli_codepage_t(*argp))) {
/* **** DATA, BSS and STACK */
auto signed i,r;
/* **** CODE/TEXT */
if(!argp) return(0x00);
i = (CLI_CODEPAGES);
while(i) *(--i+(R(io,*argp))) = (0x00);
... |
chlds/util | lib/car/obj/src/ct_d.c | /* **** Notes
Count to the terminating null double word.
*/
# define CAR
# include "./../../../incl/config.h"
signed(__cdecl ct_d(signed(*argp))) {
if(!argp) return(0x00);
if(!(*argp)) return(0x00);
argp++;
return(0x01+(ct_d(argp)));
}
|
chlds/util | lib/car/obj/src/rd_b.c | <reponame>chlds/util
/* **** Notes
Read out of the file descriptor.
//*/
# define CAR
# include <io.h>
# include "../../../incl/config.h"
signed(__cdecl rd_b(signed(fd),signed char(*argp),signed(arg))) {
return(read(fd,argp,arg));
}
|
chlds/util | lib/car/obj/src/cue_ready.c | /* **** Notes
Cue to a lead of arguments.
Remarks:
Return an addendum to point to the next leading address or to the null pointer.
*/
# define CAR
# include "../../../incl/config.h"
signed(__cdecl cue_ready(signed char(*argp))) {
if(!argp) return(0x00);
if(!(*argp)) return(0x00);
if(SP^(*argp)) return(0x00);
ar... |
chlds/util | lib/car/obj/src/cals_concat_events.c | /* **** Notes
Concatenate the lead, index, offset and base events in a doubly linked list (for general purpose).
Remarks:
Refer at fn. cals_init, fn. cals_bind_events, fn. cals_unmap_events and fn. cals_unbind_events.
Based on a doubly linked list (i.e., not a circular linked list)
//*/
# define CALEND
# define CAR... |
chlds/util | lib/car/obj/src/cli_outv_legible_r.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/cv_ord_l.c | <filename>lib/car/obj/src/cv_ord_l.c
/* **** Notes
Check the ordinal number from behind.
//*/
# define CAR
# include "./../../../incl/config.h"
signed(__cdecl cv_ord_l(signed char(**table),signed(*retv),signed char(*argp))) {
auto signed i,r;
if(!table) return(0x00);
if(!retv) return(0x00);
if(!argp) return(0x00)... |
chlds/util | lib/car/obj/src/cli_flush_b.c | <gh_stars>0
/* **** Notes
Flush.
Remarks:
Based on UTF-8
*/
# define CAR
# include <stdio.h>
# include "../../../incl/config.h"
signed(__cdecl cli_flush_b(signed short(arg/* align */),signed char(*argp))) {
auto signed char *b;
auto signed r;
auto signed short flag;
if(arg<(0x00)) return(0x00);
if(0x08<(arg)) re... |
chlds/util | lib/cbr/obj/src/cli_unmap_snapshots.c | <reponame>chlds/util
/* **** Notes
Unmap all the snapshots 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_snapshots(cli_history_t(... |
chlds/util | lib/car/obj/src/cv_bv_xe_r.c | <filename>lib/car/obj/src/cv_bv_xe_r.c
/* **** Notes
Convert into an array.
*/
# define CAR
# include "./../../../incl/config.h"
signed(__cdecl cv_bv_xe_r(signed char(*di),signed char(**si))) {
auto signed i,r;
if(!di) return(0x00);
if(!si) return(0x00);
if(!(*si)) {
*di = (0x00);
*(--di) = (0x00);
return(0x00);... |
chlds/util | lib/car/obj/src/column_internal.c | <reponame>chlds/util
/* **** Notes
Console output
Remarks:
Output a tab as whitespace
Wrap words
Add support for Unicode characters
*/
# define C_CODE_STDS
# define C_W32API // To use fn. Sleep in recursion.
# define CAR
# include "../../../incl/config.h"
signed(__cdecl column_internal(signed short(cols),signed(a... |
chlds/util | lib/car/obj/src/ctdn_to_wrap_r.c | <filename>lib/car/obj/src/ctdn_to_wrap_r.c
/* **** Notes
Count down to wrap words.
Remarks:
Refer at fn. cf.
*/
# define CAR
# include "../../../incl/config.h"
signed(__cdecl ctdn_to_wrap_r(signed short(edge),signed(arg/* align */),signed(*retv),signed char(*cache/* sym */),signed char(*argp))) {
/* **** DATA, BS... |
chlds/util | lib/cbr/obj/src/cli_paste_beta.c | <gh_stars>0
/*
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_paste_beta... |
chlds/util | lib/car/obj/src/ct_to.c | /* **** Notes
Count letters up to specific/special characters or to the terminating null character.
Remarks:
Refer at fn. cue
Add support for Unicode characters
Based on UTF-8
*/
# define CAR
# include <stdio.h>
# include "./../../../incl/config.h"
signed(__cdecl ct_to(signed char(*cache),signed char(*argp))) {
/... |
chlds/util | lib/car/obj/src/cli_restore.c | /* **** Notes
Restore.
Remarks:
Along with C library
//*/
# define CAR
# include <stdlib.h>
# include "../../../incl/config.h"
signed(__cdecl cli_restore(signed(arg),cli_text_t(*argp))) {
/* **** DATA, BSS and STACK */
auto cli_rule_t *rule;
auto signed char *b;
auto signed r;
auto signed short flag;
/* **** COD... |
chlds/util | lib/cbr/obj/src/cli_ctrl_k_beta.c | <gh_stars>0
/*
Press <Ctrl-K> 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_k_beta(CLI_W32_STAT(*a... |
chlds/util | lib/car/obj/src/cals_monthly_event_in_the_day_of_days.c | <reponame>chlds/util
/* **** Notes
Confirm.
Remarks:
Refer at fn. cals_periodic_event_in_the_day.
//*/
# define CALEND
# define CAR
# include "../../../incl/config.h"
signed(__cdecl cals_monthly_event_in_the_day_of_days(time_t(arg),cals_event_t(*argp))) {
auto struct tm *tp;
auto time_t t;
auto signed i,r;
auto s... |
chlds/util | lib/cbr/obj/src/cli_clear_row_beta.c | /* **** Notes
Clear a row.
Remarks:
Refer at fn. cli_clear_rows_beta.
Return the number of space embedded to the row.
*/
# define CBR
# define CLI_W32
# include <conio.h>
# include <stdio.h>
# include <stdlib.h>
# include "../../../incl/config.h"
signed(__cdecl cli_clear_row_beta(signed short(comeback),CLI_W32_ST... |
chlds/util | lib/car/obj/src/out_argt_r.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.
*/
# define CAR
# include "./../../../incl/config.h"
signed(... |
chlds/util | bin/obj/src/envw.c | <filename>bin/obj/src/envw.c
/*
Display environment variables.
*/
# define CAR
# include "../../../lib/incl/config.h"
signed(__cdecl wmain(signed(argc),signed short(**argv),signed short(**envp))) {
/* **** DATA, BSS and STACK */
auto signed char *b;
auto signed i,r;
auto signed short flag;
/* **** CODE/TEXT */
AN... |
chlds/util | lib/car/obj/src/cals_cache_all_events_r_r.c | <gh_stars>0
/* **** Notes
Cache events.
//*/
# define CALEND
# define CAR
# include "../../../incl/config.h"
signed(__cdecl cals_cache_all_events_r_r(cals_event_t(*cache),cals_roll_t(*argp))) {
auto signed i,r;
if(!cache) return(0x00);
if(!argp) return(0x00);
r = cals_cache_events(cache,argp);
if(!r) return(0x00... |
chlds/util | lib/car/obj/src/cli_restore_rule.c | <reponame>chlds/util
/* **** Notes
Restore.
//*/
# define CAR
# include "../../../incl/config.h"
signed(__cdecl cli_restore_rule(signed char(*cache),cli_rule_t(*argp))) {
/* **** DATA, BSS and STACK */
auto signed char *b;
auto signed i,r;
auto signed short flag;
/* **** CODE/TEXT */
// if(!cache) return(0x00);
i... |
chlds/util | lib/car/obj/src/ct_weeks.c | <filename>lib/car/obj/src/ct_weeks.c
/* **** Notes
Count weeks.
*/
# define CALEND
# define CAR
# include "../../../incl/config.h"
signed(__cdecl ct_weeks(time_t(criterion),time_t(sec))) {
auto time_t t;
auto signed i,r;
if(criterion<(0x00)) return(0x00);
if(sec<(0x00)) return(0x00);
sec = (sec+(0x01+(~criterion... |
chlds/util | lib/car/obj/src/rm_trails.c | <filename>lib/car/obj/src/rm_trails.c
/* **** Notes
Remove trails.
*/
# define CAR
# include "./../../../incl/config.h"
signed(__cdecl rm_trails(signed char(*cache),signed char(*argp))) {
auto signed r;
// if(!cache) return(0x00);
if(!argp) return(0x00);
r = ct(argp);
return(rm_trails_r(r,cache,r+(argp)));
}
|
chlds/util | lib/car/obj/src/cals_display_upcoming_events_r_r.c | <filename>lib/car/obj/src/cals_display_upcoming_events_r_r.c
/* **** Notes
Display upcoming events or..
//*/
# define CALEND
# define CAR
# include "../../../incl/config.h"
signed(__cdecl cals_display_upcoming_events_r_r(time_t(criterion),cals_event_t(*argp))) {
auto signed char *(b[OBJS]);
auto cals_event_t *ev;
... |
chlds/util | lib/cbr/obj/src/cli_eq_internal.c | <filename>lib/cbr/obj/src/cli_eq_internal.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_internal(signed short(term),signed(fd),CLI_TYPEWRITER(*argp))) {
... |
chlds/util | bin/obj/src/cats.c | /* **** Notes
Output a file in the text format
*/
# define CAR
# include <stdio.h>
# include <stdlib.h>
# include <process.h>
# include <fcntl.h>
# include <sys/stat.h>
# include "./../../../lib/incl/config.h"
signed(__cdecl main(signed(argc),signed char(**argv),signed char(**envp))) {
auto signed count;
auto sign... |
chlds/util | lib/car/obj/src/extend.c | /* **** Notes
Unmap and map.
Remarks:
Return the number of copied bytes.
Along with C library
//*/
# define CAR
# include "../../../incl/config.h"
# include <stdio.h>
# include <stdlib.h>
signed(__cdecl extend(signed char(**argp),signed(*total),signed(extra))) {
/* **** DATA, BSS and STACK */
auto signed char *p;... |
chlds/util | lib/car/obj/src/output_pages_r.c | /* **** Notes
Output.
Remarks:
Refer at fn. cv_ww, cv_v and rl_v.
Based on UTF-8
*/
# define CAR
# include "../../../incl/config.h"
signed(__cdecl output_pages_r(signed short(arg/* align */),page_t(*argp))) {
auto signed char *b;
auto page_t *page;
auto signed r;
auto signed short flag;
if(!argp) return(0x00);
... |
chlds/util | lib/car/obj/src/restore_rule_b.c | /* **** Notes
Restore.
Remarks:
Refer at fn. rule_b, store_rule_b, and backup_rule_b.
Based on rule *(CLI_BASE+(R(rule,ty.
*/
# define CAR
# include "../../../incl/config.h"
signed(__cdecl restore_rule_b(signed short(arg_b),signed(arg),rule_t(*argp))) {
auto signed char *b;
auto rule_t *rule;
auto signed r;
auto ... |
chlds/util | lib/cbr/obj/src/cli_ctrl_n_beta.c | /*
Press <Ctrl-N> 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_n_beta(CLI_W32_STAT(*argp))) {
/*... |
chlds/util | lib/car/obj/src/coord_restore.c | <reponame>chlds/util<gh_stars>0
/*
Coordinate.
*/
# define CAR
# include "../../../incl/config.h"
signed(__cdecl coord_restore(void)) {
return(cli_es(CTRL_R));
}
|
chlds/util | lib/car/obj/src/cli_init_b.c | <reponame>chlds/util
/* **** Notes
Initialise.
*/
# define CAR
# include "./../../../incl/config.h"
signed(__cdecl cli_init_b(signed(cache),signed(arg),signed char(**argp))) {
auto signed char *b;
if(arg<(0x00)) return(0x00);
if(!argp) return(0x00);
if(!(arg<(CLI_RULE))) {
arg = (CLI_RULE);
return(cli_init_b_r(c... |
chlds/util | lib/car/obj/src/ct_l.c | <reponame>chlds/util
/* **** Notes
Count letters to the terminating null character.
*/
# define CAR
# include "./../../../incl/config.h"
signed(__cdecl ct_l(signed char(*argp))) {
auto signed r;
if(!argp) return(0x00);
if(!(*argp)) return(0x00);
AND(r,0x00);
while(*(r+(argp))) r++;
return(r);
}
|
chlds/util | lib/incl/cbr_d_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
Refer at ./config.h
*/
# def... |
chlds/util | lib/car/obj/src/cli_in.c | <filename>lib/car/obj/src/cli_in.c
/*
Get a byte or Unicode bytes for one character based on UTF-8 out of the key board.
Also get the Unicode character.
Remarks:
Return the number of bytes for one character.
Notes:
Call fn. _getch twice to read <Ctrl-@>.
The first call returns (0x00) and the second call returns (0x0... |
chlds/util | lib/car/obj/src/cals_crown.c | /* **** Notes
Overwrite time
//*/
# define CALEND
# define CAR
# include "../../../incl/config.h"
signed(__cdecl cals_crown(signed short(mo),signed short(yr),time_t(*argp))) {
auto struct tm *tp;
auto time_t t;
auto signed i,r;
auto signed short di;
auto signed short flag;
if(!argp) return(0x00);
*argp = (0x00);... |
chlds/util | lib/car/obj/src/ord_d.c | /* **** Notes
Check the ordinal number.
//*/
# define CAR
# include "./../../../incl/config.h"
signed(__cdecl ord_d(signed(*di),signed(si))) {
if(!di) return(0x00);
if(!(*di)) return(0x00);
if(!(si^(*di))) return(0x00);
di++;
return(0x01+(ord_d(di,si)));
}
|
chlds/util | lib/car/obj/src/concat_b.c | <reponame>chlds/util
/* **** Notes
Concatenate strings to the argp.
Put sufficient buffer at the argp.
Remarks:
Put the null address at the terminating argument.
*/
# define CAR
# include <stdarg.h>
# include "../../../incl/config.h"
signed(__cdecl concat_b(signed char(*argp),...)) {
auto signed char *bp;
auto s... |
chlds/util | lib/car/obj/src/car_r.c | /* **** Notes
Count column digits for a double word.
//*/
# define CAR
# include "../../../incl/config.h"
signed(__cdecl car_r(signed short(radix),signed(arg))) {
if(!arg) return(0x00);
arg = (arg/(radix));
return(0x01+(car_r(radix,arg)));
}
|
chlds/util | lib/incl/cli_d.h | # define COLOR_DEFAULT (0x00)
# define COLOR_BLACK (30)
# define COLOR_RED (31)
# define COLOR_GREEN (32)
# define COLOR_YELLOW (33)
# define COLOR_BLUE (34)
# define COLOR_MAGENTA (35)
# define COLOR_CYAN (36)
# define COLOR_WHITE (37)
# define COLOR_RESET (39)
# define COLOR_BG_BLACK (40)
# define COLOR_BG_RED (41)... |
chlds/util | bin/obj/src/sar.c | <reponame>chlds/util
/* **** Notes
sar [flags] [PID]
flags:
c: current
e: process entry
a: all
m: modules
s: system
v: verbose
Remarks:
Currently under construction
*/
# define C_CODE_STDS
# define C_MT
# define CAR
# define C_W32API
# include "./../../../lib/incl/config.h"
// # include <aclapi.h>
# define BUFF (... |
chlds/util | lib/cbr/obj/src/cli_save_as.c | /*
Save as.
Along with C and Windows libraries
Remarks:
Refer at util/lib/obj/src/cl_io_beta.c
*/
# define CBR
# include <io.h>
# include <conio.h>
# include <stdio.h>
# include <stdlib.h>
# include <fcntl.h>
# include <errno.h>
# include <sys/stat.h>
# include <sys/types.h>
# include "../../../incl/config.h"
si... |
chlds/util | lib/car/obj/src/cals_opt.c | <filename>lib/car/obj/src/cals_opt.c
/* **** Notes
Opt
//*/
# define CALEND
# define CAR
# include <stdio.h>
# include "../../../incl/config.h"
signed(__cdecl cals_opt(signed(arg),cals_t(*argp))) {
auto cli_codepage_t *codepage;
auto signed ci,co;
auto signed i,r;
auto signed short flag;
if(!arg) return(0x00);
if... |
chlds/util | lib/car/obj/src/embedback_r.c | <filename>lib/car/obj/src/embedback_r.c
/* **** Notes
Embed.
*/
# define CAR
# include <stdio.h>
# include "../../../incl/config.h"
signed(__cdecl embedback_r(signed(arg),signed char(*argp))) {
if(arg<(0x01)) return(0x00);
if(!argp) return(0x00);
*(--argp) = ('\0');
return(0x01+(embedback_r(--arg,argp)));
}
|
chlds/util | lib/car/obj/src/ct.c | /* **** Notes
Count letters to the terminating null character.
*/
# define CAR
# include "./../../../incl/config.h"
signed(__cdecl ct(signed char(*argp))) {
if(!argp) return(0x00);
if(!(*argp)) return(0x00);
argp++;
return(0x01+(ct(argp)));
}
|
chlds/util | lib/cbr/obj/src/cli_ctrl_o_beta.c | <gh_stars>0
/*
Press <Ctrl-O> 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_o_beta(CLI_W32_STAT(*argp))) {
auto signed char *b;
auto signed i,r;
auto signed short flag;
if(!... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.