diff -ur NExT_TypeC0.10.org/affix.h NExT_TypeC0.10/affix.h
--- NExT_TypeC0.10.org/affix.h	2004-02-23 18:40:38.000000000 +0900
+++ NExT_TypeC0.10/affix.h	2005-11-27 01:45:09.000000000 +0900
@@ -351,4 +351,5 @@
 		corrent = corrent->next;
 	}
 }
-#endif
\ ファイル末尾に改行がありません
+#endif
+
diff -ur NExT_TypeC0.10.org/chk_code.h NExT_TypeC0.10/chk_code.h
--- NExT_TypeC0.10.org/chk_code.h	2004-02-23 18:40:39.000000000 +0900
+++ NExT_TypeC0.10/chk_code.h	2005-11-27 01:45:09.000000000 +0900
@@ -158,4 +158,5 @@
 	return code;
 }
 
-#endif
\ ファイル末尾に改行がありません
+#endif
+
diff -ur NExT_TypeC0.10.org/config.h NExT_TypeC0.10/config.h
--- NExT_TypeC0.10.org/config.h	2004-02-24 15:34:07.000000000 +0900
+++ NExT_TypeC0.10/config.h	2005-11-27 15:11:25.000000000 +0900
@@ -186,7 +186,7 @@
 	Matcher reg_eq(eq, temp, error, status);
 	
 
-	conf_file.open(conf_fname, ios::in | ios::nocreate );
+	conf_file.open(conf_fname, ios::in );
 	if(!conf_file){
 		cout << conf_fname << "がありません" << endl;
 		exit(1);
@@ -374,7 +374,7 @@
 	ICU_Converter in(encode);
 	Pattern pt1(reg1, error, status);
 	
-	tol_file.open(tol_fname, ios::in | ios::nocreate );
+	tol_file.open(tol_fname, ios::in );
 	if(!tol_file){
 		cout << tol_fname << "がありません" << endl;
 		exit(1);
@@ -391,13 +391,14 @@
 		}	
 	}
 	tol_file.close();
-	tol_file2.open(tol_fname, ios::in | ios::nocreate );
+	tol_file2.open(tol_fname, ios::in );
 	(*conf).tol_size = line_num;
 	if(line_num > 0){
 		(*conf).tol_type = new TOL[line_num];
 		while(!tol_file2.eof() && !tol_file2.fail()){
-			streamoff loc = (streamoff) (tol_file2).tellg();  //キャストをしないと移動できない。
-			(tol_file2).seekg(loc, std::ios::beg);
+		//	streamoff loc = (streamoff) (tol_file2).tellg();  //キャストをしないと移動できない。
+	//		(tol_file2).seekg(loc, std::ios::beg);
+			(tol_file2).seekg((tol_file2).tellg(), std::ios::beg);
 			(tol_file2).get(ch);
 			if(cr && ch == (char)0x0a){//改行コード"WIN"
 				cr = false;
@@ -497,7 +498,7 @@
 	ICU_Converter in(encode);
 	Pattern pt1(reg1, error, status);
 	
-	pos_file.open(pos_fname, ios::in | ios::nocreate );
+	pos_file.open(pos_fname, ios::in );
 	if(!pos_file){
 		cout << pos_fname << "がありません" << endl;
 		exit(1);
@@ -516,7 +517,7 @@
 		}
 	}
 	pos_file.close();
-	pos_file2.open(pos_fname, ios::in | ios::nocreate );
+	pos_file2.open(pos_fname, ios::in );
 	(*conf).pos_size = line_num;
 	if(line_num > 0){
 		//cout << line_num << endl;
@@ -524,8 +525,9 @@
 		line_num = 0;
 		while(!pos_file2.eof() && !pos_file2.fail()){
 
-			streamoff loc = (streamoff) (pos_file2).tellg();  //キャストをしないと移動できない。
-			(pos_file2).seekg(loc, std::ios::beg);
+			//streamoff loc = (streamoff) (pos_file2).tellg();  //キャストをしないと移動できない。
+			//(pos_file2).seekg(loc, std::ios::beg);
+			(pos_file2).seekg((pos_file2).tellg(), std::ios::beg);
 			(pos_file2).get(ch);
 			if(cr && ch == (char)0x0a){//改行コード"WIN"
 				cr = false;
@@ -639,7 +641,7 @@
 	ICU_Converter in(encode);
 	Pattern pt1(tab, error, status);
 	
-	w_grp_file.open(w_grp_fname, ios::in | ios::nocreate );
+	w_grp_file.open(w_grp_fname, ios::in );
 	if(!w_grp_file){
 		cout << w_grp_fname << "がありません" << endl;
 		exit(1);
@@ -658,7 +660,7 @@
 		}
 	}
 	w_grp_file.close();
-	w_grp_file2.open(w_grp_fname, ios::in | ios::nocreate );
+	w_grp_file2.open(w_grp_fname, ios::in );
 	(*conf).w_grp_size = line_num;
 	if(line_num > 0){
 	  //cout << line_num << endl;
@@ -666,8 +668,9 @@
 		line_num = 0;
 		while(!w_grp_file2.eof() && !w_grp_file2.fail()){
 
-			streamoff loc = (streamoff) (w_grp_file2).tellg();  //キャストをしないと移動できない。
-			(w_grp_file2).seekg(loc, std::ios::beg);
+			//streamoff loc = (streamoff) (w_grp_file2).tellg();  //キャストをしないと移動できない。
+			//(w_grp_file2).seekg(loc, std::ios::beg);
+			(w_grp_file2).seekg((w_grp_file2).tellg(), std::ios::beg);
 			(w_grp_file2).get(ch);
 			if(cr && ch == (char)0x0a){//改行コード"WIN"
 				cr = false;
@@ -764,7 +767,7 @@
 	ICU_Converter in(encode);
 	Pattern pt1(tab, error, status);
 	
-	w_sp_file.open(w_sp_fname, ios::in | ios::nocreate );
+	w_sp_file.open(w_sp_fname, ios::in );
 	if(!w_sp_file){
 		cout << w_sp_fname << "がありません" << endl;
 		exit(1);
@@ -783,7 +786,7 @@
 		}
 	}
 	w_sp_file.close();
-	w_sp_file2.open(w_sp_fname, ios::in | ios::nocreate );
+	w_sp_file2.open(w_sp_fname, ios::in );
 	(*conf).w_sp_size = line_num;
 	if(line_num > 0){
 		//cout << line_num << endl;
@@ -791,8 +794,9 @@
 		line_num = 0;
 		while(!w_sp_file2.eof() && !w_sp_file2.fail()){
 
-			streamoff loc = (streamoff) (w_sp_file2).tellg();  //キャストをしないと移動できない。
-			(w_sp_file2).seekg(loc, std::ios::beg);
+			//streamoff loc = (streamoff) (w_sp_file2).tellg();  //キャストをしないと移動できない。
+			//(w_sp_file2).seekg(loc, std::ios::beg);
+			(w_sp_file2).seekg((w_sp_file2).tellg(), std::ios::beg);
 			(w_sp_file2).get(ch);
 			if(cr && ch == (char)0x0a){//改行コード"WIN"
 				cr = false;
@@ -959,7 +963,7 @@
 	ICU_Converter in(encode);
 	Pattern pt1(reg1, error, status);
 	
-	morp_file.open(morp_fname, ios::in | ios::nocreate );
+	morp_file.open(morp_fname, ios::in );
 	if(!morp_file){
 		cout << morp_fname << "がありません" << endl;
 		exit(1);
@@ -979,7 +983,7 @@
 	}
 	//cout << line_num << endl;
 	morp_file.close();
-	morp_file2.open(morp_fname, ios::in | ios::nocreate );
+	morp_file2.open(morp_fname, ios::in );
 	//(*conf).morp_size = line_num;
 	if(line_num > 0){
 		//cout << line_num << endl;
@@ -992,8 +996,9 @@
 		(*conf).morp_size = line_num;
 		line_num = 0;
 		while(!morp_file2.eof() && !morp_file2.fail()){
-			streamoff loc = (streamoff) (morp_file2).tellg();  //キャストをしないと移動できない。
-			(morp_file2).seekg(loc, std::ios::beg);
+			//streamoff loc = (streamoff) (morp_file2).tellg();  //キャストをしないと移動できない。
+			//(morp_file2).seekg(loc, std::ios::beg);
+			(morp_file2).seekg((morp_file2).tellg(), std::ios::beg);
 			(morp_file2).get(ch);
 			if(cr && ch == (char)0x0a){//改行コード"WIN"
 				cr = false;
@@ -1074,7 +1079,7 @@
 	UErrorCode status  = U_ZERO_ERROR;
 	ICU_Converter in(encode);
 
-	comb_file.open(comb_fname, ios::in | ios::nocreate );
+	comb_file.open(comb_fname, ios::in );
 	if(!comb_file){
 		cout << comb_fname << "がありません" << endl;
 		exit(1);
@@ -1093,7 +1098,7 @@
 		}
 	}
 	comb_file.close();
-	comb_file2.open(comb_fname, ios::in | ios::nocreate );
+	comb_file2.open(comb_fname, ios::in );
 	(*conf).comb_size = line_num;
 	if(line_num > 0){
 		//cout << line_num << endl;
@@ -1101,8 +1106,9 @@
 		line_num = 0;
 		while(!comb_file2.eof() && !comb_file2.fail()){
 
-			streamoff loc = (streamoff) (comb_file2).tellg();  //キャストをしないと移動できない。
-			(comb_file2).seekg(loc, std::ios::beg);
+			//streamoff loc = (streamoff) (comb_file2).tellg();  //キャストをしないと移動できない。
+			//(comb_file2).seekg(loc, std::ios::beg);
+			(comb_file2).seekg((comb_file2).tellg(), std::ios::beg);
 			(comb_file2).get(ch);
 			if(cr && ch == (char)0x0a){//改行コード"WIN"
 				cr = false;
diff -ur NExT_TypeC0.10.org/converter.h NExT_TypeC0.10/converter.h
--- NExT_TypeC0.10.org/converter.h	2004-02-23 18:40:39.000000000 +0900
+++ NExT_TypeC0.10/converter.h	2005-11-27 01:45:09.000000000 +0900
@@ -23,7 +23,7 @@
 	}
 public:
 	explicit ICU_Error(UErrorCode error=U_ZERO_ERROR) : error_(error){}
-	virtual const char* what() const;
+	virtual const char* what() const throw();
 	UErrorCode code() const { return error_; }
 };
 
@@ -64,7 +64,7 @@
 	return temp;
 }
 
-const char* ICU_Error::what() const{
+const char* ICU_Error::what() const throw(){
 	return u_errorName(error_);
 }
-#endif
\ ファイル末尾に改行がありません
+#endif
diff -ur NExT_TypeC0.10.org/env.h NExT_TypeC0.10/env.h
--- NExT_TypeC0.10.org/env.h	2004-02-23 18:40:39.000000000 +0900
+++ NExT_TypeC0.10/env.h	2005-11-27 01:45:09.000000000 +0900
@@ -8,4 +8,5 @@
 #ifdef UNIX
 const char encode[] = {"euc-jp"};
 #endif
-#endif
\ ファイル末尾に改行がありません
+#endif
+
diff -ur NExT_TypeC0.10.org/file.h NExT_TypeC0.10/file.h
--- NExT_TypeC0.10.org/file.h	2004-02-23 18:40:39.000000000 +0900
+++ NExT_TypeC0.10/file.h	2005-11-27 01:45:09.000000000 +0900
@@ -81,8 +81,8 @@
 	//改行コードを判別しつつ行を見極めリストに登録していく
 
 	while(!(*file).eof() && !(*file).fail()){
-		streamoff loc = (streamoff) (*file).tellg();  //キャストをしないと移動できない。
-		(*file).seekg(loc, std::ios::beg);
+		//streamoff loc = (streamoff) (*file).tellg();  //キャストをしないと移動できない。
+		(*file).seekg((*file).tellg(), std::ios::beg);
 		(*file).get(ch);
 	
 		if(cr && ch == (char)0x0a){//改行コード"WIN"
@@ -223,4 +223,5 @@
 	}
 }
 	
-#endif
\ ファイル末尾に改行がありません
+#endif
+
diff -ur NExT_TypeC0.10.org/line.h NExT_TypeC0.10/line.h
--- NExT_TypeC0.10.org/line.h	2004-02-23 18:40:39.000000000 +0900
+++ NExT_TypeC0.10/line.h	2005-11-27 01:45:09.000000000 +0900
@@ -47,4 +47,5 @@
 		return temp;
 	}
 };
-#endif
\ ファイル末尾に改行がありません
+#endif
+
diff -ur NExT_TypeC0.10.org/list_template.h NExT_TypeC0.10/list_template.h
--- NExT_TypeC0.10.org/list_template.h	2004-02-23 18:40:39.000000000 +0900
+++ NExT_TypeC0.10/list_template.h	2005-11-27 01:45:09.000000000 +0900
@@ -169,4 +169,5 @@
 	}
 }
 
-#endif
\ ファイル末尾に改行がありません
+#endif
+
diff -ur NExT_TypeC0.10.org/match.h NExT_TypeC0.10/match.h
--- NExT_TypeC0.10.org/match.h	2004-02-23 18:40:39.000000000 +0900
+++ NExT_TypeC0.10/match.h	2005-11-27 01:45:09.000000000 +0900
@@ -159,4 +159,5 @@
 		corrent = corrent->next;
 	}
 }
-#endif
\ ファイル末尾に改行がありません
+#endif
+
diff -ur NExT_TypeC0.10.org/morp.h NExT_TypeC0.10/morp.h
--- NExT_TypeC0.10.org/morp.h	2004-02-23 18:40:39.000000000 +0900
+++ NExT_TypeC0.10/morp.h	2005-11-27 01:45:09.000000000 +0900
@@ -78,4 +78,5 @@
 	cout << pt.c_str() << "\tgrp::" << grp << "\ttype::" << type << endl;
 	//cout << pt.c_str() << endl;
 }
-#endif
\ ファイル末尾に改行がありません
+#endif
+
diff -ur NExT_TypeC0.10.org/next.cpp NExT_TypeC0.10/next.cpp
--- NExT_TypeC0.10.org/next.cpp	2004-02-27 15:29:58.000000000 +0900
+++ NExT_TypeC0.10/next.cpp	2005-11-27 01:45:09.000000000 +0900
@@ -122,7 +122,7 @@
 					met = true;
 				}else if(argv[i][1] == 'l'){
 					if(i+2 < argc){
-						list_file.open((const char*)argv[i+1], ios::in | ios::nocreate );
+						list_file.open((const char*)argv[i+1], ios::in );
 						if(!list_file){
 							cout << argv[i+1] << "がありません" << endl;
 							exit(1);
@@ -137,7 +137,7 @@
 							cout << argv[i+1] << endl;
 							
 							list_num = 0;
-							list_file2.open((const char*)argv[i+1], ios::in | ios::nocreate );
+							list_file2.open((const char*)argv[i+1], ios::in );
 							while(!list_file2.eof() && !list_file2.fail()){
 								list_file2.getline(list_fbuf, 10000);
 								int32_t name_size = strlen(list_fbuf);
@@ -170,7 +170,7 @@
 			}else{
 				strcpy((char*)filename, argv[i]);
 				input_file = new std::ifstream;
-				(*input_file).open((const char*)filename, ios::in | ios::nocreate );
+				(*input_file).open((const char*)filename, ios::in );
 				if(!*input_file){
 					cout << filename << "がありません" << endl;
 					exit(1);
@@ -184,7 +184,7 @@
 
 #ifdef DEBUG
 	strcpy((char*)filename, "test_ch.txt");
-	(*input_file).open((const char*)filename,  ios::in | ios::nocreate );
+	(*input_file).open((const char*)filename,  ios::in );
 	if(!*input_file){
 		cout << filename << "がありません" << endl;
 		exit(1);
@@ -231,19 +231,19 @@
 #endif
 	//FileName_print(&conf);
 	
-	affix_file.open((const char*)conf.suf_dic, ios::in | ios::nocreate );
+	affix_file.open((const char*)conf.suf_dic, ios::in );
 	if(!affix_file){
 		cout << conf.suf_dic << "がありません" << endl;
 		exit(1);
 	}
 
-	midle_file.open((const char*)conf.mid_dic, ios::in | ios::nocreate );
+	midle_file.open((const char*)conf.mid_dic, ios::in );
 	if(!midle_file){
 		cout << conf.mid_dic << endl;
 		exit(1);
 	}
 
-	match_file.open((const char*)conf.match_dic, ios::in | ios::nocreate );
+	match_file.open((const char*)conf.match_dic, ios::in );
 	if(!match_file){
 		cout << conf.match_dic << "がありません" << endl;
 		exit(1);
diff -ur NExT_TypeC0.10.org/proc_morp.h NExT_TypeC0.10/proc_morp.h
--- NExT_TypeC0.10.org/proc_morp.h	2004-02-23 18:40:39.000000000 +0900
+++ NExT_TypeC0.10/proc_morp.h	2005-11-27 01:45:09.000000000 +0900
@@ -77,4 +77,5 @@
 	}
 }
 
-#endif
\ ファイル末尾に改行がありません
+#endif
+
diff -ur NExT_TypeC0.10.org/proc_num.h NExT_TypeC0.10/proc_num.h
--- NExT_TypeC0.10.org/proc_num.h	2004-02-23 18:40:39.000000000 +0900
+++ NExT_TypeC0.10/proc_num.h	2005-11-27 01:45:09.000000000 +0900
@@ -59,4 +59,5 @@
 		sen_cor = sen_cor->pre;
 	}	
 }
-#endif
\ ファイル末尾に改行がありません
+#endif
+
diff -ur NExT_TypeC0.10.org/regex.h NExT_TypeC0.10/regex.h
--- NExT_TypeC0.10.org/regex.h	2004-02-23 18:40:39.000000000 +0900
+++ NExT_TypeC0.10/regex.h	2005-11-27 01:45:09.000000000 +0900
@@ -162,4 +162,5 @@
 		return false;
 	}
 }
-#endif
\ ファイル末尾に改行がありません
+#endif
+
diff -ur NExT_TypeC0.10.org/sentence.h NExT_TypeC0.10/sentence.h
--- NExT_TypeC0.10.org/sentence.h	2004-02-23 18:40:39.000000000 +0900
+++ NExT_TypeC0.10/sentence.h	2005-11-27 01:45:09.000000000 +0900
@@ -128,4 +128,5 @@
 		corrent = corrent->next;
 	}
 }
-#endif
\ ファイル末尾に改行がありません
+#endif
+

