Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: cjlano/tinyprintf
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: HansAnderson/tinyprintf
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 7 commits
  • 5 files changed
  • 1 contributor

Commits on Nov 28, 2015

  1. Added C .gitignore

    Hans Anderson committed Nov 28, 2015
    Configuration menu
    Copy the full SHA
    4646bb5 View commit details
    Browse the repository at this point in the history
  2. Moved newlines into TPRINTF macro for printf tests

    This makes the printf.c and sprintf.c files easier to diff.
    Hans Anderson committed Nov 28, 2015
    Configuration menu
    Copy the full SHA
    68a8e59 View commit details
    Browse the repository at this point in the history
  3. Synchronized test cases in printf.c and sprintf.c

    One of the sprintf.c test cases is failing, which needs to be resolved.
    Hans Anderson committed Nov 28, 2015
    Configuration menu
    Copy the full SHA
    afe2c78 View commit details
    Browse the repository at this point in the history
  4. Added precision support

    All features of precision should work, except that numbers get limited
    to 10 or 20 characters for precision (depending on if LONG is
    supported). This seemed like a reasonable complexity trade-off, since it
    would allow precision-based zero padding to the maximum character width
    of the largest integer type.
    Hans Anderson committed Nov 28, 2015
    Configuration menu
    Copy the full SHA
    c9a7169 View commit details
    Browse the repository at this point in the history
  5. Added argument defined width/precision (using '*')

    This standard format string feature allows the width or precision to be
    provided as an additional argument.
    Hans Anderson committed Nov 28, 2015
    Configuration menu
    Copy the full SHA
    82d2485 View commit details
    Browse the repository at this point in the history
  6. Simplified integer precision handling

    As a side effect, integer precision is no longer bounded by BF_MAX.
    Precision should now be fully compatible with the standard printf.
    Hans Anderson committed Nov 28, 2015
    Configuration menu
    Copy the full SHA
    6268c39 View commit details
    Browse the repository at this point in the history
  7. Made precision and '*' specifiers conform to C99 specifications

    If zero padding is specified when either left-justify or precision are
    used, the zero padding should be ignored. The '*' specifiers can be
    integers, where negatives are handled in specific ways. The prec_used
    flag is no longer needed with these changes.
    Hans Anderson committed Nov 28, 2015
    Configuration menu
    Copy the full SHA
    cf56af9 View commit details
    Browse the repository at this point in the history
Loading