$(srcdir)/src/codegen/print.cc \
$(srcdir)/src/codegen/scc.cc \
$(srcdir)/src/codegen/skeleton/skeleton.cc \
- $(srcdir)/src/codegen/translate.cc \
$(srcdir)/src/dfa/encoding/enc.cc \
$(srcdir)/src/dfa/encoding/range_suffix.cc \
$(srcdir)/src/dfa/encoding/utf16/utf16.cc \
namespace re2c
{
+char octCh(uint32_t c)
+{
+ return '0' + c % 8;
+}
+
+char hexCh(uint32_t c)
+{
+ static const char * sHex = "0123456789ABCDEF";
+ return sHex[c & 0x0F];
+}
+
void prtChOrHex(std::ostream& o, uint32_t c)
{
if (!encoding.is(Enc::EBCDIC) && (c < 256u) && (isprint(c) || isspace(c)))
namespace re2c
{
+char octCh(uint32_t c);
+char hexCh(uint32_t c);
void prtCh(std::ostream&, uint32_t);
void prtHex(std::ostream&, uint32_t);
void prtChOrHex(std::ostream&, uint32_t);
+++ /dev/null
-/* $Id$ */
-#include "src/globals.h"
-
-namespace re2c
-{
-
-char octCh(uint32_t c)
-{
- return '0' + c % 8;
-}
-
-static const char * sHex = "0123456789ABCDEF";
-
-char hexCh(uint32_t c)
-{
- return sHex[c & 0x0F];
-}
-
-} // end namespace re2c
extern Enc encoding;
extern InputAPI input_api;
-extern char octCh(uint32_t c);
-extern char hexCh(uint32_t c);
-
} // end namespace re2c
#endif