Browse Source

HPCC-13241 Fixed minor spelling error

Signed-off-by: rpastrana <rodrigo.pastrana@lexisnexis.com>
rpastrana 10 năm trước cách đây
mục cha
commit
756d370825

+ 1 - 1
tools/esdlcmd-xml/esdl2xml.hpp

@@ -71,7 +71,7 @@ public:
                 IncludeInfo * ii;
                 for (ii=hc.includes;ii;ii=ii->next)
                 {
-                   subfile.setf("%s%s%s", srcDir.str(), ii->pathstr.str(), ESDL_FILE_EXTENTION);
+                   subfile.setf("%s%s%s", srcDir.str(), ii->pathstr.str(), ESDL_FILE_EXTENSION);
                    transform(subfile, outdir, out, outputIncludes, true);
                 }
             }

+ 3 - 3
tools/esdlcmd/esdl2ecl.cpp

@@ -102,16 +102,16 @@ public:
 
             IPropertyTree *src = NULL;
 
-            if (stricmp(srcext,LEGACY_FILE_EXTENTION)==0 || stricmp(srcext,ESDL_FILE_EXTENTION)==0)
+            if (stricmp(srcext,LEGACY_FILE_EXTENSION)==0 || stricmp(srcext,ESDL_FILE_EXTENSION)==0)
             {
                 fileName.append(srcext);
                 StringBuffer esxml;
                 EsdlCmdHelper::convertECMtoESXDL(fileName.str(), srcfile, esxml, false, true, true, isIncludedESDL);
                 src = createPTreeFromXMLString(esxml, 0);
             }
-            else if (!srcext || !*srcext || stricmp(srcext, XML_FILE_EXTENTION)==0)
+            else if (!srcext || !*srcext || stricmp(srcext, XML_FILE_EXTENSION)==0)
             {
-                fileName.append(XML_FILE_EXTENTION);
+                fileName.append(XML_FILE_EXTENSION);
                 src = createPTreeFromXMLFile(fileName.str(), false);
             }
             else

+ 1 - 1
tools/esdlcmd/esdlcmd_common.hpp

@@ -157,7 +157,7 @@ public:
             StringBuffer extension;
             StringBuffer filename;
             splitFilename(sourceFileName, NULL, NULL, &filename, &extension);
-            if (stricmp(extension.str(),LEGACY_FILE_EXTENTION)==0 || stricmp(extension.str(),ESDL_FILE_EXTENTION)==0)
+            if (stricmp(extension.str(),LEGACY_FILE_EXTENSION)==0 || stricmp(extension.str(),ESDL_FILE_EXTENSION)==0)
             {
                 StringBuffer esxml;
                 EsdlCmdHelper::convertECMtoESXDL(sourceFileName, filename.str(), esxml, true, true, false, true);

+ 3 - 3
tools/esdlcomp/esdlcomp.cpp

@@ -1112,10 +1112,10 @@ ESDLcompiler::ESDLcompiler(const char * sourceFile, bool generatefile, const cha
             StringBuffer alternateExtFilename(srcDir);
             alternateExtFilename.append(name.str());
 
-            if (stricmp(ext.str(), ESDL_FILE_EXTENTION)==0)
-                alternateExtFilename.append(LEGACY_FILE_EXTENTION);
+            if (stricmp(ext.str(), ESDL_FILE_EXTENSION)==0)
+                alternateExtFilename.append(LEGACY_FILE_EXTENSION);
             else
-                alternateExtFilename.append(ESDL_FILE_EXTENTION);
+                alternateExtFilename.append(ESDL_FILE_EXTENSION);
 
             yyin = fopen(alternateExtFilename.str(), "rt");
             if (!yyin)

+ 3 - 3
tools/esdlcomp/esdlcomp.h

@@ -55,9 +55,9 @@ inline bool es_streq(const char* s, const char* t) {  return strcmp(s,t)==0; }
 #define PF_ESPSTRUCT    0x800
 #define PF_MASK        0x7fff
 
-#define LEGACY_FILE_EXTENTION ".ecm"
-#define ESDL_FILE_EXTENTION   ".esdl"
-#define XML_FILE_EXTENTION    ".xml"
+#define LEGACY_FILE_EXTENSION ".ecm"
+#define ESDL_FILE_EXTENSION   ".esdl"
+#define XML_FILE_EXTENSION    ".xml"
 
 enum type_kind
 {