[Genabel-commits] r839 - pkg/ProbABEL/src

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Sun Feb 19 16:50:28 CET 2012


Author: lckarssen
Date: 2012-02-19 16:50:28 +0100 (Sun, 19 Feb 2012)
New Revision: 839

Modified:
   pkg/ProbABEL/src/data.h
Log:
Fixed a couple of typos in error messages of ProbABEL.

Modified: pkg/ProbABEL/src/data.h
===================================================================
--- pkg/ProbABEL/src/data.h	2012-02-06 13:06:44 UTC (rev 838)
+++ pkg/ProbABEL/src/data.h	2012-02-19 15:50:28 UTC (rev 839)
@@ -36,7 +36,7 @@
 	FILE * infile;
 	// first pass -- find unmeasured people
 	if ((infile=fopen(fname,"r"))==NULL) {
-		fprintf(stderr,"Nmeasured: can not open file %s\n",fname);
+		fprintf(stderr,"Nmeasured: cannot open file %s\n",fname);
 	}
 	char tmp[100];
 
@@ -137,7 +137,7 @@
 		FILE * infile;
 		// first pass -- find unmeasured people
 		if ((infile=fopen(fname,"r"))==NULL) {
-			fprintf(stderr,"phedata: can not open file %s\n",fname);
+			fprintf(stderr,"phedata: cannot open file %s\n",fname);
 		}
 
 
@@ -225,7 +225,7 @@
 
 		// second pass -- read the data
 		if ((infile=fopen(fname,"r"))==NULL) {
-			fprintf(stderr,"phedata: can not open file %s\n",fname);
+			fprintf(stderr,"phedata: cannot open file %s\n",fname);
 			exit(1);
 		}
 
@@ -304,7 +304,7 @@
 		for (unsigned int i=0;i<DAG->getNumObservations();i++) if (!DAGmask[i]) data[j++] = tmpdata[i];
 		//fprintf(stdout,"%i %i %i\n",j,DAG->get_nobservations(),nids);
 	}
-	else error("can not get gendata");
+	else error("cannot get gendata");
 }
 
 gendata::gendata()
@@ -361,7 +361,7 @@
 	FILE * infile;
 
 	if ((infile=fopen(fname,"r"))==NULL) {
-		fprintf(stderr,"gendata: can not open file %s\n",fname);
+		fprintf(stderr,"gendata: cannot open file %s\n",fname);
 	}
 
 	char tmp[100],tmpn[100];
@@ -683,7 +683,7 @@
 					}
 			if (passed != 1)
 			{
-				fprintf(stderr,"can not recover element %d\n",i);
+				fprintf(stderr,"cannot recover element %d\n",i);
 				exit(1);
 			}
 		}
@@ -808,7 +808,7 @@
 		FILE * infile = fopen(filename,"r");
 		if (infile == NULL)
 		{
-			fprintf(stderr,"mlinfo: can not open file %s",filename);
+			fprintf(stderr,"mlinfo: cannot open file %s",filename);
 			exit(1);
 		}
 		char tmp[100];
@@ -834,7 +834,7 @@
 		map = new std::string [nsnps];
 		if ((infile = fopen(filename,"r"))==NULL)
 		{
-			fprintf(stderr,"mlinfo: can not open file %s",filename);
+			fprintf(stderr,"mlinfo: cannot open file %s",filename);
 			exit(1);
 		}
 		for (int i =0;i<7;i++) fscanf(infile,"%s", tmp);
@@ -864,7 +864,7 @@
 			char line [BFS], tmp[BFS];
 			if (!instr.is_open())
 			{
-				fprintf(stderr,"mlinfo: can not open file %s",mapname);
+				fprintf(stderr,"mlinfo: cannot open file %s",mapname);
 				exit(1);
 			}
 			instr.getline(line,BFS);
@@ -945,7 +945,7 @@
 		}
 		else
 		{
-			fprintf(stderr,"error: inv file: can not open file '%s'\n",filename_);
+			fprintf(stderr,"error: inv file: cannot open file '%s'\n",filename_);
 		}
 
 



More information about the Genabel-commits mailing list