Skip to content

Commit

Permalink
Remove definiton of strchr
Browse files Browse the repository at this point in the history
  • Loading branch information
ra3xdh committed Jul 5, 2024
1 parent 6a2305a commit 1a6295c
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 31 deletions.
10 changes: 3 additions & 7 deletions src/compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*
* You should have received a copy of the GNU General Public License
* along with this package; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor,
* Boston, MA 02110-1301, USA.
* Boston, MA 02110-1301, USA.
*
* $Id$
*
Expand All @@ -29,10 +29,6 @@
# include <ieeefp.h>
#endif

#if !HAVE_STRCHR
# define strchr index
# define strrchr rindex
#endif

#if defined(_WIN32) & not defined(__MINGW32__)
#define strcasecmp stricmp
Expand Down
4 changes: 0 additions & 4 deletions src/converter/scan_spice.lpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@
#include "check_spice.h"
#include "parse_spice.hpp"

#if !HAVE_STRCHR
# define strchr index
# define strrchr rindex
#endif

/* fixing invalid identifiers */
static void spice_fix_identifier (char * ident) {
Expand Down
4 changes: 0 additions & 4 deletions src/converter/scan_vcd.lpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,6 @@
#include "check_vcd.h"
#include "parse_vcd.hpp"

#if !HAVE_STRCHR
# define strchr index
# define strrchr rindex
#endif

%}

Expand Down
4 changes: 0 additions & 4 deletions src/matvec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,6 @@
#include "matrix.h"
#include "matvec.h"

#if !HAVE_STRCHR
# define strchr index
# define strrchr rindex
#endif

namespace qucs {

Expand Down
4 changes: 0 additions & 4 deletions src/scan_mdl.lpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@
#include "check_mdl.h"
#include "parse_mdl.hpp"

#if !HAVE_STRCHR
# define strchr index
# define strrchr rindex
#endif

using namespace qucs;

Expand Down
4 changes: 0 additions & 4 deletions src/scan_netlist.lpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,6 @@
#include "check_netlist.h"
#include "parse_netlist.hpp"

#if !HAVE_STRCHR
# define strchr index
# define strrchr rindex
#endif

using namespace qucs;

Expand Down
4 changes: 0 additions & 4 deletions src/scan_zvr.lpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@
#include "check_zvr.h"
#include "parse_zvr.hpp"

#if !HAVE_STRCHR
# define strchr index
# define strrchr rindex
#endif

using namespace qucs;

Expand Down

0 comments on commit 1a6295c

Please sign in to comment.