Merge pull request #2009 from Jarod42/typos

Fix typos in comment.
This commit is contained in:
Kyriet 2022-12-11 17:27:30 +01:00 committed by GitHub
commit ac8ba36246
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
25 changed files with 32 additions and 32 deletions

View File

@ -155,8 +155,8 @@
end)
function android.link(cfg, file)
-- default the seperator to '/' as that is what is searched for
-- below. Otherwise the function will use target seperator which
-- default the separator to '/' as that is what is searched for
-- below. Otherwise the function will use target separator which
-- could be '\\' and result in failure to create links.
local fname = path.translate(file.relpath, '/')

View File

@ -48,7 +48,7 @@
--
-- Override the GMake action 'onProject' funtion to provide
-- Override the GMake action 'onProject' function to provide
-- D knowledge...
--
p.override( gmake, "onProject", function(oldfn, prj)

View File

@ -32,7 +32,7 @@
function m.dCompiler(cfg)
local dc = nil
-- TODO: chech for explicit DMD or LDC request?
-- TODO: check for explicit DMD or LDC request?
if _OPTIONS.dc then
local dcMap = {
["dmd"] = "DMD",

View File

@ -24,7 +24,7 @@
end
--
-- Patch the path table to provide knowledge of D file extenstions
-- Patch the path table to provide knowledge of D file extensions
--
function path.isdfile(fname)
return path.hasextension(fname, { ".d" })

View File

@ -139,7 +139,7 @@
--
-- Rules for file ops based on the shell type. Can't use defines and $@ because
-- it screws up the escaping of spaces and parethesis (anyone know a fix?)
-- it screws up the escaping of spaces and parenthesis (anyone know a fix?)
--
function make.mkdir(dirname)

View File

@ -39,7 +39,7 @@
end
--
-- Check addition of library search directores.
-- Check addition of library search directories.
--
function suite.checkLibDirs()

View File

@ -118,7 +118,7 @@
--
-- Rules for file ops based on the shell type. Can't use defines and $@ because
-- it screws up the escaping of spaces and parethesis (anyone know a fix?)
-- it screws up the escaping of spaces and parenthesis (anyone know a fix?)
--
function gmake2.mkdir(dirname)

View File

@ -40,7 +40,7 @@ ALL_LDFLAGS += $(LDFLAGS)
end
--
-- Check addition of library search directores.
-- Check addition of library search directories.
--
function suite.checkLibDirs()

View File

@ -82,7 +82,7 @@
format = table.remove(arg, 1)
end
-- convert nils into something more usefuls
-- convert nils into something more useful
for i = 1, #arg do
if (arg[i] == nil) then
arg[i] = "(nil)"

View File

@ -45,7 +45,7 @@
--
-- Check the configuration type for differenet project kinds.
-- Check the configuration type for different project kinds.
--
function suite.configurationType_onConsoleApp()

View File

@ -112,7 +112,7 @@
end
--
-- The objeccts directory is applied, if specified.
-- The objects directory is applied, if specified.
--
function suite.intDir_onTargetDir()

View File

@ -137,16 +137,16 @@
---
-- Compare a version string that uses semver semantics against a
-- version comparision string. Comparisions take the form of ">=5.0" (5.0 or
-- version comparison string. Comparisons take the form of ">=5.0" (5.0 or
-- later), "5.0" (5.0 or later), ">=5.0 <6.0" (5.0 or later but not 6.0 or
-- later).
--
-- @param version
-- The version to be tested.
-- @param checks
-- The comparision string to be evaluated.
-- The comparison string to be evaluated.
-- @return
-- True if the comparisions pass, false if any fail.
-- True if the comparisons pass, false if any fail.
---
function p.checkVersion(version, checks)

View File

@ -15,7 +15,7 @@
---
-- Set up a place to store the current active objects in each configuration
-- scope (e.g. wprkspaces, projects, groups, and configurations). This likely
-- scope (e.g. workspaces, projects, groups, and configurations). This likely
-- ought to be internal scope, but it is useful for testing.
---
@ -25,7 +25,7 @@
---
-- Define a new class of configuration container. A container can receive and
-- store configuration blocks, which are what hold the individial settings
-- store configuration blocks, which are what hold the individual settings
-- from the scripts. A container can also hold one or more kinds of child
-- containers; a workspace can contain projects, for instance.
--
@ -489,7 +489,7 @@
--
-- Callback for all API functions; everything comes here first, and then
-- gets parceled out to the individual set...() functions.
-- gets parcelled out to the individual set...() functions.
--
function api.storeField(field, value)

View File

@ -310,7 +310,7 @@
end
-- If this is something I can link against, pull out the requested part
-- dont link against my self
-- don't link against my self
if item and item ~= cfg then
if part == "directory" then
item = path.getdirectory(item)
@ -340,10 +340,10 @@
--
-- Returns the list of sibling target directories
--
--
-- @param cfg
-- The configuration object to query.
-- @return
-- @return
-- Absolute path list
--
function config.getsiblingtargetdirs(cfg)

View File

@ -41,7 +41,7 @@
end
end
-- fetch the pathVars from the enviroment.
-- fetch the pathVars from the environment.
local envMap = e.pathVars or {}
-- enable access to the global environment

View File

@ -42,7 +42,7 @@
-- @param fname
-- The name of the directory or file to include. If a directory, will
-- automatically include the contained premake5.lua or premake4.lua
-- script at that lcoation.
-- script at that location.
---
io._includedFiles = {}

View File

@ -1,6 +1,6 @@
---
-- group.lua
-- A psuedo-configuration container to represent project groups.
-- A pseudo-configuration container to represent project groups.
-- Copyright (c) 2014 Jason Perkins and the Premake project
---

View File

@ -12,7 +12,7 @@
--
-- We can't control how people will type in the command line arguments, or how
-- project scripts will define their custom options, so case becomes an issue.
-- To mimimize issues, set up the _OPTIONS table to always use lowercase keys.
-- To minimize issues, set up the _OPTIONS table to always use lowercase keys.
--
local _OPTIONS_metatable = {

View File

@ -742,7 +742,7 @@
local translateFunction = function(value)
local result = path.join(translatedBaseDir, value)
result = os.translateCommandAndPath(result, map)
if value:endswith('/') or value:endswith('\\') or -- if orginal path ends with a slash then ensure the same
if value:endswith('/') or value:endswith('\\') or -- if original path ends with a slash then ensure the same
value:endswith('/"') or value:endswith('\\"') then
result = result .. '/'
end

View File

@ -712,7 +712,7 @@
local lowerobj = f.objname:lower()
if not bases[lowerobj] then
-- this is the first appearance of a file that produces this objname
-- intialize the table for any future basename that matches our objname
-- initialize the table for any future basename that matches our objname
bases[lowerobj] = {}
end

View File

@ -292,7 +292,7 @@
end
--
-- Get the default seperator for path.translate
-- Get the default separator for path.translate
--
function path.getDefaultSeparator()

View File

@ -506,7 +506,7 @@
-- and returns a new (or the same) pairing.
--
-- TODO: I think this could be made much simpler by building a string pattern
-- like :part1:part2: and then doing string comparisions, instead of trying to
-- like :part1:part2: and then doing string comparisons, instead of trying to
-- iterate over variable number of table elements.
--

View File

@ -522,7 +522,7 @@
end
--
-- Filters a table for empty entries. primarly useful for lists of string.
-- Filters a table for empty entries. primarily useful for lists of string.
--
function table.filterempty(dirs)
return table.translate(dirs, function(val)

View File

@ -84,7 +84,7 @@
-- Locate a project by name, case insensitive.
--
-- @param name
-- The name of the projec to find.
-- The name of the project to find.
-- @return
-- The project object, or nil if a matching project could not be found.
--

View File

@ -149,7 +149,7 @@
--
-- Name should use "lib and ".a" for Mac static libraries.
-- Name should use "lib" and ".a" for Mac static libraries.
--
function suite.nameUsesLib_onMacStaticLib()