aboutsummaryrefslogtreecommitdiff
path: root/miscutils/bc.c
AgeCommit message (Expand)Author
2018-12-06bc: if FEATURE_CLEAN_UP, clean up allocations on exitsDenys Vlasenko
2018-12-05bc: do not allow "()" as a valid expressionDenys Vlasenko
2018-12-05bc: reorder functions, delete forward declarations, no code changes - part 2Denys Vlasenko
2018-12-05bc: reorder functions, delete forward declarations, no code changesDenys Vlasenko
2018-12-05bc: remove unused stringsDenys Vlasenko
2018-12-05bc: trivial simplification in bc_parse_return()Denys Vlasenko
2018-12-05bc: fix "warning: 's' may be used uninitialized in this function"Denys Vlasenko
2018-12-05bc: code shrinkDenys Vlasenko
2018-12-05bc: code shrinkDenys Vlasenko
2018-12-05bc: make division operation interruptibleDenys Vlasenko
2018-12-05bc: use unsigned division by 10 instead of signedDenys Vlasenko
2018-12-05bc: move ^C check fro power calculation to multiplicationDenys Vlasenko
2018-12-05bc: bc_num_k(): move carry,i,j,len to inner scopeDenys Vlasenko
2018-12-05bc: tweak error messagesDenys Vlasenko
2018-12-05bc: fix inverted POSIXness test, improve messages, commonalize message stringsDenys Vlasenko
2018-12-05bc: print error line numbersDenys Vlasenko
2018-12-05bc: optimize pushing zero bytes to vectorsDenys Vlasenko
2018-12-05bc: restore printing of script name on errorsDenys Vlasenko
2018-12-05bc: do not check for errors when parsing/running internal libraryDenys Vlasenko
2018-12-05bc: shrink error handling code by enabling tail-call optimizationDenys Vlasenko
2018-12-05bc: make 2^1000000 interruptible fasterDenys Vlasenko
2018-12-05bc: remove tabs from internal libraryDenys Vlasenko
2018-12-05bc: store library in ASCII, shrink keyword parsing codeDenys Vlasenko
2018-12-05bc: drop bc_map_init() macroDenys Vlasenko
2018-12-05bc: create a few common functionsDenys Vlasenko
2018-12-05bc: rewrite "BOOL * EXPR" idiom as if() statementDenys Vlasenko
2018-12-05bc: switch to SA_RESTART signal handlingDenys Vlasenko
2018-12-05bc: get rid of G.tty and G.flagsDenys Vlasenko
2018-12-05bc: convert all status codes, remove bc_err_msgs[], bc_vm_error(), bc_vm_posi...Denys Vlasenko
2018-12-05bc: convert all non-POSIX BC_STATUS_foo codesDenys Vlasenko
2018-12-05bc: convert BC_STATUS_EXEC_SIGNAL - its message string was never usedDenys Vlasenko
2018-12-05bc: convert BC_STATUS_PARSE_NO_AUTODenys Vlasenko
2018-12-05bc: convert BC_STATUS_EXEC_MISMATCHED_PARAMS and BC_STATUS_EXEC_UNDEFINED_FUNCDenys Vlasenko
2018-12-05bc: BC_STATUS_VEC_ITEM_EXISTS is not a real error code, its message was never...Denys Vlasenko
2018-12-05bc: simplify bc_lex_comment()Denys Vlasenko
2018-12-05bc: handle BIN_FILE and LEX_BAD_CHAR errors at the site of detectionDenys Vlasenko
2018-12-05bc: eliminate BC_STATUS_INPUT_EOFDenys Vlasenko
2018-12-05bc: handle "limits" and "quit" immediately at parse timeDenys Vlasenko
2018-12-05bc": drop unused error codes and stringsDenys Vlasenko
2018-12-05bc: remove "error ids": serve no useful purpose, error message should be expl...Denys Vlasenko
2018-12-05bc: reduce forward declarationsDenys Vlasenko
2018-12-05bc: use smaller datatypes for limits, match GNU bc 'limits' outputDenys Vlasenko
2018-12-05bc: better handle optional args of bc_program_pushVar()Denys Vlasenko
2018-12-05bc: tweak help textDenys Vlasenko
2018-12-05bc: simplify bc_vm_stdin()Denys Vlasenko
2018-12-05bc: only check for ^C in bc_program_exec() main loopDenys Vlasenko
2018-12-05bc: simpler calling convention for bc_read_file(), bc_program_search()Denys Vlasenko
2018-12-05bc: bc_num_ulong2num(), bc_program_pushGlobal(), bc_program_stackLen() never ...Denys Vlasenko
2018-12-05bc: stop passing around pointers to G.prog, they are all constantDenys Vlasenko
2018-12-05bc: select parse_init() and parse_expr() using IS_BC, not function pointersDenys Vlasenko