Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: build warning - cast from pointer to integer of different size #110

Merged
merged 65 commits into from
Nov 4, 2021

Commits on May 5, 2016

  1. Configuration menu
    Copy the full SHA
    e9dabc9 View commit details
    Browse the repository at this point in the history

Commits on Aug 9, 2017

  1. example: fix typo

    tildearrow committed Aug 9, 2017
    Configuration menu
    Copy the full SHA
    46a1047 View commit details
    Browse the repository at this point in the history

Commits on Sep 18, 2018

  1. Add LDFLAGS support and missing lm option

    While libm can be linked on generating final executable, it's still
    preferred to link it against the library itself to better represent the
    dependency hierarchy.
    yangfl committed Sep 18, 2018
    Configuration menu
    Copy the full SHA
    9cf18e3 View commit details
    Browse the repository at this point in the history

Commits on Dec 16, 2018

  1. Enable C++ iterators in MSVC (and C++98)

    Added support for MSVC and (rather coincidentally) C++98 by replacing
    the decltype keyword and removing the corresponding preprocessor
    checks.
    martinschmauder committed Dec 16, 2018
    Configuration menu
    Copy the full SHA
    1d56c07 View commit details
    Browse the repository at this point in the history

Commits on Oct 10, 2019

  1. Added fall through markers

    To prevent warnings in modern compilers
    dzavalishin committed Oct 10, 2019
    Configuration menu
    Copy the full SHA
    0ecf2d7 View commit details
    Browse the repository at this point in the history

Commits on Jun 27, 2021

  1. Configuration menu
    Copy the full SHA
    8594d7d View commit details
    Browse the repository at this point in the history

Commits on Aug 3, 2021

  1. ./configure complains about ignored datarootdir variable

    per-ok authored and Per Olav Kroka committed Aug 3, 2021
    Configuration menu
    Copy the full SHA
    055ab42 View commit details
    Browse the repository at this point in the history
  2. Remove unnecessary/problematic AC_ macro

    per-ok authored and Per Olav Kroka committed Aug 3, 2021
    Configuration menu
    Copy the full SHA
    fd7101a View commit details
    Browse the repository at this point in the history
  3. Enable the JSON_TRACK_SOURCE functionality from the configure script

    per-ok authored and Per Olav Kroka committed Aug 3, 2021
    Configuration menu
    Copy the full SHA
    a7cedd7 View commit details
    Browse the repository at this point in the history
  4. Generate new version of the configure script

    per-ok authored and Per Olav Kroka committed Aug 3, 2021
    Configuration menu
    Copy the full SHA
    f80e44e View commit details
    Browse the repository at this point in the history
  5. Can not successfully build from a different directory

    Example (starting in the source directory):
      $ mkdir build
      $ cd build
      $ ../configure
      $ make
    
    Make complains:
     ar rcs libjsonparser.a json.o
     ar: json.o: No such file or directory
     make: *** [Makefile:29: libjsonparser.a] Error 1
    per-ok authored and Per Olav Kroka committed Aug 3, 2021
    Configuration menu
    Copy the full SHA
    ee4103b View commit details
    Browse the repository at this point in the history

Commits on Aug 7, 2021

  1. Configuration menu
    Copy the full SHA
    10f4a79 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    159db39 View commit details
    Browse the repository at this point in the history
  3. Fix header files

    json.h: <inttypes.h> → <stdint.h>
    int64_t is defined in <stdint.h>, no need for the full <inttypes.h>
    
    json.h: <stdlib.h> → <stddef.h>
    <stddef.h> is enough to define size_t
    
    json.c: <stdlib.h>
    Now that <stdlib.h> has been removed from json.h, add it to json.c for
    malloc()/calloc() and free()
    DimitriPapadopoulos committed Aug 7, 2021
    Configuration menu
    Copy the full SHA
    b5ce13e View commit details
    Browse the repository at this point in the history

Commits on Aug 9, 2021

  1. Configuration menu
    Copy the full SHA
    9083578 View commit details
    Browse the repository at this point in the history

Commits on Aug 14, 2021

  1. Merge pull request json-parser#100 from DimitriPapadopoulos/trailing_…

    …whitespaces
    
    Get rid of trailing whitespaces
    LB-- committed Aug 14, 2021
    Configuration menu
    Copy the full SHA
    c75e8cd View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7545b67 View commit details
    Browse the repository at this point in the history
  3. Merge pull request json-parser#108 from DimitriPapadopoulos/printf_un…

    …signed_int
    
    cur_line and cur_col are unsigned
    LB-- committed Aug 14, 2021
    Configuration menu
    Copy the full SHA
    d96b368 View commit details
    Browse the repository at this point in the history
  4. Merge pull request json-parser#88 from dzavalishin/master

    Added fall through markers
    LB-- committed Aug 14, 2021
    Configuration menu
    Copy the full SHA
    4a7d6e3 View commit details
    Browse the repository at this point in the history
  5. Merge pull request json-parser#65 from tildearrow/master

    example: fix typo
    LB-- committed Aug 14, 2021
    Configuration menu
    Copy the full SHA
    08f6281 View commit details
    Browse the repository at this point in the history
  6. Merge pull request json-parser#77 from martinschmauder/master

    Remove dependency on decltype in C++ API
    LB-- committed Aug 14, 2021
    Configuration menu
    Copy the full SHA
    a58d231 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    b4efb6c View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    7c16f37 View commit details
    Browse the repository at this point in the history
  9. Merge pull request json-parser#75 from yangfl/master

    Add LDFLAGS support and missing lm option
    LB-- committed Aug 14, 2021
    Configuration menu
    Copy the full SHA
    76f553b View commit details
    Browse the repository at this point in the history
  10. Fix read overflow

    isra17 committed Aug 14, 2021
    Configuration menu
    Copy the full SHA
    430dfd9 View commit details
    Browse the repository at this point in the history
  11. AUTHORS

    DimitriPapadopoulos committed Aug 14, 2021
    Configuration menu
    Copy the full SHA
    d197cd1 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    04d8f1e View commit details
    Browse the repository at this point in the history
  13. datarootdir

    DimitriPapadopoulos committed Aug 14, 2021
    Configuration menu
    Copy the full SHA
    b3cf7ea View commit details
    Browse the repository at this point in the history
  14. Add $(CFLAGS) to compiler options

    Avoid the following linking error on Ubuntu 20.04:
    /usr/bin/ld: /tmp/ccPCOj2I.o: relocation R_X86_64_PC32 against symbole `json_value_free_ex' can not be used when making a shared object; recompilez avec -fPIC
    DimitriPapadopoulos committed Aug 14, 2021
    Configuration menu
    Copy the full SHA
    240bb6d View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    54ccf02 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    1130ad2 View commit details
    Browse the repository at this point in the history

Commits on Aug 15, 2021

  1. Configuration menu
    Copy the full SHA
    351d1a7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3908173 View commit details
    Browse the repository at this point in the history
  3. Merge pull request json-parser#118 from DimitriPapadopoulos/include

    Change order of #include
    LB-- committed Aug 15, 2021
    Configuration menu
    Copy the full SHA
    f8bc796 View commit details
    Browse the repository at this point in the history
  4. Specify syntax highlighting for README.md

    The counterpart to json-parser/json-builder#17
    LB-- committed Aug 15, 2021
    Configuration menu
    Copy the full SHA
    773da83 View commit details
    Browse the repository at this point in the history

Commits on Aug 16, 2021

  1. Configuration menu
    Copy the full SHA
    2664347 View commit details
    Browse the repository at this point in the history
  2. Create codeql-analysis.yml

    LB-- committed Aug 16, 2021
    Configuration menu
    Copy the full SHA
    08f9746 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    cddc633 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    b695e3d View commit details
    Browse the repository at this point in the history

Commits on Aug 18, 2021

  1. Configuration menu
    Copy the full SHA
    bfbd6f6 View commit details
    Browse the repository at this point in the history

Commits on Aug 19, 2021

  1. Merge PR json-parser#119

    Made a slight adjustment to keep the "ANSI C" text in case people still search for it that way, even if it is erroneous and/or ambiguous.
    LB-- committed Aug 19, 2021
    Configuration menu
    Copy the full SHA
    8a94b92 View commit details
    Browse the repository at this point in the history

Commits on Aug 20, 2021

  1. Revert "Add $(CFLAGS) to compiler options"

    The reverted solution was a workaround. See comments for the pull request at:
    <json-parser#114 (comment)>
    <json-parser#114 (comment)>
    
    This reverts commit 240bb6d.
    Per Olav Kroka committed Aug 20, 2021
    Configuration menu
    Copy the full SHA
    d7c40aa View commit details
    Browse the repository at this point in the history
  2. Use the object files when linking.

    The object files are not in use or even created.  The source files are
    used directly in the linking process, thereby ignoring the CFLAGS variable.
    
    This is according to a comment given in pull request number 114.
    <json-parser#114 (comment)>
    Per Olav Kroka committed Aug 20, 2021
    Configuration menu
    Copy the full SHA
    adc5915 View commit details
    Browse the repository at this point in the history
  3. error: json_char → char

    Type char is known to be compatible with sprintf().
    Besides the user-provided 'error_buf' is also of type char.
    DimitriPapadopoulos committed Aug 20, 2021
    Configuration menu
    Copy the full SHA
    c1e4469 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    307ba35 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    a8334dc View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    fab533e View commit details
    Browse the repository at this point in the history

Commits on Aug 23, 2021

  1. Fix Coverity Scan defect

    CID 308347: Assignment of overlapping memory (OVERLAPPING_COPY)
    overlapping_assignment: Assigning top->u.integer to top->u.dbl,
    which have overlapping memory locations and different types.
    DimitriPapadopoulos committed Aug 23, 2021
    Configuration menu
    Copy the full SHA
    3b2c9fe View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    60fd8a7 View commit details
    Browse the repository at this point in the history
  3. Fix Coverity Scan defect

    CID 308347: Assignment of overlapping memory (OVERLAPPING_COPY)
    overlapping_assignment: Assigning top->u.integer to top->u.dbl,
    which have overlapping memory locations and different types.
    DimitriPapadopoulos committed Aug 23, 2021
    Configuration menu
    Copy the full SHA
    2e1d771 View commit details
    Browse the repository at this point in the history

Commits on Aug 28, 2021

  1. Configuration menu
    Copy the full SHA
    13faf02 View commit details
    Browse the repository at this point in the history

Commits on Aug 29, 2021

  1. Configuration menu
    Copy the full SHA
    67ceb35 View commit details
    Browse the repository at this point in the history

Commits on Sep 12, 2021

  1. Fix flake8 alerts

    DimitriPapadopoulos committed Sep 12, 2021
    Configuration menu
    Copy the full SHA
    5b44508 View commit details
    Browse the repository at this point in the history

Commits on Sep 15, 2021

  1. Executable file should be executable

    File test.py is executable in Git, yet does not start with "#!".
    DimitriPapadopoulos committed Sep 15, 2021
    Configuration menu
    Copy the full SHA
    de022c7 View commit details
    Browse the repository at this point in the history

Commits on Oct 30, 2021

  1. Configuration menu
    Copy the full SHA
    bb4135c View commit details
    Browse the repository at this point in the history
  2. Merge PR json-parser#140

    Forgot to merge this with the others...
    LB-- committed Oct 30, 2021
    Configuration menu
    Copy the full SHA
    3c6d74e View commit details
    Browse the repository at this point in the history

Commits on Oct 31, 2021

  1. Use size_t for memory size

    That's the standard over all the C standard library.
    DimitriPapadopoulos committed Oct 31, 2021
    Configuration menu
    Copy the full SHA
    ad3a2e6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fa11f53 View commit details
    Browse the repository at this point in the history
  3. Define JSON_INT_MAX

    Either it has been defined explictly, or we attempt to calculate it
    using the method reverted by fcfa748.
    
    See discussion in json-parser#84 and json-parser#102.
    DimitriPapadopoulos committed Oct 31, 2021
    Configuration menu
    Copy the full SHA
    7b12984 View commit details
    Browse the repository at this point in the history
  4. Add more checks

    DimitriPapadopoulos committed Oct 31, 2021
    Configuration menu
    Copy the full SHA
    837883f View commit details
    Browse the repository at this point in the history
  5. Valid example file was invalid!

    Fix valid-0013.json added by fab533e (json-parser#125)
    DimitriPapadopoulos committed Oct 31, 2021
    Configuration menu
    Copy the full SHA
    b4bb0cc View commit details
    Browse the repository at this point in the history
  6. num_digits: double → int

    It looks like a bad idea to compare apply to a double operators ++ and --,
    or to compare to integers.
    DimitriPapadopoulos committed Oct 31, 2021
    Configuration menu
    Copy the full SHA
    8524529 View commit details
    Browse the repository at this point in the history

Commits on Nov 2, 2021

  1. Configuration menu
    Copy the full SHA
    b9b5d53 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    24df9ad View commit details
    Browse the repository at this point in the history

Commits on Nov 3, 2021

  1. Configuration menu
    Copy the full SHA
    b10ff61 View commit details
    Browse the repository at this point in the history