History log of /haiku/src/bin/setmime.cpp
Revision Date Author Comments
# f35fc7eb 17-Nov-2021 Augustin Cavalier <waddlesplash@gmail.com>

Remove some dynamic exception specifiers.

GCC 11 does not like them, and GCC 2 does not seem to care.


# 4a1d8b1a 16-Jul-2019 Adrien Destugues <pulkomandy@pulkomandy.tk>

PVS V575: strange values passed to well known functions

Change-Id: Id6008d93777f860d0b341bcd012fe6f86c99cf35
Reviewed-on: https://review.haiku-os.org/c/1610
Reviewed-by: Stephan Aßmus <superstippi@gmx.de>


# 66fdfe32 25-Jul-2015 Jérôme Duval <jerome.duval@gmail.com>

setmime: hash() conflicts with std::hash.

* found with GCC6


# 3aeed660 07-Aug-2014 Jérôme Duval <jerome.duval@gmail.com>

include strings.h where appriopriate...

instead or additionally to string.h, in preparation for functions move.
* moves str[n]casecmp() functions and others to strings.h.
* strings.h doesn't include string.h anymore.
* this solves #10949


# 0d75239f 05-Apr-2013 Siarzhuk Zharski <zharik@gmx.li>

Fix CID991133: Same if expression was duplicated


# ab6114fe 12-Feb-2013 Siarzhuk Zharski <zharik@gmx.li>

Fix init.problem in setmime MimeAttribute ctor

* additional check for empty attribute values introduced;
* implemented copy-ctor and assignment operator for MimeAttribute;
* added missed initialization of parameters in the "UserArgs"
MimeAttribute ctor;
* Fixes #9444.


# d9744a0d 02-Feb-2012 Siarzhuk Zharski <zharik@gmx.li>

[Coverity] Restore std::cout flags and MimeAttr ctor. inits

* Restore std::cout flags (CID11245, CID11246) after using hexadecimal
and zero-filled flags;
* Fix uninit MimeAttribute::fStatus field in one ctor. CID11292.


# 099d5afd 15-Dec-2011 Aleksas Pantechovskis <alexp.frl@gmail.com>

Second part of 'setmime' implementation is completed

* Support for bitmap and vector icons added;
* Attribute type representation is improved;
* Fixed problem with current attributes loading;
* sniffer rule checking fixed;
* supress useless lines in -dumpIcons and -dumpSniffRules for MIME types
without icons and sniffer rules correspondently.

Signed-off-by: Siarzhuk Zharski <zharik@gmx.li>


# e9c0da34 06-Dec-2011 Aleksas Pantechovskis <alexp.frl@gmail.com>

Haiku clone of the BeOS setmime tool added
* This tool was created and implemented in draft during GCI 2011
by Aleksas Pantechovskis, <alexp.frl@gmail.com>;
* Later it was heavily refactored and optimized to Haiku Coding
Standards by Siarzhuk Zharski;
* Icons support still missing;
* Thank you for the contribution, Aleksas!

Signed-off-by: Siarzhuk Zharski <zharik@gmx.li>


# 66fdfe327035ca1df9eb10926aa084392e648eb7 25-Jul-2015 Jérôme Duval <jerome.duval@gmail.com>

setmime: hash() conflicts with std::hash.

* found with GCC6


# 3aeed6607cd07762c0e709633c012b3a632dbad9 07-Aug-2014 Jérôme Duval <jerome.duval@gmail.com>

include strings.h where appriopriate...

instead or additionally to string.h, in preparation for functions move.
* moves str[n]casecmp() functions and others to strings.h.
* strings.h doesn't include string.h anymore.
* this solves #10949


# 0d75239fb716d4a47defb3e8e18994d5dcebdafe 05-Apr-2013 Siarzhuk Zharski <zharik@gmx.li>

Fix CID991133: Same if expression was duplicated


# ab6114fe81eb08864858dbab96e5d55cadbe8e8b 12-Feb-2013 Siarzhuk Zharski <zharik@gmx.li>

Fix init.problem in setmime MimeAttribute ctor

* additional check for empty attribute values introduced;
* implemented copy-ctor and assignment operator for MimeAttribute;
* added missed initialization of parameters in the "UserArgs"
MimeAttribute ctor;
* Fixes #9444.


# d9744a0dfc72d99e9a89493c2658eb7027514b3c 02-Feb-2012 Siarzhuk Zharski <zharik@gmx.li>

[Coverity] Restore std::cout flags and MimeAttr ctor. inits

* Restore std::cout flags (CID11245, CID11246) after using hexadecimal
and zero-filled flags;
* Fix uninit MimeAttribute::fStatus field in one ctor. CID11292.


# 099d5afd119fdc8e63198bdd96c543fbf669180b 15-Dec-2011 Aleksas Pantechovskis <alexp.frl@gmail.com>

Second part of 'setmime' implementation is completed

* Support for bitmap and vector icons added;
* Attribute type representation is improved;
* Fixed problem with current attributes loading;
* sniffer rule checking fixed;
* supress useless lines in -dumpIcons and -dumpSniffRules for MIME types
without icons and sniffer rules correspondently.

Signed-off-by: Siarzhuk Zharski <zharik@gmx.li>


# e9c0da3452228f332bbbe0ebd949aedc06b5a1d5 06-Dec-2011 Aleksas Pantechovskis <alexp.frl@gmail.com>

Haiku clone of the BeOS setmime tool added
* This tool was created and implemented in draft during GCI 2011
by Aleksas Pantechovskis, <alexp.frl@gmail.com>;
* Later it was heavily refactored and optimized to Haiku Coding
Standards by Siarzhuk Zharski;
* Icons support still missing;
* Thank you for the contribution, Aleksas!

Signed-off-by: Siarzhuk Zharski <zharik@gmx.li>