Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use relative include paths (NFC) #104

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion enc/ascii.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
* SUCH DAMAGE.
*/

#include "regenc.h"
#include "../regenc.h"
#ifdef RUBY
# include "encindex.h"
#endif
Expand Down
2 changes: 1 addition & 1 deletion enc/big5.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* SUCH DAMAGE.
*/

#include "regenc.h"
#include "../regenc.h"

static const int EncLen_BIG5[] = {
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
Expand Down
2 changes: 1 addition & 1 deletion enc/cp949.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* SUCH DAMAGE.
*/

#include "regenc.h"
#include "../regenc.h"

static const int EncLen_CP949[] = {
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
Expand Down
2 changes: 1 addition & 1 deletion enc/emacs_mule.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* SUCH DAMAGE.
*/

#include "regenc.h"
#include "../regenc.h"


#define emacsmule_islead(c) ((UChar )(c) < 0x9e)
Expand Down
4 changes: 2 additions & 2 deletions enc/euc_jp.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
* SUCH DAMAGE.
*/

#include "regenc.h"
#include "../regenc.h"

#define eucjp_islead(c) ((UChar )((c) - 0xa1) > 0xfe - 0xa1)

Expand Down Expand Up @@ -500,7 +500,7 @@ static const OnigCodePoint CR_Cyrillic[] = {
/* TODO: add JIS X 0212 row 7 */
}; /* CR_Cyrillic */

#include "enc/jis/props.h"
#include "jis/props.h"

static int
property_name_to_ctype(OnigEncoding enc, const UChar* p, const UChar* end)
Expand Down
2 changes: 1 addition & 1 deletion enc/euc_kr.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* SUCH DAMAGE.
*/

#include "regenc.h"
#include "../regenc.h"

static const int EncLen_EUCKR[] = {
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
Expand Down
2 changes: 1 addition & 1 deletion enc/euc_tw.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* SUCH DAMAGE.
*/

#include "regenc.h"
#include "../regenc.h"

static const int EncLen_EUCTW[] = {
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
Expand Down
2 changes: 1 addition & 1 deletion enc/gb18030.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
* SUCH DAMAGE.
*/

#include "regenc.h"
#include "../regenc.h"

#if 1
#define DEBUG_GB18030(arg)
Expand Down
2 changes: 1 addition & 1 deletion enc/gb2312.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include <ruby/ruby.h>
#include <ruby/encoding.h>
#include "regenc.h"
#include "../regenc.h"

void
Init_gb2312(void)
Expand Down
2 changes: 1 addition & 1 deletion enc/gbk.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* SUCH DAMAGE.
*/

#include "regenc.h"
#include "../regenc.h"

static const int EncLen_GBK[] = {
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
Expand Down
2 changes: 1 addition & 1 deletion enc/iso_8859_1.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* SUCH DAMAGE.
*/

#include "regenc.h"
#include "../regenc.h"
#include "iso_8859.h"

#define ENC_IS_ISO_8859_1_CTYPE(code,ctype) \
Expand Down
2 changes: 1 addition & 1 deletion enc/iso_8859_10.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* SUCH DAMAGE.
*/

#include "regenc.h"
#include "../regenc.h"
#include "iso_8859.h"

#define ENC_ISO_8859_10_TO_LOWER_CASE(c) EncISO_8859_10_ToLowerCaseTable[c]
Expand Down
2 changes: 1 addition & 1 deletion enc/iso_8859_11.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* SUCH DAMAGE.
*/

#include "regenc.h"
#include "../regenc.h"

#define ENC_IS_ISO_8859_11_CTYPE(code,ctype) \
((EncISO_8859_11_CtypeTable[code] & CTYPE_TO_BIT(ctype)) != 0)
Expand Down
2 changes: 1 addition & 1 deletion enc/iso_8859_13.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* SUCH DAMAGE.
*/

#include "regenc.h"
#include "../regenc.h"
#include "iso_8859.h"

#define ENC_ISO_8859_13_TO_LOWER_CASE(c) EncISO_8859_13_ToLowerCaseTable[c]
Expand Down
2 changes: 1 addition & 1 deletion enc/iso_8859_14.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* SUCH DAMAGE.
*/

#include "regenc.h"
#include "../regenc.h"
#include "iso_8859.h"

#define ENC_ISO_8859_14_TO_LOWER_CASE(c) EncISO_8859_14_ToLowerCaseTable[c]
Expand Down
2 changes: 1 addition & 1 deletion enc/iso_8859_15.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* SUCH DAMAGE.
*/

#include "regenc.h"
#include "../regenc.h"
#include "iso_8859.h"

#define ENC_ISO_8859_15_TO_LOWER_CASE(c) EncISO_8859_15_ToLowerCaseTable[c]
Expand Down
2 changes: 1 addition & 1 deletion enc/iso_8859_16.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* SUCH DAMAGE.
*/

#include "regenc.h"
#include "../regenc.h"
#include "iso_8859.h"

#define ENC_ISO_8859_16_TO_LOWER_CASE(c) EncISO_8859_16_ToLowerCaseTable[c]
Expand Down
2 changes: 1 addition & 1 deletion enc/iso_8859_2.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* SUCH DAMAGE.
*/

#include "regenc.h"
#include "../regenc.h"
#include "iso_8859.h"

#define ENC_ISO_8859_2_TO_LOWER_CASE(c) EncISO_8859_2_ToLowerCaseTable[c]
Expand Down
2 changes: 1 addition & 1 deletion enc/iso_8859_3.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* SUCH DAMAGE.
*/

#include "regenc.h"
#include "../regenc.h"
#include "iso_8859.h"

#define ENC_ISO_8859_3_TO_LOWER_CASE(c) EncISO_8859_3_ToLowerCaseTable[c]
Expand Down
2 changes: 1 addition & 1 deletion enc/iso_8859_4.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* SUCH DAMAGE.
*/

#include "regenc.h"
#include "../regenc.h"
#include "iso_8859.h"

#define ENC_ISO_8859_4_TO_LOWER_CASE(c) EncISO_8859_4_ToLowerCaseTable[c]
Expand Down
2 changes: 1 addition & 1 deletion enc/iso_8859_5.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* SUCH DAMAGE.
*/

#include "regenc.h"
#include "../regenc.h"

#define ENC_ISO_8859_5_TO_LOWER_CASE(c) EncISO_8859_5_ToLowerCaseTable[c]
#define ENC_IS_ISO_8859_5_CTYPE(code,ctype) \
Expand Down
2 changes: 1 addition & 1 deletion enc/iso_8859_6.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* SUCH DAMAGE.
*/

#include "regenc.h"
#include "../regenc.h"

#define ENC_IS_ISO_8859_6_CTYPE(code,ctype) \
((EncISO_8859_6_CtypeTable[code] & CTYPE_TO_BIT(ctype)) != 0)
Expand Down
2 changes: 1 addition & 1 deletion enc/iso_8859_7.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* SUCH DAMAGE.
*/

#include "regenc.h"
#include "../regenc.h"

#define ENC_ISO_8859_7_TO_LOWER_CASE(c) EncISO_8859_7_ToLowerCaseTable[c]
#define ENC_IS_ISO_8859_7_CTYPE(code,ctype) \
Expand Down
2 changes: 1 addition & 1 deletion enc/iso_8859_8.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* SUCH DAMAGE.
*/

#include "regenc.h"
#include "../regenc.h"

#define ENC_IS_ISO_8859_8_CTYPE(code,ctype) \
((EncISO_8859_8_CtypeTable[code] & CTYPE_TO_BIT(ctype)) != 0)
Expand Down
2 changes: 1 addition & 1 deletion enc/iso_8859_9.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* SUCH DAMAGE.
*/

#include "regenc.h"
#include "../regenc.h"
#include "iso_8859.h"

#define ENC_ISO_8859_9_TO_LOWER_CASE(c) EncISO_8859_9_ToLowerCaseTable[c]
Expand Down
2 changes: 1 addition & 1 deletion enc/koi8_r.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* SUCH DAMAGE.
*/

#include "regenc.h"
#include "../regenc.h"

#define ENC_KOI8_R_TO_LOWER_CASE(c) EncKOI8_R_ToLowerCaseTable[c]
#define ENC_IS_KOI8_R_CTYPE(code,ctype) \
Expand Down
2 changes: 1 addition & 1 deletion enc/koi8_u.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* SUCH DAMAGE.
*/

#include "regenc.h"
#include "../regenc.h"

#define ENC_KOI8_U_TO_LOWER_CASE(c) EncKOI8_U_ToLowerCaseTable[c]
#define ENC_IS_KOI8_U_CTYPE(code,ctype) \
Expand Down
2 changes: 1 addition & 1 deletion enc/mktable.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

#include <ctype.h>

#include "regenc.h"
#include "../regenc.h"

#define ASCII 0
#define UNICODE_ISO_8859_1 1
Expand Down
4 changes: 2 additions & 2 deletions enc/shift_jis.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
* SUCH DAMAGE.
*/

#include "regenc.h"
#include "../regenc.h"

static const int EncLen_SJIS[] = {
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
Expand Down Expand Up @@ -487,7 +487,7 @@ static const OnigCodePoint CR_Cyrillic[] = {
0x8480, 0x8491,
}; /* CR_Cyrillic */

#include "enc/jis/props.h"
#include "jis/props.h"

static int
property_name_to_ctype(OnigEncoding enc, const UChar* p, const UChar* end)
Expand Down
6 changes: 3 additions & 3 deletions enc/unicode.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* SUCH DAMAGE.
*/

#include "regint.h"
#include "../regint.h"

#define ONIGENC_IS_UNICODE_ISO_8859_1_CTYPE(code,ctype) \
((EncUNICODE_ISO_8859_1_CtypeTable[code] & CTYPE_TO_BIT(ctype)) != 0)
Expand Down Expand Up @@ -162,7 +162,7 @@ code3_equal(const OnigCodePoint *x, const OnigCodePoint *y)
#define I(n) OnigSpecialIndexEncode(n)
#define L(n) SpecialsLengthEncode(n)

#include "casefold.h"
#include "unicode/casefold.h"

#undef U
#undef D
Expand All @@ -174,7 +174,7 @@ code3_equal(const OnigCodePoint *x, const OnigCodePoint *y)
#undef I
#undef L

#include "name2ctype.h"
#include "unicode/name2ctype.h"

#define CODE_RANGES_NUM numberof(CodeRanges)

Expand Down
2 changes: 1 addition & 1 deletion enc/us_ascii.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "regenc.h"
#include "../regenc.h"
#ifdef RUBY
# include "encindex.h"
#endif
Expand Down
2 changes: 1 addition & 1 deletion enc/utf_16be.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* SUCH DAMAGE.
*/

#include "regenc.h"
#include "../regenc.h"
#include "iso_8859.h"

#if 0
Expand Down
2 changes: 1 addition & 1 deletion enc/utf_16le.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* SUCH DAMAGE.
*/

#include "regenc.h"
#include "../regenc.h"
#include "iso_8859.h"

#if 0
Expand Down
2 changes: 1 addition & 1 deletion enc/utf_32be.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* SUCH DAMAGE.
*/

#include "regenc.h"
#include "../regenc.h"
#include "iso_8859.h"

static OnigCodePoint utf32be_mbc_to_code(const UChar* p, const UChar* end, OnigEncoding enc);
Expand Down
2 changes: 1 addition & 1 deletion enc/utf_32le.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* SUCH DAMAGE.
*/

#include "regenc.h"
#include "../regenc.h"
#include "iso_8859.h"

static OnigCodePoint utf32le_mbc_to_code(const UChar* p, const UChar* end, OnigEncoding enc);
Expand Down
2 changes: 1 addition & 1 deletion enc/utf_8.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* SUCH DAMAGE.
*/

#include "regenc.h"
#include "../regenc.h"
#ifdef RUBY
# include "encindex.h"
#endif
Expand Down
2 changes: 1 addition & 1 deletion enc/windows_1250.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
* SUCH DAMAGE.
*/

#include "regenc.h"
#include "../regenc.h"
#include "iso_8859.h"

#define ENC_CP1250_TO_LOWER_CASE(c) EncCP1250_ToLowerCaseTable[c]
Expand Down
2 changes: 1 addition & 1 deletion enc/windows_1251.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
* SUCH DAMAGE.
*/

#include "regenc.h"
#include "../regenc.h"

#define ENC_CP1251_TO_LOWER_CASE(c) EncCP1251_ToLowerCaseTable[c]
#define ENC_IS_CP1251_CTYPE(code,ctype) \
Expand Down
2 changes: 1 addition & 1 deletion enc/windows_1252.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
* SUCH DAMAGE.
*/

#include "regenc.h"
#include "../regenc.h"
#include "iso_8859.h"

#define ENC_CP1252_TO_LOWER_CASE(c) EncCP1252_ToLowerCaseTable[c]
Expand Down
2 changes: 1 addition & 1 deletion enc/windows_1253.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
* Link: http://en.wikipedia.org/wiki/Windows-1253
*/

#include "regenc.h"
#include "../regenc.h"

#define ENC_CP1253_TO_LOWER_CASE(c) EncCP1253_ToLowerCaseTable[c]
#define ENC_IS_CP1253_CTYPE(code,ctype) \
Expand Down
Loading