Nantes Université

Skip to content
Extraits de code Groupes Projets
  1. mars 30, 2022
  2. mars 29, 2022
    • Sumit Bhardwaj's avatar
      Adding building using CMake (#81) · c837314c
      Sumit Bhardwaj a rédigé
      This commit adds an option to build using CMake by adding
      CMakeLists.txt. CMake builds are consistent with the builds currently
      produced.
      
      For Linux build, CPack produces artifacts consistent with the current
      RPM specification.
      
      CMake is also added to the CI pipeline in main.yml.
  3. sept. 01, 2021
    • qykth-git's avatar
      Replace obsolete C++ API (#71) · f1840ee9
      qykth-git a rédigé
      * Use "nullptr" instead of "NULL"
      
      * Cosmetic fix
      
      * bind2nd() and ptr_fun<>() is removed since C++17
      
      bind2nd() and ptr_fun<>() are deprecated in C++11, and removed in C++17.
      These functions are not available in LLVM's "libc++".
      Use C++11 lambda expressions for them.
      
      * Break long lines
      
      * Add missing header for std::iswspace()
  4. août 26, 2021
  5. août 23, 2021
    • qykth-git's avatar
      Compiler warnings fix (#64) · f14d961d
      qykth-git a rédigé
      * Enable warnings
      
      * Work without "-fpermissive" option
      
      * Cosmetic fix
      
      * Add "const" to fix warnings
      
      These strings are not needs to modify.
      
      * No need to use "#pragma once" in main C++ source file
      
      * Cosmetic fix
      
      Add newline to end
      
      * Return nullptr if error
      
      * delete() not works for "void*"
      
      Cast specific type to use delete()
      
      * Disable VC++ specific pragmas for other C++ compilers
      
      * Fix warning
      
      * Fix warning
      
      * Use pipeline for compiler
      
      * Enable code optimization
      
      * Add "default:" to fix "switch" syntax warning
      
      * Use "nullptr" for null pointer
      
      * Use nullptr instead of NULL
      
      * Use nullptr instead of NULL
      
      * Use "L" notation for wide character
      
      * Use C++ header instead of raw C header
  6. fév. 24, 2021
  7. sept. 15, 2018
  8. avr. 25, 2018
  9. nov. 10, 2017
    • Cleber Rosa's avatar
      GNU/Linux build improvements (#20) · a15737b6
      Cleber Rosa a rédigé
      
      * Makefile: add clean target
      
      While working on pict, it's useful to get a clean state.  This clean
      target removes the target binary and output generated by a self test
      execution (make test).
      
      Signed-off-by: default avatarCleber Rosa <crosa@redhat.com>
      
      * Makefile: allow parallelization of build
      
      The current rule for building pict is based on a single command
      execution, which makes faster builds leveraging parallel execution
      impossible.
      
      This change introduces the objects that are required to build pict,
      and relies on implicit rules to turn the ".cpp" files into the object
      files.
      
      After these changes, a command such as "make -j8" shows the benefits
      of this change.
      
      Signed-off-by: default avatarCleber Rosa <crosa@redhat.com>
      
      * api/pictapi.h: use default calling convention when using gcc
      
      gcc doesn't understand the __stdcall calling convention.  Let's
      use its default when using it as a compiler.
      
      Signed-off-by: default avatarCleber Rosa <crosa@redhat.com>
      
      * Makefile: relax a bit more the compiler options
      
      I reckon that pict should be compiled with all warnings enabled,
      and all warnings being treated as errors.  This is actually the goal
      of other changes to be proposed soon.
      
      For now, some code, such as naming attributes with the same name as
      previously declared types is not really welcomed by some compilers
      such as GCC, being considered "nonconformant code".
      
      Since changes to fix this would bring changes to the pict API, let's
      keep things simple and simply allow the unchanged code to build on
      other compilers such as GCC.
      
      Signed-off-by: default avatarCleber Rosa <crosa@redhat.com>
      
      * Makefile: use default compiler set on system
      
      Users can choose selected compiler by setting the "CXX" environment
      variable or by editting the Makefile.
      
      Let's not hardcode a particular compiler, now that both clang and gcc
      can be used to compile pict.
      
      Signed-off-by: default avatarCleber Rosa <crosa@redhat.com>
      
      * Makefile: make test depend on target being built
      
      Signed-off-by: default avatarCleber Rosa <crosa@redhat.com>
      
      * Makefile: add source target
      
      It's useful to generate a snapshot of the current state of the GIT
      repo.  Let's add a target that generates a tarball using git-archive
      using a naming convention that makes it easy to trace to the commit
      that generated this snapshot.
      
      This format also happens to be well suitable for using the source
      tarball when packaging it in RPM format.
      
      Signed-off-by: default avatarCleber Rosa <crosa@redhat.com>
      a15737b6
  10. jan. 19, 2016
  11. déc. 11, 2015
  12. nov. 19, 2015
  13. oct. 16, 2015
Chargement en cours