repo_name stringlengths 5 122 | path stringlengths 3 232 | text stringlengths 6 1.05M |
|---|---|---|
chlds/util | lib/car/obj/src/elapse_days_since.c | /* **** Notes
Return days elapsed since a first day of the week.
Remarks:
Refer at <corecrt_wtime.h>
*/
# define CALEND
# define CAR
# include "../../../incl/config.h"
signed(__cdecl elapse_days_since(signed short(wk),time_t(arg))) {
auto struct tm *tp;
auto time_t t;
auto signed i,r;
auto signed short flag;
if(... |
chlds/util | lib/car/obj/src/cv_a.c | <reponame>chlds/util<gh_stars>0
/* **** Notes
Convert.
Remarks:
Release at the return pointer later.
Refer at fn. rl and/or fn. release.
//*/
# define CAR
# include "../../../incl/config.h"
signed char*(__cdecl cv_a(signed(arg),signed char(*argp))) {
/* **** DATA, BSS and STACK */
auto signed char *sm = ("abcdefg... |
chlds/util | lib/car/obj/src/init_rule_b.c | <filename>lib/car/obj/src/init_rule_b.c
/* **** Notes
Initialise
Remarks:
Refer at fn. init_rule.
*/
# define CAR
# include "./../../../incl/config.h"
signed(__cdecl init_rule_b(signed short(arg),rule_t(*argp))) {
auto signed char *b;
auto signed i,r;
if(!argp) return(0x00);
// destroy
if(arg) {
b = (*(CLI_BASE... |
chlds/util | lib/car/obj/src/ctdn_to_wrap.c | <gh_stars>0
/* **** Notes
Count down to wrap words.
Remarks:
Refer at fn. cf.
*/
# define CAR
# include "../../../incl/config.h"
signed(__cdecl ctdn_to_wrap(signed short(edge),signed(arg/* align */),signed char(*cache/* sym */),signed char(*argp))) {
/* **** DATA, BSS and STACK */
auto signed char *b;
auto signed... |
chlds/util | lib/car/obj/src/ct_a_back_r.c | <gh_stars>0
/* **** Notes
Count backward.
*/
# define CAR
# include "./../../../incl/config.h"
signed(__cdecl ct_a_back_r(signed char(*argp))) {
auto signed r;
if(!argp) return(0x00);
if(!(*argp)) return(0x00);
r = nbytechar(*argp);
if(!r) return(0x00);
if(0x80^(r)) return(0x01);
return(0x01+(ct_a_back_r(--arg... |
chlds/util | lib/car/obj/src/decode_keys.c | /* **** Notes
Decode bytes based on UTF-8 into a character in UTF-16 or for control function.
Remarks:
Refer at fn. cli_i_b and cli_io_b.
Based on UTF-8
*/
# define CAR
# include "../../../incl/config.h"
signed(__cdecl decode_keys(signed(arg),signed(*di),signed char(*si))) {
auto signed r;
auto signed(__cdecl*f)(... |
chlds/util | lib/car/obj/src/concat_bb.c | /* **** Notes
Concatenate.
Remarks:
Call fn. rl later.
Refer at fn. rl.
//*/
# define CAR
# include "../../../incl/config.h"
signed(__cdecl concat_bb(signed char(**di),signed char(*si))) {
auto signed char *b;
auto signed r;
auto signed short flag;
if(!di) return(0x00);
if(!si) return(0x00);
// if(*di) return(0x... |
chlds/util | lib/car/obj/src/ctrl_indent.c | <gh_stars>0
/*
Indent.
Remarks:
Refer at util/lib/obj/src/cli_io_b.c
*/
# define CAR
# include <stdio.h>
# include "../../../incl/config.h"
signed(__cdecl ctrl_indent(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);
// pa... |
chlds/util | lib/car/obj/src/decode2w.c | /*
Decode bytes into characters based on UTF-16.
*/
# define CAR
# include <stdio.h>
# include "../../../incl/config.h"
signed(__cdecl decode2w(signed(size),signed short(*di),signed char(*si))) {
/* **** DATA, BSS and STACK */
auto signed char *b;
auto signed i,l,r;
auto signed short surrog;
auto signed short flag... |
chlds/util | lib/car/obj/src/cals_cache_upcoming_events.c | /* **** Notes
Cache upcoming events.
//*/
# define CALEND
# define CAR
# include "../../../incl/config.h"
signed(__cdecl cals_cache_upcoming_events(time_t(criterion),cals_event_t(**cache),cals_roll_t(*argp))) {
auto cals_event_t *ev;
auto struct tm *tp;
auto time_t t;
auto signed i,r;
auto signed short flag;
if(!... |
chlds/util | lib/car/obj/src/ctdn_to_r.c | /* **** Notes
Count down letters to find an offset point.
Remarks:
Refer at fn. cf.
*/
# define CAR
# include "../../../incl/config.h"
signed(__cdecl ctdn_to_r(signed short(flag),signed(arg),signed char(*cache/* sym */),signed char(*argp))) {
/* **** DATA, BSS and STACK */
auto signed i,r;
auto signed char c;
/*... |
chlds/util | lib/cbr/obj/src/cli_insert_pages.c | /* **** Notes
Concatenate the lead, index, offset and base pages 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"
si... |
chlds/util | lib/car/obj/src/ct_word_backward.c | <filename>lib/car/obj/src/ct_word_backward.c<gh_stars>0
/* **** Notes
Count length of a word backward
Remarks:
Refer at incl/recur.h
Refer at fn. out_beta and fn. out_beta_internal
*/
signed(__cdecl ct_word_backward(signed(left),signed char(*argp))) {
/* **** DATA, BSS and STACK */
static signed char const(HYPHEN)... |
chlds/util | lib/incl/ccr_d.h | <filename>lib/incl/ccr_d.h
/*
Build a linked list.
*/
typedef struct card {
signed char *(base[COMMON_OBJS]);
signed *(size[COMMON_OBJS]);
signed serial;
signed order;
signed uid;
signed tid;
signed short flag;
signed(__cdecl*(fn)) (void(*argp));
void *argp;
void *hdl;
void *optl;
} CARD;
typedef struct sat {
signe... |
chlds/util | lib/car/obj/src/cli_o.c | /*
Output one character based on UTF-8 to the console screen.
Remarks:
Return the number of bytes.
*/
# define CAR
# include <stdio.h>
# include <errno.h>
# include "../../../incl/config.h"
signed(__cdecl cli_o(signed char(*argp))) {
auto signed char *b;
auto signed r;
auto signed short flag;
auto signed SEQ_FLAG... |
chlds/util | lib/car/obj/src/clear_rows_r.c | <reponame>chlds/util
/* **** Notes
Clear rows.
*/
# define CAR
# include "../../../incl/config.h"
signed(__cdecl clear_rows_r(signed(arg))) {
auto signed char *b;
auto signed r;
auto signed short flag;
if(arg<(0x01)) return(0x00);
if(!(cli_es(CTRL_N))) return(0x00);
if(!(cli_es(CTRL_K))) return(0x00);
return(0x... |
chlds/util | lib/car/obj/src/ctdn2_r.c | <gh_stars>0
/* **** Notes
Count letters down to the specific symbol.
*/
# define CAR
# include "../../../incl/config.h"
signed(__cdecl ctdn2_r(signed(arg),signed char(sym),signed char(*argp))) {
if(!arg) return(0x00);
if(!sym) return(0x00);
if(!argp) return(0x00);
if(!(*argp)) return(0x00);
if(!(sym^(*(--arg+(arg... |
chlds/util | lib/cbr/obj/src/td_priority.c | /* Notes
Decrease or increase the priority.
*/
# define CBR
# include <stdio.h>
# include <windows.h>
# include "./../../../incl/config.h"
signed(__cdecl td_priority(signed(arg))) {
auto signed char *b;
auto signed i,r;
auto signed short flag;
auto signed p1,p2,p3,p4,p5,p6,p7;
auto signed *(priors[]) = {
&p1,&p2,&... |
chlds/util | lib/car/obj/src/init_v.c | <reponame>chlds/util<filename>lib/car/obj/src/init_v.c
/* **** Notes
Initialise.
*/
# define CAR
# include "./../../../incl/config.h"
signed(__cdecl init_v(signed(arg),void(**argp))) {
if(!argp) return(0x00);
if(!(*argp)) return(0x00);
if(arg) rl(*argp);
*argp = (0x00);
argp++;
return(0x01+(init_v(arg,argp)));
}... |
chlds/util | lib/car/obj/src/cli_mon_b.c | <reponame>chlds/util<gh_stars>0
/* **** Notes
The n-row debug monitor
*/
# define CBR
# define CLI_W32
# define N_ROW (0x04)
# include <stdio.h>
# include "../../../incl/config.h"
signed(__cdecl cli_mon_b(ty_t(*argp))) {
auto signed char *b;
auto signed char *p;
auto rule_t *rule;
auto page_t *page;
auto coord_t c... |
chlds/util | lib/car/obj/src/rm_br.c | <gh_stars>0
/* **** Notes
Remove the code of line break.
*/
# define CAR
# include "./../../../incl/config.h"
signed(__cdecl rm_br(signed char(*argp))) {
auto signed r;
if(!argp) return(0x00);
r = ct(argp);
return(rm_br_r(r,r+(argp)));
}
|
chlds/util | lib/car/obj/src/str_b_r.c | <filename>lib/car/obj/src/str_b_r.c<gh_stars>0
/* **** Notes
Store bytes.
//*/
# 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 str_b_r(signed(fd),fl_t(*argp))) {
auto signed char *b;
auto signe... |
chlds/util | lib/car/obj/src/ct_except.c | <reponame>chlds/util<gh_stars>0
/* **** Notes
Count letters to the terminating null character except for a letter you'd select.
*/
# define CAR
# include "./../../../incl/config.h"
signed(__cdecl ct_except(signed char(arg),signed char(*argp))) {
auto signed r;
if(!argp) return(0x00);
if(!(*argp)) return(0x00);
A... |
chlds/util | lib/cbr/obj/src/cli_gram_beta.c | <gh_stars>0
/*
Output to the console screen.
Remarks:
Return the number of output bytes.
Refer at fn. cli_io_beta.
*/
# define CBR
# define CLI_W32
# include <stdio.h>
# include "../../../incl/config.h"
signed(__cdecl cli_gram_beta(signed short(flag),signed char(*cur),CLI_W32_STAT(*argp))) {
/* **** DATA, BSS an... |
chlds/util | lib/car/obj/src/cpy_p.c | <filename>lib/car/obj/src/cpy_p.c
/* **** Notes
Copy to the <di> out of the <si>
*/
# define CAR
# include "../../../incl/config.h"
signed(__cdecl cpy_p(signed char(**di),signed char(**si))) {
auto signed char *b;
if(!di) return(0x00);
if(!si) return(0x00);
if(!(*si)) {
*di = (0x00);
return(0x00);
}
b = (*si);
... |
chlds/util | lib/car/obj/src/attrib_of_r.c | /* **** Notes
Check the attributes of a directory or of a file
*/
# define CAR
# include <stdio.h>
# include "../../../incl/config.h"
signed(__cdecl attrib_of_r(signed(cache),signed(*di),signed char(**si))) {
// if(!cache) return(0x00);
if(!di) return(0x00);
if(!si) return(0x00);
if(!(*di)) return(0x00);
if(!(*si)... |
chlds/util | bin/obj/src/d.c | <filename>bin/obj/src/d.c
/* **** Notes
Detect keys.
*/
# define C_CODE_STDS
# define CALEND
# define CAR
# include "./../../../lib/incl/config.h"
signed(__cdecl main(signed(argc),signed char(**argv),signed char(**envp))) {
auto signed char *b,*p;
auto signed i,r;
auto signed short flag;
auto signed char *announce... |
chlds/util | lib/car/obj/src/cals_sort_events_r_r.c | <reponame>chlds/util
/* **** Notes
Sort
//*/
# define CALEND
# define CAR
# include "../../../incl/config.h"
signed(__cdecl cals_sort_events_r_r(signed(arg),cals_roll_t(*argp))) {
auto cals_event_t *ev;
auto time_t t;
auto signed i,r;
auto signed short flag;
if(!arg) return(0x00);
if(!argp) return(0x00);
ev = (*... |
chlds/util | lib/car/obj/src/cals_crown_midnight.c | /* **** Notes
Overwrite time
//*/
# define CALEND
# define CAR
# include "../../../incl/config.h"
signed(__cdecl cals_crown_midnight(time_t(*argp))) {
auto struct tm *tp;
auto time_t t;
auto signed i,r;
auto signed short hr,mn,sm;
auto signed short flag;
if(!argp) return(0x00);
t = (*argp);
tp = localtime(&t);
i... |
chlds/util | lib/car/obj/src/ct_wo.c | /* **** Notes
Count words.
Remarks:
Refer at fn. cv_wo.
*/
# define CAR
# include "./../../../incl/config.h"
signed(__cdecl ct_wo(signed char(*sym),signed char(*argp))) {
auto signed i,r;
// if(!sym) return(0x00);
if(!argp) return(0x00);
if(!(*argp)) return(0x00);
r = cue(sym,argp);
if(!r) return(0x00);
argp =... |
chlds/util | lib/car/obj/src/count_arguments.c | /* **** Notes
Count the arguments (to the terminating null character).
argp: the leading address of an array of letters
Remarks:
Using along with fn. count_arguments_internal.
Being deprecated..
Can not know the depth of recursion with.
Please use fn. ct_args, fn. ct_ars2 or fn. ct_ars.
*/
signed(__cdecl count_arg... |
chlds/util | lib/incl/ctrl_e.h | <filename>lib/incl/ctrl_e.h
enum {
CTRL_AT,CTRL_A,CTRL_B,CTRL_C,
CTRL_D,CTRL_E,CTRL_F,CTRL_G,
CTRL_H,CTRL_I,CTRL_J,CTRL_K,
CTRL_L,CTRL_M,CTRL_N,CTRL_O,
CTRL_P,CTRL_Q,CTRL_R,CTRL_S,
CTRL_T,CTRL_U,CTRL_V,CTRL_W,
CTRL_X,CTRL_Y,CTRL_Z,CTRL_LSB,
CTRL_RS,CTRL_RSB,CTRL_CA,CTRL_LL,
CTRL_KEYS,
};
enum {
NUL,SOH,STX,ETX,
EOT,EN... |
chlds/util | lib/car/obj/src/bind_pages.c | /* **** Notes
Concatenate pages after allocating a memory block for structure page_t.
Remarks:
Build a doubly linked list
Refer at fn. unbind_pages.
*/
# define CAR
# include <stdio.h>
# include "../../../incl/config.h"
signed(__cdecl bind_pages(signed short(arg),page_t(*argp))) {
auto signed char *b;
auto rule_t... |
chlds/util | lib/car/obj/src/msleep.c | <reponame>chlds/util
/* **** Notes
Sleep for Linux.
*/
# define CAR
# include <stdio.h>
# include <errno.h>
# include <time.h>
# include "./../../../incl/config.h"
// # include "./incl/car.h"
signed(__cdecl msleep(signed(arg))) {
/*
auto struct timespec t;
auto signed long criterion = (1000*(1000));
auto signed lo... |
chlds/util | lib/car/obj/src/cpy_l.c | /* **** Notes
Copy to the <di> out of the <si> in a loop.
*/
# define CAR
# include "../../../incl/config.h"
signed(__cdecl cpy_l(signed char(*di),signed char(*si))) {
auto signed r;
auto signed char cache;
if(!di) return(0x00);
if(!si) return(0x00);
AND(r,0x00);
while(*si) {
// i.e., *di = (*si);
cache = (*si);... |
chlds/util | lib/incl/dbg.h | # define DBG_Q (0x08)
# define DBG_D (0x04)
# define DBG_W (0x02)
# define DBG_B (0x01)
# define DBG (0x00)
|
chlds/util | lib/car/obj/src/cals_no_last_days.c | <reponame>chlds/util
/* **** Notes
No last days of the month
//*/
# define CALEND
# define CAR
# include "../../../incl/config.h"
signed(__cdecl cals_no_last_days(time_t(arg))) {
auto struct tm *tp;
auto time_t t;
auto signed i,r;
auto signed short mo;
auto signed short flag;
t = (arg);
tp = localtime(&t);
if(!tp... |
chlds/util | lib/incl/cli_e.h | <gh_stars>0
enum {
CLI_BASE,
CLI_OFFSET,
CLI_INDEX,
CLI_LEAD,
CLI_RULE,
};
enum {
CLI_B,
CLI_W,
CLI_D,
CLI_Q,
};
enum {
CLI_IN,
CLI_OUT,
CLI_ERR,
};
enum {
CLI_SI,
CLI_DI,
CLI_CACHE,
};
enum {
CLI_UNDO,
CLI_REDO,
};
enum {
CLI_PIN,
CLI_PASTE,
};
|
chlds/util | lib/cbr/obj/src/cl_ctrl_d_beta.c | <reponame>chlds/util
/*
Press <Ctrl-D> 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"
sign... |
chlds/util | lib/car/obj/src/coord_b_r_r.c | <reponame>chlds/util
/*
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_r_r(signed char(*y),signed char(*x))) {
auto signed char *es = ("\033[");
auto... |
chlds/util | lib/car/obj/src/rddir.c | <reponame>chlds/util
/* **** Notes
Depth-first searching
Remarks:
Using along with fn. finds
*/
# define CALEND
# define CAR
# define C_W32API
# include "../../../incl/config.h"
# include "../../../incl/c_dir.h"
signed(__cdecl rddir(c_dirs_info_t(*argp))) {
void *dis;
auto signed char *path;
auto signed char *cra... |
chlds/util | lib/car/obj/src/cals_check_upcoming_events.c | <reponame>chlds/util
/* **** Notes
Check upcoming events.
//*/
# define CALEND
# define CAR
# include "../../../incl/config.h"
signed(__cdecl cals_check_upcoming_events(signed(n),time_t(criterion),cals_roll_t(*cache),cals_roll_t(*argp))) {
auto cals_event_t *ev;
auto time_t dif;
auto signed i,r;
if(n<(0x00)) retu... |
chlds/util | lib/car/obj/src/cals_backward.c | <reponame>chlds/util
/* **** Notes
Go backward for months
//*/
# define CALEND
# define CAR
# include "../../../incl/config.h"
signed(__cdecl cals_backward(signed(arg),cals_t(*argp))) {
auto signed i,r;
if(!argp) return(0x00);
if(!arg) return(0x00);
if(arg<(0x00)) arg = (0x01+(~arg));
r = cv_wk_mo(*(THEFIRST+(R... |
chlds/util | lib/car/obj/src/cals_count_scheduled_events_r.c | <filename>lib/car/obj/src/cals_count_scheduled_events_r.c
/* **** Notes
Count events scheduled for a week.
//*/
# define CALEND
# define CAR
# include "../../../incl/config.h"
signed(__cdecl cals_count_scheduled_events_r(signed(*cache),cals_event_t(*term),cals_event_t(*argp))) {
auto cals_event_t *ev;
auto struct ... |
chlds/util | lib/cbr/obj/src/cli_parse.c | /* **** Notes
Parse a config file for the typewriter.
Remarks:
Path: ~/.ty/config.txt
CR (0x0D)
LF (0x0A)
//*/
# define CBR
# 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>
# inclu... |
chlds/util | lib/car/obj/src/cv_bv_xe.c | /* **** Notes
Convert into an array.
Remarks:
After calling fn. cv_bv_xe, please call fn. rl to unmap the buffer allocated on the RAM.
*/
# define CAR
# include "./../../../incl/config.h"
signed(__cdecl cv_bv_xe(signed char(**di),signed char(**si))) {
auto signed i,r;
if(!di) return(0x00);
if(!si) return(0x00);
... |
chlds/util | lib/car/obj/src/out_oneline_limited.c | /* **** Notes
Output only one line.
Remarks:
Return the number of bytes output for characters.
*/
# define CAR
# include "./../../../incl/config.h"
signed(__cdecl out_oneline_limited(signed short(arg),signed char(*argp))) {
auto signed char *b;
auto signed r;
auto signed short flag;
if(arg<(0x01)) return(0x00);
... |
chlds/util | lib/car/obj/src/cals_update_time_for_periodic_events_in_the_day.c | /* **** Notes
Overwrite time
//*/
# define CALEND
# define CAR
# include "../../../incl/config.h"
signed(__cdecl cals_update_time_for_periodic_events_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 yr,mo,di,wk;
auto signed short hr,mn,sm;
auto si... |
chlds/util | lib/car/obj/src/rm_br_r.c | /* **** Notes
Remove the code of line break.
*/
# define CAR
# include "./../../../incl/config.h"
signed(__cdecl rm_br_r(signed(arg),signed char(*argp))) {
auto signed short flag;
if(!arg) return(0x00);
if(!argp) return(0x00);
AND(flag,0x00);
--argp;
if(!(CR^(*argp))) OR(flag,0x01);
if(!(LF^(*argp))) OR(flag,0x0... |
chlds/util | lib/cbr/obj/src/cli_wrap.c | <filename>lib/cbr/obj/src/cli_wrap.c
/*
Load.
Along with C library
Remarks:
Refer at fn. cli_bind_pages and fn. cli_concat_pages.
*/
# define CBR
# include <io.h>
# include <conio.h>
# include <stdio.h>
# include "../../../incl/config.h"
signed(__cdecl cli_wrap(signed char(*sym),CLI_TYPEWRITER(*argp))) {
/* ***... |
chlds/util | lib/car/obj/src/ct_only.c | /* **** Notes
Count a specific letter only.
*/
signed(__cdecl ct_only(signed char(arg),signed char(*argp))) {
/* **** CODE/TEXT */
if(!argp) return(0x00);
if(!(*argp)) return(0x00);
if(!(arg^(*argp))) return(0x01+(ct_only(arg,++argp)));
return(ct_only(arg,++argp));
}
|
chlds/util | bin/obj/src/cre.c | <filename>bin/obj/src/cre.c<gh_stars>0
/* **** Notes
Create.
*/
# define CAR
# include "./../../../lib/incl/config.h"
// signed(__cdecl main(signed(argc),signed char(**argv),signed char(**envp))) {
signed(__cdecl wmain(signed(argc),signed short(**argv),signed short(**envp))) {
auto void *argp;
auto signed char *b;... |
chlds/util | lib/car/obj/src/ct_ars.c | <reponame>chlds/util
/* **** Notes
Count arguments to the terminating null character.
*/
# define CAR
# include "./../../../incl/config.h"
signed(__cdecl ct_ars(signed(*retv),signed char(*base))) {
/* **** DATA */
auto signed short flag;
auto signed r;
/* **** CODE/TEXT */
if(!retv) return(0x00);
if(!base) return... |
chlds/util | lib/cbr/obj/src/cli_debug_monitor_beta.c | <reponame>chlds/util<gh_stars>0
/* **** Notes
The n-row debug monitor
Remarks:
Along with C library
*/
# define CBR
# define CLI_W32
# define N_ROW (0x04)
# include <stdio.h>
# include "../../../incl/config.h"
signed(__cdecl cli_debug_monitor_beta(CLI_W32_STAT(*argp))) {
/* **** DATA, BSS and STACK */
auto sign... |
chlds/util | lib/car/obj/src/cals_display_upcoming_events.c | /* **** Notes
Display upcoming events or..
//*/
# define CALEND
# define CAR
# include "../../../incl/config.h"
signed(__cdecl cals_display_upcoming_events(signed(day),time_t(criterion),cals_event_t(*cache),cals_roll_t(*argp))) {
auto cals_event_t *ev;
auto struct tm *tp;
auto signed char *b;
auto time_t t;
auto s... |
chlds/util | lib/car/obj/src/cals_update_time_for_periodic_events_in_days.c | <filename>lib/car/obj/src/cals_update_time_for_periodic_events_in_days.c<gh_stars>0
/* **** Notes
Overwrite time
//*/
# define CALEND
# define CAR
# include "../../../incl/config.h"
signed(__cdecl cals_update_time_for_periodic_events_in_days(cals_event_t(*cache),cals_t(*argp))) {
auto cals_event_t *ev;
auto struct... |
chlds/util | lib/car/obj/src/wr_b.c | <filename>lib/car/obj/src/wr_b.c<gh_stars>0
/* **** Notes
Write to the file descriptor.
//*/
# define CAR
# include <io.h>
# include "../../../incl/config.h"
signed(__cdecl wr_b(signed(fd),signed char(*argp),signed(arg))) {
return(write(fd,argp,arg));
}
|
chlds/util | lib/car/obj/src/init_w.c | /* **** Notes
Initialise.
*/
# define CAR
# include "./../../../incl/config.h"
signed(__cdecl init_w(signed(cached),signed(arg),signed short(**argp))) {
auto signed short *w;
if(arg<(0x01)) return(0x00);
if(!argp) return(0x00);
if(cached) {
embed_w(0x00,*argp);
rl(*argp);
}
w = (0x00);
*argp = (w);
argp++;
--ar... |
chlds/util | lib/incl/cli_f.h | <filename>lib/incl/cli_f.h
signed(__cdecl cli_log_r_r(signed char(*di/* path */),signed char(*si/* contents */)));
signed(__cdecl cli_log_r(signed char(*di/* path */),signed char(**si/* contents */)));
signed(__cdecl cli_log(signed char(*di/* path */),signed char(*si/* contents */)));
signed(__cdecl coord_b_r_r(signed ... |
chlds/util | lib/cbr/obj/src/cli_ctrl_ll_beta.c | /*
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_ll_beta(CLI_W32_STAT(*argp))) {
auto signed char *b;
auto signed i,r;
auto signed short flag;
if(!argp) return... |
chlds/util | lib/cbr/obj/src/cli_ctrl_i_beta.c | <reponame>chlds/util
/*
Press <Ctrl-I> to invoke the function.
Along with C and Windows libraries
Remarks:
Input the tab to workspace and output whitespace to the console screen.
Refer at util/lib/obj/src/cli_io_beta.c
*/
# define CBR
# define CLI_W32
# include <conio.h>
# include <stdio.h>
# include <stdlib.h>
#... |
chlds/util | lib/car/obj/src/cue_back2_r.c | <filename>lib/car/obj/src/cue_back2_r.c
/*
Cue backward.
Remarks:
Based on UTF-8
*/
# define CAR
# include "../../../incl/config.h"
signed(__cdecl cue_back2_r(signed short(flag),signed char(*sym),signed char(*cache),signed char(*argp))) {
/* **** DATA, BSS and STACK */
auto signed short BYTE_ONE = (0x01);
auto si... |
chlds/util | lib/car/obj/src/cv_date.c | /* **** Notes
Convert to a month, day and year out of characters.
//*/
# define CALEND
# define CAR
# include "../../../incl/config.h"
signed(__cdecl cv_date(signed char(*b),cals_event_t(*argp))) {
auto struct tm *tp;
auto time_t t;
auto signed i,r;
auto signed short mo;
auto signed short flag;
if(!b) return(0x00... |
chlds/util | lib/car/obj/src/opt_vt_b.c | <reponame>chlds/util
/* **** Notes
Opt.
Remarks:
Based on UTF-8
*/
# define CBR
# include <stdio.h>
# include "../../../incl/config.h"
signed(__cdecl opt_vt_b(signed(arg),void(*argp),signed(__cdecl*f)(signed(arg),void(*argp)))) {
auto signed char *b;
auto signed i,r;
auto signed short flag;
auto cli_virtual_termi... |
chlds/util | lib/cbr/obj/src/cli_eq_monitor.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_monitor(CLI_TYPEWRITER(*argp))) {
auto signed char *operand = ("1");
auto signed i,r;
auto signed short fla... |
chlds/util | lib/ccr/obj/src/cmdl2_output.c | /* **** Notes
Commandlet to output
Attention:
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_output(SAT(*argp))) {
/* **** DATA */
auto signed const QUANTUM = (0x10);
auto signed const DELAY = (0x01*(QUA... |
chlds/util | lib/car/obj/src/wr_ds_w.c | <reponame>chlds/util
/* **** Notes
Write.
Remarks:
write di,si
; write contents into a storage
*/
# define CAR
# include <stdio.h>
# include "./../../../incl/config.h"
signed(__cdecl wr_ds_w(signed short(**argp))) {
auto signed short *w;
auto signed i,r;
auto signed short flag;
auto fl_t fl;
auto signed threshold... |
chlds/util | lib/car/obj/src/cals_display_events.c | <gh_stars>0
/* **** Notes
Display events.
//*/
# define CALEND
# define CAR
# include "../../../incl/config.h"
signed(__cdecl cals_display_events(cals_roll_t(*argp))) {
/* **** DATA, BSS and STACK */
auto cals_event_t *ev;
auto time_t t;
auto signed i,r;
auto signed short flag;
/* **** CODE/TEXT */
if(!argp) retu... |
chlds/util | lib/car/obj/src/ld_b.c | /* **** Notes
Load.
Remarks:
Call fn. rl later.
*/
# define CAR
# include <stdio.h>
# include "./../../../incl/config.h"
signed(__cdecl ld_b(signed(range),signed(offset),signed char(**di),signed char(*si/* path */))) {
auto signed char *b;
auto signed i,r;
auto signed short flag;
auto fl_t fl;
auto signed char *p... |
chlds/util | lib/car/obj/src/backup_rule_b.c | <reponame>chlds/util
/* **** Notes
Backup.
Remarks:
Refer at fn. rule_b, store_rule_b, and restore_rule_b.
Based on rule *(CLI_BASE+(R(rule,R(page,ty.
*/
# define CAR
# include "../../../incl/config.h"
signed(__cdecl backup_rule_b(signed(arg),page_t(*argp))) {
auto signed char *b;
auto rule_t *rule;
auto signed r... |
chlds/util | lib/car/obj/src/coord_report_r.c | /* **** Notes
Coordinate.
*/
# define CAR
# include <io.h>
# include "./../../../incl/config.h"
signed(__cdecl coord_report_r(signed(arg),signed char(*cache),coord_t(*argp))) {
auto signed char *b;
auto signed i,r;
if(arg<(0x00)) return(0x00);
if(!cache) return(0x00);
if(!argp) return(0x00);
b = (cache);
r = cv_... |
chlds/util | lib/car/obj/src/cals_flag_e.c | <filename>lib/car/obj/src/cals_flag_e.c
/* **** Notes
Flag
//*/
# define CALEND
# define CAR
# include "../../../incl/config.h"
signed(__cdecl cals_flag_e(cals_t(*argp))) {
auto signed char **argv;
auto cals_event_t event;
auto signed i,r;
if(!argp) return(0x00);
r = cals_init_event(&event);
if(!r) {
printf("%s ... |
chlds/util | lib/car/obj/src/cv_ord_week.c | /* **** Notes
Convert into an ordinal number of the week in the month from the time.
//*/
# define CALEND
# define CAR
# include "../../../incl/config.h"
signed(__cdecl cv_ord_week(time_t(arg))) {
auto struct tm *tp;
auto time_t t;
auto signed i,r;
auto signed short wk,di,mo,yr;
auto signed short flag;
if(!arg) r... |
chlds/util | lib/car/obj/src/cals_cache_periodic_events.c | /* **** Notes
Cache
//*/
# define CALEND
# define CAR
# include "../../../incl/config.h"
signed(__cdecl cals_cache_periodic_events(signed short(n),cals_event_t(*cache),cals_roll_t(*cached),cals_t(*argp))) {
auto signed i,r;
if(n<(0x00)) return(0x00);
if(!n) return(0x00);
if(!cache) return(0x00);
if(!cached) retur... |
chlds/util | lib/car/obj/src/ct_q.c | /* **** Notes
Count to the terminating null quad word.
*/
# define CAR
# include "./../../../incl/config.h"
signed(__cdecl ct_q(signed long long(*argp))) {
if(!argp) return(0x00);
if(!(*argp)) return(0x00);
argp++;
return(0x01+(ct_q(argp)));
}
|
chlds/util | lib/car/obj/src/cli_backup_codepages_beta.c | <gh_stars>0
/* **** Notes
Backup the current 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_backup_codepages_beta(signed short(flag),cli_codepage_t(*argp)... |
chlds/util | lib/car/obj/src/art_r.c | /* **** Notes
Read content out of FILE in column.
*/
# define CAR
# include "./../../../incl/config.h"
signed(__cdecl art_r(signed short(*flag),signed short(cols),signed char(*sym),signed(fd))) {
auto signed const QUANTUM = (0x10);
auto signed const SNOOZE = (0x08);
auto signed const DELAY = (0x02*(QUANTUM));
auto... |
chlds/util | lib/car/obj/src/cals_update_time_for_periodic_events.c | <reponame>chlds/util
/* **** Notes
Overwrite time
//*/
# define CALEND
# define CAR
# include "../../../incl/config.h"
signed(__cdecl cals_update_time_for_periodic_events(signed short(arg),cals_event_t(*cache),cals_t(*argp))) {
auto cals_event_t *ev;
auto struct tm *tp;
auto time_t sec;
auto time_t t;
auto signed... |
chlds/util | lib/car/obj/src/out_argt_line_limited_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.
*/
# define CAR
# include "./../../../incl/config.h"
signed(__cdecl out_argt_line... |
chlds/util | lib/cbr/obj/src/cli_output_beta.c | /*
Output characters based on UTF-8 to the console screen.
Remarks:
Return the number of bytes for output characters.
*/
# define CBR
# define CLI_W32
# include <stdio.h>
# include "../../../incl/config.h"
signed(__cdecl cli_output_beta(signed short(comeback),signed char(*cur),CLI_W32_STAT(*argp))) {
/* **** DAT... |
chlds/util | lib/cbr/obj/src/cli_init_workspace.c | /* **** Notes
Initialise workspace.
Along with C library
Remarks:
Refer at fn. cli_init_ty, cli_spool_beta and fn. cli_io_beta.
*/
# define CBR
# include <conio.h>
# include <stdio.h>
# include <stdlib.h>
# include "../../../incl/config.h"
signed(__cdecl cli_init_workspace(CLI_TYPEWRITER(*argp))) {
/* **** DATA... |
chlds/util | lib/car/obj/src/rm_trails_r.c | /* **** Notes
Remove trails.
*/
# define CAR
# include "./../../../incl/config.h"
signed(__cdecl rm_trails_r(signed(arg),signed char(*cache),signed char(*argp))) {
auto signed char *b = ("\t\n\r ");
auto signed r;
if(!arg) return(0x00);
if(!argp) return(0x00);
--argp;
r = ord(b,*argp);
if(!(r<(ct(b)))) {
if(cach... |
chlds/util | lib/car/obj/src/cli_init_rule.c | /* **** Notes
Initialise
Remarks:
Refer at fn. cli_restore.
*/
# define CAR
# include "./../../../incl/config.h"
signed(__cdecl cli_init_rule(signed(arg),cli_rule_t(*argp))) {
auto signed char *b;
auto signed i,r;
if(!argp) return(0x00);
// initialise
if(!(CLI_INIT&(R(flag,*argp)))) AND(arg,0x00);
// destroy
i... |
chlds/util | lib/cbr/obj/src/cli_ctrl_rs_beta.c | <reponame>chlds/util<gh_stars>0
/*
Press <Ctrl-\> to invoke the function.
Type a bullet (i.e., 0x2022) in UTF-8
Remarks:
Refer at util/lib/obj/src/cli_io_beta.c
Along with C and Windows libraries
*/
# define CBR
# define CLI_W32
# include <conio.h>
# include <stdio.h>
# include <stdlib.h>
# include "../../../incl... |
chlds/util | lib/car/obj/src/cli_fn_ahead.c | /*
Go ahead.
Remarks:
Refer at util/lib/obj/src/cli_io.c
*/
# define CAR
# include <stdio.h>
# include "../../../incl/config.h"
signed(__cdecl cli_fn_ahead(cli_property_t(*argp))) {
auto signed char *b;
auto cli_text_t *text;
auto cli_rule_t *rule;
auto coord_t coord;
auto signed i,r;
auto signed short flag;
if(... |
chlds/util | lib/car/obj/src/cli_i_r.c | <reponame>chlds/util<gh_stars>0
/*
Get a byte or bytes for one character based on UTF-8 out of the key board.
*/
# define CAR
# include <stdio.h>
# include "../../../incl/config.h"
signed(__cdecl cli_i_r(signed char(**argp))) {
auto signed char *b;
auto signed r;
auto signed short flag;
if(!argp) return(0x00);
if... |
chlds/util | lib/cbr/obj/src/cli_load_old_internal.c | <reponame>chlds/util
/*
Load.
Along with C library
Remarks:
Refer at fn. cli_bind_pages and fn. cli_concat_pages.
*/
# 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"
sig... |
chlds/util | lib/car/obj/src/cv_l.c | /* **** Notes
Convert.
//*/
# define CAR
# include "../../../incl/config.h"
signed(__cdecl cv_l(signed char(*di_tbl),signed char(*si_tbl),signed char(*di),signed char(*si))) {
/* **** DATA, BSS and STACK */
auto signed i,r;
auto signed short flag;
/* **** CODE/TEXT */
if(!di_tbl) return(0x00);
if(!si_tbl) return(... |
chlds/util | lib/car/obj/src/init_rule_b_r.c | /* **** Notes
Initialise
Remarks:
Refer at fn. init_rule_b.
*/
# define CAR
# include <stdio.h>
# include "./../../../incl/config.h"
signed(__cdecl init_rule_b_r(signed short(flag),signed(arg),rule_t(*argp))) {
auto signed char *b;
auto signed i,r;
if(arg<(0x01)) return(0x00);
if(!argp) return(0x00);
--arg;
r =... |
chlds/util | lib/car/obj/src/cals_event_in_the_day.c | /* **** Notes
Confirm.
//*/
# define CALEND
# define CAR
# include "../../../incl/config.h"
signed(__cdecl cals_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,mo,yr;
if(!argp) return(0x00);
t = (arg);
tp = localtime(&t);
if(!tp) re... |
chlds/util | lib/incl/ccr_f.h | <gh_stars>0
/* **** commandlet functions
Return (0x00) if the function fails.
*/
signed(__cdecl transcribe_to_beta(signed(width),signed(height),void(*di/* dc */),void(*si/* hdl */)));
signed(__cdecl transcribe_beta(signed(width),signed(height),void(*di/* hdl */),void(*si/* dc */)));
unsigned(__stdcall cmdl2_exit(voi... |
chlds/util | lib/car/obj/src/cue_backward_r.c | /*
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_r(signed short(flag),signed char(**retrv),signed char(*sym),si... |
chlds/util | lib/car/obj/src/cals_cache_all_events_r.c | <gh_stars>0
/* **** Notes
Cache all events.
//*/
# define CALEND
# define CAR
# include "../../../incl/config.h"
signed(__cdecl cals_cache_all_events_r(cals_roll_t(**di),cals_roll_t(**si))) {
auto cals_event_t *ev;
auto signed i,r;
auto signed short flag;
if(!di) return(0x00);
if(!si) return(0x00);
if(!(*si)) ret... |
chlds/util | lib/car/obj/src/concat_pages.c | /* **** Notes
Concatenate a page in a circular/doubly linked list.
Remarks:
On the flag, 0x00 is in a doubly linked list and the others are in a circular linked list.
Refer at fn. unmap_pages and fn. unbind_pages.
*/
# define CAR
# include "../../../incl/config.h"
signed(__cdecl concat_pages(signed short(flag),pag... |
chlds/util | lib/car/obj/src/cals_store_internal.c | /* **** Notes
Store an event at file event.csv in directory ~/.cals/.
Remarks:
Path: ~/.cals/event.csv
//*/
# define CALEND
# define CAR
# include <io.h>
# include <conio.h>
# include <stdio.h>
# include <stdlib.h>
# include <time.h>
# include <fcntl.h>
# include <sys/types.h>
# include <sys/stat.h>
# include <err... |
chlds/util | lib/car/obj/src/ct_bv.c | <filename>lib/car/obj/src/ct_bv.c
/* **** Notes
Count bytes.
*/
# define CAR
# include "./../../../incl/config.h"
signed(__cdecl ct_bv(signed(*di),signed char(**si))) {
if(!di) return(0x00);
if(!si) return(0x00);
AND(*di,0x00);
return(ct_bv_r(di,si));
}
|
chlds/util | lib/car/obj/src/decode_b.c | /*
Decode bytes into a character based on UTF-16.
Check the leading byte for one Unicode 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.****... |
chlds/util | lib/cbr/obj/src/cli_coord_out_old_beta.c | /*
Form a column in the console screen.
Not wrap words.
Refer at fn. cli_coord_out_beta.
Remarks:
Based on fn. cli_out
Return the number of bytes for a Unicode character output in UTF-8.
Refer at fn. cli_init_ty_beta.
*/
# define CBR
# define CLI_W32
# include "../../../incl/config.h"
signed(__cdecl cli_coord_ou... |
chlds/util | lib/car/obj/src/finds.c | <gh_stars>0
/* **** Notes
A wrapper function to initialise arguments for fn. rddir to search in a directory tree using depth-first search
*/
# define CALEND
# define CAR
# define C_W32API
# include "../../../incl/config.h"
# include "../../../incl/c_dir.h"
signed(__cdecl finds(c_dirs_info_t(*argp))) {
auto signed ... |
chlds/util | lib/car/obj/src/cals_date.c | /* **** Notes
Map the date.
Remarks:
Call fn. rl later.
//*/
# define CALEND
# define CAR
# include "../../../incl/config.h"
signed(__cdecl cals_date(signed short(**di),time_t(*si))) {
auto signed short *w;
auto struct tm *tp;
auto time_t t;
auto signed i,r;
if(!di) return(0x00);
if(!si) return(0x00);
if(*di) re... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.