Package: xmedcon / 0.13.0-2

code-spelling.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
Author: Andreas Tille <tille@debian.org>
LastChanged: Tue, 23 Jul 2013 08:46:18 +0200
Description: Fix some spelling errors in code

--- a/source/m-getopt.c
+++ b/source/m-getopt.c
@@ -986,7 +986,7 @@ int MdcHandleArgs(FILEINFO *fi, int argc
   /* print database info; legacy option, just used within ECAT */
   if (MDC_INFO_DB == MDC_YES) {
     if (total[MDC_FILES] > 1)
-      MdcPrntErr(MDC_NO_CODE,"Option '-db' only usefull one file at a time");
+      MdcPrntErr(MDC_NO_CODE,"Option '-db' only useful one file at a time");
     if (MDC_CONVERT == MDC_YES)
       MdcPrntErr(MDC_NO_CODE,"Option '-db' useless with '-c' conversion");
   }
@@ -994,7 +994,7 @@ int MdcHandleArgs(FILEINFO *fi, int argc
   /* echo alias name; single option allowed */
   if (MDC_ECHO_ALIAS == MDC_YES) {
     if (total[MDC_FILES] > 1)
-      MdcPrntErr(MDC_NO_CODE,"Option '-ean' only usefull one file at a time");
+      MdcPrntErr(MDC_NO_CODE,"Option '-ean' only useful one file at a time");
     if (MDC_CONVERT == MDC_YES)
       MdcPrntErr(MDC_NO_CODE,"Option '-ean' useless with '-c' conversion");
   }
--- a/source/m-split.c
+++ b/source/m-split.c
@@ -286,7 +286,7 @@ char *MdcSplitSlices(FILEINFO *fi, int f
        fi->nr_instance = instance;
        MdcCleanUpFI(ofi); MdcFree(ofi);
        MdcFree(tpath);
-       return("Failure to write splitted slice");
+       return("Failure to write split slice");
      } 
 
      MdcCleanUpFI(ofi);
@@ -374,7 +374,7 @@ char *MdcSplitFrames(FILEINFO *fi, int f
        fi->nr_instance = instance;
        MdcCleanUpFI(ofi); MdcFree(ofi);
        MdcFree(tpath);
-       return("Failure to write splitted frame");
+       return("Failure to write split frame");
      } 
 
      MdcCleanUpFI(ofi);
--- a/source/m-acr.c
+++ b/source/m-acr.c
@@ -473,7 +473,7 @@ const char *MdcReadACR(FILEINFO *fi)
 
   /* get endian of file */
   r = fread((Uint8 *)tag, 1, MDC_ACR_TAG_SIZE, fi->ifp);
-  if (r != MDC_ACR_TAG_SIZE) return("ACR  Failure to read tag (endianess).");
+  if (r != MDC_ACR_TAG_SIZE) return("ACR  Failure to read tag (endianness).");
 
   if (tag->group == 0x0008)  MDC_FILE_ENDIAN = MDC_HOST_ENDIAN;
   else {
--- a/source/m-algori.c
+++ b/source/m-algori.c
@@ -1016,7 +1016,7 @@ char *MdcImagesPixelFiddle(FILEINFO *fi)
     }
   }
 
-  /* from here on, endianess is host based */
+  /* from here on, endianness is host based */
   MDC_FILE_ENDIAN = MDC_HOST_ENDIAN; 
 
   return(NULL);
--- a/source/m-conc.c
+++ b/source/m-conc.c
@@ -115,7 +115,7 @@ char * MdcConcAcqModeNames[MDC_CONC_NUM_
   "Emission",
   "Dynamic",
   "Gated",
-  "Continous bed motion",
+  "Continuous bed motion",
   "Singles transmission",
   "Windowed Coincidence transmission",
   "Non-windowed Coincidence transmission"
@@ -123,7 +123,7 @@ char * MdcConcAcqModeNames[MDC_CONC_NUM_
 
 char * MdcConcBedMotionNames[MDC_CONC_NUM_BED_MOTIONS] = {
   "Static or unknown bed motion",
-  "Continous bed motion",
+  "Continuous bed motion",
   "Multiple bed positions"
 };
 
@@ -150,7 +150,7 @@ char * MdcConcOrderModeNames[MDC_CONC_NU
 };
 
 char * MdcConcRebinTypeNames[MDC_CONC_NUM_REBIN_TYPES] = {
-  "Unknown, or no, algorith type",
+  "Unknown, or no, algorithm type",
   "Full 3D binning (span and ring difference)",
   "Single-Slice Rebinning",
   "Fourier Rebinning"
--- a/source/m-conc.h
+++ b/source/m-conc.h
@@ -83,7 +83,7 @@ typedef enum {
   MDC_CONC_ACQ_EMISSION,                   /* Emission acquisition */
   MDC_CONC_ACQ_DYNAMIC,                    /* Dynamic acquisition */
   MDC_CONC_ACQ_GATED,                      /* Gated acquisition */
-  MDC_CONC_ACQ_CONTINUOUS,                 /* Continous bed motion acquisition */
+  MDC_CONC_ACQ_CONTINUOUS,                 /* Continuous bed motion acquisition */
   MDC_CONC_ACQ_SINGLES,                    /* Singles transmission acquisition */
   MDC_CONC_ACQ_WINDOWED_COINCIDENCE,       /* Windowed coincidence transmission acquisition */
   MDC_CONC_ACQ_NON_WINDOWED_COINCIDENCE,   /* Non-windowed coincidence transmission acquisition */
@@ -100,7 +100,7 @@ typedef enum {
 
 typedef enum {
   MDC_CONC_BED_MOTION_STATIC,              /* Static or unknown bed motion */
-  MDC_CONC_BED_MOTION_CONTINOUS,           /* Continous bed motion */
+  MDC_CONC_BED_MOTION_CONTINOUS,           /* Continuous bed motion */
   MDC_CONC_BED_MOTION_MULTIPLE,            /* Multiple bed positions, i.e. step and shoot */
   MDC_CONC_NUM_BED_MOTIONS
 } MdcConcBedMotion;
@@ -131,7 +131,7 @@ typedef enum {
 } MdcConcOrderModes;
 
 typedef enum {
-  MDC_CONC_REBIN_UNKNOWN,     /* Unknown, or no, algorith type */
+  MDC_CONC_REBIN_UNKNOWN,     /* Unknown, or no, algorithm type */
   MDC_CONC_REBIN_FULL,        /* Full 3D binning (span and ring difference) */
   MDC_CONC_REBIN_SINGLE,      /* Single-Slice Rebinning */
   MDC_CONC_REBIN_FOURIER,     /* Fourier Rebinning */
--- a/source/m-nifti.c
+++ b/source/m-nifti.c
@@ -328,7 +328,7 @@ const char *MdcWriteNIFTI(FILEINFO *fi)
 
   /* file endian */
   if (MDC_WRITE_ENDIAN != MDC_HOST_ENDIAN)
-    return("NIFTI Writing in different endianess yet unsupported");
+    return("NIFTI Writing in different endianness yet unsupported");
 
   /* get nifti_image struct */
   nim = nifti_simple_init_nim();
--- a/source/m-ecat64.c
+++ b/source/m-ecat64.c
@@ -261,9 +261,9 @@ const char *MdcReadECAT6(FILEINFO *fi)
     MdcPrntScrn("Bed Offset[%02d]           : %f [cm]\n",i+1
                                                            ,mh.bed_offset[i]);
     MdcPrntScrn("Plane Separation         : %f [cm]\n",mh.plane_separation);
-    MdcPrntScrn("Lower Scatter Treshold   : %d [KeV]\n",mh.lwr_sctr_thres);
-    MdcPrntScrn("Lower True Treshold      : %d [KeV]\n",mh.lwr_true_thres);
-    MdcPrntScrn("Upper True Treshold      : %d [KeV]\n",mh.upr_true_thres);
+    MdcPrntScrn("Lower Scatter Threshold  : %d [KeV]\n",mh.lwr_sctr_thres);
+    MdcPrntScrn("Lower True Threshold     : %d [KeV]\n",mh.lwr_true_thres);
+    MdcPrntScrn("Upper True Threshold     : %d [KeV]\n",mh.upr_true_thres);
     MdcPrntScrn("Collimator               : %6.0f\n",mh.collimator);
     MdcPrntScrn("User Process Code        : ");
        MdcPrintStr(mh.user_process_code);