Nantes Université

Skip to content
Extraits de code Groupes Projets
  1. oct. 23, 2021
  2. 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()
      f1840ee9
  3. août 30, 2021
  4. août 26, 2021
    • qykth-git's avatar
      Multi byte char support for non-ASCII path name (#65) · 478f74d8
      qykth-git a rédigé
      * Use "L" notation for wide character
      
      * Remove unneeded cast
      
      PrintMessage() now uses const pointer
      
      * C++11 accepts std::string for std::wifstream
      
      * C++11 accepts std::string for std::wifstream
      
      * Use mbstowcs()/wcstombs() to convert character class
      
      This fix works when file path includes non-ASCII characters.
      
      * Revert "Use mbstowcs()/wcstombs() to convert character class"
      
      This reverts commit 7fd150a1570b8d6de246da352688daaeadcda998.
      
      mbstowcs()/wcstombs() is not so secure, and recommends mbstowcs_s()/wcstombs_s().
      But these secure variants are not supported by some C libraries.
      478f74d8
    • Jacek Czerwonka's avatar
      Fixing a bunch of enum-related warnings (#69) · 271bf4f3
      Jacek Czerwonka a rédigé
      * Fixing DataType enum warnings
      
      * Fixing enum warnings in ValidationErrType, TokenType, Relation, TermDataType, SyntaxErrType
      
      * Fix one last warning
      271bf4f3
    • Jacek Czerwonka's avatar
      Enum1 (#68) · baaae8f6
      Jacek Czerwonka a rédigé
      * Fix warning about the array delete
      
      * Fix ErrorCode enum
      
      * Fixing unintalized vars
      baaae8f6
    • Jacek Czerwonka's avatar
      More fixes to enum-related warnings (#67) · d3efe9d6
      Jacek Czerwonka a rédigé
      * Fix warnings pertaining to EncodingType.
      
      * More fixes to enum related warnings
      d3efe9d6
    • Jacek Czerwonka's avatar
      2eda159d
  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
      f14d961d
  6. août 16, 2021
  7. août 11, 2021
    • qykth-git's avatar
      Revert from multi-byte I/O to UTF-8 I/O (#61) · 55890379
      qykth-git a rédigé
      Multi-byte I/O dose too match for text input in some locale.
      
      For example, "," in numbers treat as decimal separator, not word separator.
      This makes "1,234" as "1234", not "1" and "234".
      
      Use "C.UTF-8" to avoid this problem.
      55890379
    • qykth-git's avatar
      UTF- 8/ANSI input support for Unix (#60) · 4c9d411a
      qykth-git a rédigé
      * Use UTF-8 for multi-byte character I/O everywhare
      
      This fix is required for "libstdc++".
      Without this fix, "libstdc++" only works for 7bit ASCII.
      
      It fixes https://github.com/microsoft/pict/issues/24 .
      
      * Use current locale instead of fixed UTF-8 locale
      
      It is good for non-UTF-8 (ANSI/OEM) encoding input.
      Use environment variable "LANG" or "LC_CTYPE" to change input encoding.
      
      (example)
      $ LC_CTYPE="C.UTF-8" pict utf8-input.txt
      
      * Add document for non-ASCII (UTF-8/ANSI) input encoding
      4c9d411a
  8. mars 17, 2021
  9. fév. 28, 2021
  10. fév. 24, 2021
  11. fév. 12, 2021
Chargement en cours