diff options
author | epetrich <epetrich@4a8a32a2-be11-0410-ad9d-d568d2c75423> | 2022-11-30 04:34:37 +0000 |
---|---|---|
committer | epetrich <epetrich@4a8a32a2-be11-0410-ad9d-d568d2c75423> | 2022-11-30 04:34:37 +0000 |
commit | c11cae897a8da8bcfb979e98bc3f39ffdcb3e742 (patch) | |
tree | 8daa51ae12436a2c2ba1c8a1e47a89146dd90c4d /support/cpp/libcpp | |
parent | 415f7b9caa39f253795302e71bedca802e9f49cf (diff) |
* support/cpp/gcc/gcc.cc,
support/cpp/gcc/opts.cc,
support/cpp/gcc/opts-common.cc,
support/cpp/gcc/opts-global.cc,
support/cpp/gcc/prefix.cc,
support/cpp/gcc/toplev.cc,
support/cpp/libcpp/lex.cc,
support/cpp/libcpp/mkdeps.cc,
support/cpp/gcc/c-family/c-opts.cc,
support/cpp/gcc/c-family/c-ppoutput.cc:
Possible fix for bug #3524
git-svn-id: http://svn.code.sourceforge.net/p/sdcc/code/trunk/sdcc@13760 4a8a32a2-be11-0410-ad9d-d568d2c75423
Diffstat (limited to 'support/cpp/libcpp')
-rw-r--r-- | support/cpp/libcpp/lex.cc | 8 | ||||
-rw-r--r-- | support/cpp/libcpp/mkdeps.cc | 5 |
2 files changed, 4 insertions, 9 deletions
diff --git a/support/cpp/libcpp/lex.cc b/support/cpp/libcpp/lex.cc index 7f5e44833..46bb3e90d 100644 --- a/support/cpp/libcpp/lex.cc +++ b/support/cpp/libcpp/lex.cc @@ -23,12 +23,8 @@ along with this program; see the file COPYING3. If not see #include "system.h" #include "cpplib.h" #include "internal.h" -#include <map> -#include <iostream> -#include <cassert> -#define untested() ( std::cerr << "@@#\n@@@:"<< __FILE__ << ":"<< __LINE__ \ - <<":" << __func__ << "\n" ) +#define untested() { fprintf (stderr, "@@#\n@@@:%s:%d:%s\n", __FILE__, __LINE__, __func__); } enum spell_type { @@ -2802,7 +2798,7 @@ copy_text_chars (unsigned char *dest, const unsigned char *src, unsigned int len for (p = src; p != src + len; ++p) { - assert(*p != '\0'); + gcc_assert(*p != '\0'); if (*p != '\r') { diff --git a/support/cpp/libcpp/mkdeps.cc b/support/cpp/libcpp/mkdeps.cc index 2fdec84b0..57efbd768 100644 --- a/support/cpp/libcpp/mkdeps.cc +++ b/support/cpp/libcpp/mkdeps.cc @@ -25,9 +25,8 @@ along with this program; see the file COPYING3. If not see #include "system.h" #include "mkdeps.h" #include "internal.h" -#include <iostream> -#define untested() ( std::cerr << "@@#\n@@@:"<< __FILE__ << ":"<< __LINE__ \ - <<":" << __func__ << "\n" ) + +#define untested() { fprintf (stderr, "@@#\n@@@:%s:%d:%s\n", __FILE__, __LINE__, __func__); } /* Not set up to just include std::vector et al, here's a simple implementation. */ |