Denys Vlasenko
|
a7f1a36540
bc: simplify bc_program_len()
|
6 years ago |
Denys Vlasenko
|
44d79d866d
bc: simplify bc_program_print()
|
6 years ago |
Denys Vlasenko
|
b696d9ec20
bc: simplify bc_num_ulong2num()
|
6 years ago |
Denys Vlasenko
|
9311e01803
bc: move str-to-num conversion functions to their only caller, bc_num_parse()
|
6 years ago |
Denys Vlasenko
|
218ed1cf54
bc: further simplify string-to-number conversion code
|
6 years ago |
Denys Vlasenko
|
4a024c7719
bc: simplify string-tonumber conversion code
|
6 years ago |
Denys Vlasenko
|
3129f705fc
bc: no need to "set to zero" BcNum after bc_num_init(), it already is
|
6 years ago |
Denys Vlasenko
|
e20e00de34
bc: add and use bc_num_init_DEF_SIZE()
|
6 years ago |
Denys Vlasenko
|
5ec4b49125
bc: in bc_program_execStr(), push two variables into inner scope
|
6 years ago |
Denys Vlasenko
|
927a7d6853
bc: in bc_program_exec(), push two variables into inner scope
|
6 years ago |
Denys Vlasenko
|
8fa1e8e6e7
bc: add accessors for G.prog.strs[idx], G.prog.fns[idx]
|
6 years ago |
Denys Vlasenko
|
0f37b3286a
bc: eliminate always the same params to bc_num_printBase()
|
6 years ago |
Denys Vlasenko
|
ebc41c9d94
bc: remove redundant error checks in bc_parse_print()
|
6 years ago |
Denys Vlasenko
|
5f1b90b91a
bc: stop propagating pointer to G.prog.nchars deep into printing functions
|
6 years ago |
Denys Vlasenko
|
2a8ad48734
bc: do not pass line width in parameters, it's in globals
|
6 years ago |
Denys Vlasenko
|
ac6ed11f8d
bc: remove "ready for more input" message, GNU bc does not print that
|
6 years ago |
Denys Vlasenko
|
6e7c65fca0
bc: trim banner, use empty interactive prompts (GNU bc compat)
|
6 years ago |
Denys Vlasenko
|
d0bc5fdfea
dc: fix "small dc" to have standard command line API
|
6 years ago |
Denys Vlasenko
|
f522dd9420
bc: replace G.eof with a special exit code of bc_vm_stdin()
|
6 years ago |
Denys Vlasenko
|
2d615fee38
bc: convert two macros to functions, unwing one complex max(a,min(b,c))
|
6 years ago |
Denys Vlasenko
|
64074a1767
bc: do not perform domr limit checks when they can't work (e.g. on 32-bit arches)
|
6 years ago |
Denys Vlasenko
|
ffdcebdffe
bc: pull temporary into a register
|
6 years ago |
Denys Vlasenko
|
18c6b54f82
bc: use more compact parsing data structures
|
6 years ago |
Denys Vlasenko
|
b9c321d6d9
bc: use only G_interrupt as interrupt flag
|
6 years ago |
Denys Vlasenko
|
c7a7ce06b8
bc: fix exit codes for FEATURE_CLEAN_UP=y
|
6 years ago |
Denys Vlasenko
|
6d0be10aae
bc: correctly parse dc options
|
6 years ago |
Denys Vlasenko
|
4c9455f967
dc: fix "dc does_not_exist" SEGVing
|
6 years ago |
Denys Vlasenko
|
b23ac51d0c
bc: code shrink - convert two macros to functions
|
6 years ago |
Denys Vlasenko
|
d00d2f9603
bc: make keyword POSIXness check more readable
|
6 years ago |
Denys Vlasenko
|
b6f60863cb
bc: move a function to reduce forward declarations
|
6 years ago |