1 |
/* Coding system handler (conversion, detection, and etc). |
/* Coding system handler (conversion, detection, and etc). |
2 |
Copyright (C) 1995, 1997, 1998 Electrotechnical Laboratory, JAPAN. |
Copyright (C) 1995, 1997, 1998 Electrotechnical Laboratory, JAPAN. |
3 |
Licensed to the Free Software Foundation. |
Licensed to the Free Software Foundation. |
4 |
Copyright (C) 2001 Free Software Foundation, Inc. |
Copyright (C) 2001, 2002 Free Software Foundation, Inc. |
5 |
Copyright (C) 2001, 2002 |
Copyright (C) 2001, 2002 |
6 |
National Institute of Advanced Industrial Science and Technology (AIST) |
National Institute of Advanced Industrial Science and Technology (AIST) |
7 |
Registration Number H13PRO009 |
Registration Number H13PRO009 |
4982 |
eol_type = CODING_ID_EOL_TYPE (coding->id); |
eol_type = CODING_ID_EOL_TYPE (coding->id); |
4983 |
if (eol_seen & EOL_SEEN_LF) |
if (eol_seen & EOL_SEEN_LF) |
4984 |
coding->id = CODING_SYSTEM_ID (AREF (eol_type, 0)); |
coding->id = CODING_SYSTEM_ID (AREF (eol_type, 0)); |
4985 |
else if (eol_type & EOL_SEEN_CRLF) |
else if (eol_seen & EOL_SEEN_CRLF) |
4986 |
coding->id = CODING_SYSTEM_ID (AREF (eol_type, 1)); |
coding->id = CODING_SYSTEM_ID (AREF (eol_type, 1)); |
4987 |
else if (eol_type & EOL_SEEN_CR) |
else if (eol_seen & EOL_SEEN_CR) |
4988 |
coding->id = CODING_SYSTEM_ID (AREF (eol_type, 2)); |
coding->id = CODING_SYSTEM_ID (AREF (eol_type, 2)); |
4989 |
} |
} |
4990 |
|
|