diff options
author | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-25 15:13:14 +0000 |
---|---|---|
committer | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-25 15:13:14 +0000 |
commit | d0233291bc8a5068e52c69c210e5979e5324b5bc (patch) | |
tree | 7d9459449c33792c63eeb7baa071e76352e0baab /trunk/ext/nkf/nkf-utf8/nkf.h | |
parent | 0dc342de848a642ecce8db697b8fecd83a63e117 (diff) | |
parent | 72eaacaa15256ab95c3b52ea386f88586fb9da40 (diff) |
re-adding tag v1_9_0_4 as an alias of trunk@18848v1_9_0_4
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/tags/v1_9_0_4@18849 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'trunk/ext/nkf/nkf-utf8/nkf.h')
-rw-r--r-- | trunk/ext/nkf/nkf-utf8/nkf.h | 174 |
1 files changed, 0 insertions, 174 deletions
diff --git a/trunk/ext/nkf/nkf-utf8/nkf.h b/trunk/ext/nkf/nkf-utf8/nkf.h deleted file mode 100644 index 1dbae54f20..0000000000 --- a/trunk/ext/nkf/nkf-utf8/nkf.h +++ /dev/null @@ -1,174 +0,0 @@ -/* - * - * nkf.h - Header file for nkf - * - * $Id$ - */ - -#ifndef NKF_H - -/* Wrapper of configurations */ - -#ifndef MIME_DECODE_DEFAULT -#define MIME_DECODE_DEFAULT STRICT_MIME -#endif -#ifndef X0201_DEFAULT -#define X0201_DEFAULT TRUE -#endif - -#if DEFAULT_NEWLINE == 0x0D0A -#define PUT_NEWLINE(func) do {\ - func(0x0D);\ - func(0x0A);\ -} while (0) -#define OCONV_NEWLINE(func) do {\ - func(0, 0x0D);\ - func(0, 0x0A);\ -} while (0) -#elif DEFAULT_NEWLINE == 0x0D -#define PUT_NEWLINE(func) func(0x0D) -#define OCONV_NEWLINE(func) func(0, 0x0D) -#else -#define DEFAULT_NEWLINE 0x0A -#define PUT_NEWLINE(func) func(0x0A) -#define OCONV_NEWLINE(func) func(0, 0x0A) -#endif -#ifdef HELP_OUTPUT_STDERR -#define HELP_OUTPUT stderr -#else -#define HELP_OUTPUT stdout -#endif - - -/* Compatibility definitions */ - -#ifdef nkf_char -#elif defined(INT_IS_SHORT) -typedef long nkf_char; -#define NKF_INT32_C(n) (n##L) -#else -typedef int nkf_char; -#define NKF_INT32_C(n) (n) -#endif - -#if (defined(__TURBOC__) || defined(_MSC_VER) || defined(LSI_C) || defined(__MINGW32__) || defined(__EMX__) || defined(__MSDOS__) || defined(__WINDOWS__) || defined(__DOS__) || defined(__OS2__)) && !defined(MSDOS) -#define MSDOS -#if (defined(__Win32__) || defined(_WIN32)) && !defined(__WIN32__) -#define __WIN32__ -#endif -#endif - -#ifdef PERL_XS -#undef OVERWRITE -#endif - -#ifndef PERL_XS -#include <stdio.h> -#endif - -#include <stdlib.h> -#include <string.h> - -#if defined(MSDOS) || defined(__OS2__) -#include <fcntl.h> -#include <io.h> -#if defined(_MSC_VER) || defined(__WATCOMC__) -#define mktemp _mktemp -#endif -#endif - -#ifdef MSDOS -#ifdef LSI_C -#define setbinmode(fp) fsetbin(fp) -#elif defined(__DJGPP__) -#include <libc/dosio.h> -void setbinmode(FILE *fp) -{ - /* we do not use libc's setmode(), which changes COOKED/RAW mode in device. */ - int fd, m; - fd = fileno(fp); - m = (__file_handle_modes[fd] & (~O_TEXT)) | O_BINARY; - __file_handle_set(fd, m); -} -#else /* Microsoft C, Turbo C */ -#define setbinmode(fp) setmode(fileno(fp), O_BINARY) -#endif -#else /* UNIX */ -#define setbinmode(fp) -#endif - -#ifdef _IOFBF /* SysV and MSDOS, Windows */ -#define setvbuffer(fp, buf, size) setvbuf(fp, buf, _IOFBF, size) -#else /* BSD */ -#define setvbuffer(fp, buf, size) setbuffer(fp, buf, size) -#endif - -/*Borland C++ 4.5 EasyWin*/ -#if defined(__TURBOC__) && defined(_Windows) && !defined(__WIN32__) /*Easy Win */ -#define EASYWIN -#ifndef __WIN16__ -#define __WIN16__ -#endif -#include <windows.h> -#endif - -#ifdef OVERWRITE -/* added by satoru@isoternet.org */ -#if defined(__EMX__) -#include <sys/types.h> -#endif -#include <sys/stat.h> -#if !defined(MSDOS) || defined(__DJGPP__) /* UNIX, djgpp */ -#include <unistd.h> -#if defined(__WATCOMC__) -#include <sys/utime.h> -#else -#include <utime.h> -#endif -#else /* defined(MSDOS) */ -#ifdef __WIN32__ -#ifdef __BORLANDC__ /* BCC32 */ -#include <utime.h> -#else /* !defined(__BORLANDC__) */ -#include <sys/utime.h> -#endif /* (__BORLANDC__) */ -#else /* !defined(__WIN32__) */ -#if defined(_MSC_VER) || defined(__MINGW32__) || defined(__WATCOMC__) || defined(__OS2__) || defined(__EMX__) || defined(__IBMC__) || defined(__IBMCPP__) /* VC++, MinGW, Watcom, emx+gcc, IBM VAC++ */ -#include <sys/utime.h> -#elif defined(__TURBOC__) /* BCC */ -#include <utime.h> -#elif defined(LSI_C) /* LSI C */ -#endif /* (__WIN32__) */ -#endif -#endif -#endif - -#ifdef DEFAULT_CODE_LOCALE - -#ifndef __WIN32__ /* not win32 is posix */ -#ifndef HAVE_LANGINFO_H -#define HAVE_LANGINFO_H -#endif -#ifndef HAVE_LOCALE_H -#define HAVE_LOCALE_H -#endif -#endif - -#ifdef HAVE_LANGINFO_H -#include <langinfo.h> -#endif -#ifdef HAVE_LOCALE_H -#include <locale.h> -#endif - -#endif /* DEFAULT_CODE_LOCALE */ - -#define FALSE 0 -#define TRUE 1 - -#ifdef WIN32DLL -#include "nkf32.h" -#endif - -#endif /* NKF_H */ - |