It's a stack calculator for the unwise. Public Domain.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

31 lines
903B

  1. /* config.h - Alter this file as you may need. */
  2. /* alters features to match closer to GNU dc, incompats exist */
  3. /* #define DC_COMPLY */
  4. /* Reverses the output of f */
  5. /* #define FOR_HUMANS */
  6. /* The default stack size.
  7. The suggested value is 4096 (2 11^p). */
  8. #define NS_DEFAULT_SIZE 0
  9. /* The default size of registers, multiply by sizeof mpf_t * NS_REGISTER_MAX.
  10. The suggested value is 512 (2 9^p). */
  11. #define NS_REG_SIZE 0
  12. /* The default bit precision of numbers.
  13. The high value is 4096 (2 11^p).
  14. The lower the cheaper on memory the per-number. */
  15. # define NS_DEFAULT_PREC 128
  16. /* The default formatting for all number outputs. */
  17. #define NS_FORMAT_DEC "%.Ff\n"
  18. #define NS_FORMAT NS_FORMAT_DEC
  19. /* Unless PROGN is already defined, define the programs name.
  20. Must be known and constant and compile time or it'll seem very inconsistent. */
  21. #ifndef PROGN
  22. # define PROGN "dc"
  23. #endif