Misc. typos
found via `codespell` and `grep`
This commit is contained in:
parent
3eb41c9beb
commit
60dfa31a67
90 changed files with 155 additions and 155 deletions
|
|
@ -512,7 +512,7 @@ static void add_symbols(Node *n) {
|
|||
SetFlag(n, "feature:ignore");
|
||||
}
|
||||
if (!GetFlag(n, "feature:ignore") && Strcmp(symname,"$ignore") == 0) {
|
||||
/* Add feature:ignore if the symbol was explicitely ignored, regardless of visibility */
|
||||
/* Add feature:ignore if the symbol was explicitly ignored, regardless of visibility */
|
||||
SetFlag(n, "feature:ignore");
|
||||
}
|
||||
} else {
|
||||
|
|
@ -3789,7 +3789,7 @@ cpp_class_decl : storage_class cpptype idcolon inherit LBRACE {
|
|||
if ($9) {
|
||||
appendSibling($$, $9);
|
||||
}
|
||||
} else if (!SwigType_istemplate(ty) && template_parameters == 0) { /* for tempalte we need the class itself */
|
||||
} else if (!SwigType_istemplate(ty) && template_parameters == 0) { /* for template we need the class itself */
|
||||
$$ = $9;
|
||||
}
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -504,7 +504,7 @@ class Allocate:public Dispatcher {
|
|||
|
||||
in emit.cxx
|
||||
|
||||
and is either constructued from the "feature:catches" feature
|
||||
and is either constructed from the "feature:catches" feature
|
||||
or copied from the node "throws" list.
|
||||
*/
|
||||
String *scatchlist = Getattr(n, "feature:catches");
|
||||
|
|
|
|||
|
|
@ -68,8 +68,8 @@ class CSHARP:public Language {
|
|||
String *module_baseclass; //inheritance for module class from %pragma
|
||||
String *imclass_interfaces; //interfaces for intermediary class class from %pragma
|
||||
String *module_interfaces; //interfaces for module class from %pragma
|
||||
String *imclass_class_modifiers; //class modifiers for intermediary class overriden by %pragma
|
||||
String *module_class_modifiers; //class modifiers for module class overriden by %pragma
|
||||
String *imclass_class_modifiers; //class modifiers for intermediary class overridden by %pragma
|
||||
String *module_class_modifiers; //class modifiers for module class overridden by %pragma
|
||||
String *upcasts_code; //C++ casts for inheritance hierarchies C++ code
|
||||
String *imclass_cppcasts_code; //C++ casts up inheritance hierarchies intermediary class code
|
||||
String *director_callback_typedefs; // Director function pointer typedefs for callbacks
|
||||
|
|
|
|||
|
|
@ -989,7 +989,7 @@ public:
|
|||
// Smart pointer classes do not mirror the inheritance hierarchy of the
|
||||
// underlying types, so aliasing the base class methods in is not required
|
||||
// for them.
|
||||
// DMD BUG: We have to emit the alias after the last function becasue
|
||||
// DMD BUG: We have to emit the alias after the last function because
|
||||
// taking a delegate in the overload checking code fails otherwise
|
||||
// (http://d.puremagic.com/issues/show_bug.cgi?id=4860).
|
||||
if (!Getattr(n, "sym:nextSibling") && !is_smart_pointer() &&
|
||||
|
|
@ -1482,7 +1482,7 @@ public:
|
|||
}
|
||||
Delete(attributes);
|
||||
|
||||
// Retrive the override value set via %dconstvalue, if any.
|
||||
// Retrieve the override value set via %dconstvalue, if any.
|
||||
String *override_value = Getattr(n, "feature:d:constvalue");
|
||||
if (override_value) {
|
||||
Printf(constants_code, "%s;\n", override_value);
|
||||
|
|
@ -4353,7 +4353,7 @@ private:
|
|||
*
|
||||
* Determines whether the class the passed function node belongs to overrides
|
||||
* all the overlaods for the passed function node defined somewhere up the
|
||||
* inheritance hierachy.
|
||||
* inheritance hierarchy.
|
||||
* --------------------------------------------------------------------------- */
|
||||
bool areAllOverloadsOverridden(Node *n) const {
|
||||
List *base_list = Getattr(parentNode(n), "bases");
|
||||
|
|
@ -4378,7 +4378,7 @@ private:
|
|||
}
|
||||
|
||||
// We try to find at least a single overload which exists in the base class
|
||||
// so we can progress up the inheritance hierachy even if there have been
|
||||
// so we can progress up the inheritance hierarchy even if there have been
|
||||
// new overloads introduced after the topmost class.
|
||||
Node *base_function = NULL;
|
||||
String *symname = Getattr(n, "sym:name");
|
||||
|
|
@ -4404,7 +4404,7 @@ private:
|
|||
!(Swig_director_mode() && Swig_director_protected_mode() && Swig_all_protected_mode())) {
|
||||
// If the base class function is »protected« and were are not in
|
||||
// director mode, it is not emitted to the base class and thus we do
|
||||
// not count it. Otherwise, we would run into issues if the visiblity
|
||||
// not count it. Otherwise, we would run into issues if the visibility
|
||||
// of some functions was changed from protected to public in a child
|
||||
// class with the using directive.
|
||||
continue;
|
||||
|
|
|
|||
|
|
@ -5940,7 +5940,7 @@ private:
|
|||
*
|
||||
* Given a C/C++ name, return a name in Go which will be exported.
|
||||
* If the first character is an upper case letter, this returns a
|
||||
* copy of its argment. If the first character is a lower case
|
||||
* copy of its argument. If the first character is a lower case
|
||||
* letter, this forces it to upper case. Otherwise, this prepends
|
||||
* 'X'.
|
||||
* ---------------------------------------------------------------------- */
|
||||
|
|
|
|||
|
|
@ -72,8 +72,8 @@ class JAVA:public Language {
|
|||
String *module_baseclass; //inheritance for module class from %pragma
|
||||
String *imclass_interfaces; //interfaces for intermediary class class from %pragma
|
||||
String *module_interfaces; //interfaces for module class from %pragma
|
||||
String *imclass_class_modifiers; //class modifiers for intermediary class overriden by %pragma
|
||||
String *module_class_modifiers; //class modifiers for module class overriden by %pragma
|
||||
String *imclass_class_modifiers; //class modifiers for intermediary class overridden by %pragma
|
||||
String *module_class_modifiers; //class modifiers for module class overridden by %pragma
|
||||
String *upcasts_code; //C++ casts for inheritance hierarchies C++ code
|
||||
String *imclass_cppcasts_code; //C++ casts up inheritance hierarchies intermediary class code
|
||||
String *imclass_directors; // Intermediate class director code
|
||||
|
|
@ -168,7 +168,7 @@ public:
|
|||
/* -----------------------------------------------------------------------------
|
||||
* constructIntermediateClassName()
|
||||
*
|
||||
* Construct the fully qualified name of the intermidiate class and set
|
||||
* Construct the fully qualified name of the intermediate class and set
|
||||
* the full_imclass_name attribute accordingly.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
void constructIntermediateClassName(Node *n) {
|
||||
|
|
|
|||
|
|
@ -994,7 +994,7 @@ int JSEmitter::emitDtor(Node *n) {
|
|||
|
||||
Also, there is a problem where destructor_action is always true for me, even when not requesting %extend as above.
|
||||
So this code doesn't actually quite work as I expect. The end result is that the code still works because
|
||||
destructor_action calls free like the original template. The one caveat is the string in destructor_action casts to char* which is wierd.
|
||||
destructor_action calls free like the original template. The one caveat is the string in destructor_action casts to char* which is weird.
|
||||
I think there is a deeper underlying SWIG issue because I don't think it should be char*. However, it doesn't really matter for free.
|
||||
|
||||
Maybe the fix for the destructor_action always true problem is that this is supposed to be embedded in the if(Extend) block above.
|
||||
|
|
@ -1125,7 +1125,7 @@ int JSEmitter::emitConstant(Node *n) {
|
|||
Template t_getter(getTemplate("js_getter"));
|
||||
|
||||
// call the variable methods as a constants are
|
||||
// registred in same way
|
||||
// registered in same way
|
||||
enterVariable(n);
|
||||
state.variable(GETTER, wname);
|
||||
// TODO: why do we need this?
|
||||
|
|
@ -2428,7 +2428,7 @@ Template & Template::trim() {
|
|||
/* -----------------------------------------------------------------------------
|
||||
* Template& Template::replace(const String* pattern, const String* repl) :
|
||||
*
|
||||
* replaces all occurences of a given pattern with a given replacement.
|
||||
* replaces all occurrences of a given pattern with a given replacement.
|
||||
*
|
||||
* - pattern: the pattern to be replaced
|
||||
* - repl: the replacement string
|
||||
|
|
|
|||
|
|
@ -3781,7 +3781,7 @@ int Language::abstractClassTest(Node *n) {
|
|||
if (dirabstract) {
|
||||
if (is_public(dirabstract)) {
|
||||
Swig_warning(WARN_LANG_DIRECTOR_ABSTRACT, Getfile(n), Getline(n),
|
||||
"Director class '%s' is abstract, abstract method '%s' is not accesible, maybe due to multiple inheritance or 'nodirector' feature\n",
|
||||
"Director class '%s' is abstract, abstract method '%s' is not accessible, maybe due to multiple inheritance or 'nodirector' feature\n",
|
||||
SwigType_namestr(Getattr(n, "name")), Getattr(dirabstract, "name"));
|
||||
} else {
|
||||
Swig_warning(WARN_LANG_DIRECTOR_ABSTRACT, Getfile(n), Getline(n),
|
||||
|
|
|
|||
|
|
@ -141,7 +141,7 @@ private:
|
|||
// This variable holds the name of the current class in Lua. Usually it is
|
||||
// the same as C++ class name, but rename directives can change it.
|
||||
String *proxy_class_name;
|
||||
// This is a so calld fully qualified symname - the above proxy class name
|
||||
// This is a so called fully qualified symname - the above proxy class name
|
||||
// prepended with class namespace. If class Lua name is the same as class C++ name,
|
||||
// then it is basically C++ fully qualified name with colons replaced with dots.
|
||||
String *full_proxy_class_name;
|
||||
|
|
@ -1359,7 +1359,7 @@ public:
|
|||
String *rt = Copy(getClassType());
|
||||
SwigType_add_pointer(rt);
|
||||
|
||||
// Adding class to apropriate namespace
|
||||
// Adding class to appropriate namespace
|
||||
registerClass(nspace, wrap_class_name);
|
||||
Hash *nspaceHash = getCArraysHash(nspace);
|
||||
|
||||
|
|
@ -1461,7 +1461,7 @@ public:
|
|||
assert(proxy_class_name);
|
||||
assert(full_proxy_class_name);
|
||||
|
||||
// Then print class isntance part
|
||||
// Then print class instance part
|
||||
Printv(f_wrappers, "static swig_lua_class *swig_", mangled_full_proxy_class_name, "_bases[] = {", base_class, "0};\n", NIL);
|
||||
Delete(base_class);
|
||||
Printv(f_wrappers, "static const char *swig_", mangled_full_proxy_class_name, "_base_names[] = {", base_class_names, "0};\n", NIL);
|
||||
|
|
|
|||
|
|
@ -219,8 +219,8 @@ private:
|
|||
String *module_baseclass; //inheritance for module class from %pragma
|
||||
String *m3raw_interfaces; //interfaces for intermediary class class from %pragma
|
||||
String *module_interfaces; //interfaces for module class from %pragma
|
||||
String *m3raw_class_modifiers; //class modifiers for intermediary class overriden by %pragma
|
||||
String *m3wrap_modifiers; //class modifiers for module class overriden by %pragma
|
||||
String *m3raw_class_modifiers; //class modifiers for intermediary class overridden by %pragma
|
||||
String *m3wrap_modifiers; //class modifiers for module class overridden by %pragma
|
||||
String *upcasts_code; //C++ casts for inheritance hierarchies C++ code
|
||||
String *m3raw_cppcasts_code; //C++ casts up inheritance hierarchies intermediary class code
|
||||
String *destructor_call; //C++ destructor call if any
|
||||
|
|
@ -822,7 +822,7 @@ MODULA3():
|
|||
Printf(file, "\n");
|
||||
Printf(file, "int main (int argc, char *argv[]) {\n");
|
||||
Printf(file, "\
|
||||
/*This progam must work for floating point numbers and integers.\n\
|
||||
/*This program must work for floating point numbers and integers.\n\
|
||||
Thus all numbers are converted to double precision floating point format.*/\n");
|
||||
scanConstant(file, n);
|
||||
Printf(file, " return 0;\n");
|
||||
|
|
@ -3214,7 +3214,7 @@ MODULA3():
|
|||
|
||||
tm = Getattr(p, "tmap:m3wrapargvar");
|
||||
if (tm != NIL) {
|
||||
/* exceptions that may be raised but can't be catched,
|
||||
/* exceptions that may be raised but can't be caught,
|
||||
thus we won't count them in num_exceptions */
|
||||
addImports(m3wrap_impl.import, "m3wrapargvar", p);
|
||||
addThrows(throws_hash, "m3wrapargvar", p);
|
||||
|
|
|
|||
|
|
@ -765,7 +765,7 @@ public:
|
|||
|
||||
|
||||
/* ------------------------------------------------------------
|
||||
* validIdentifer()
|
||||
* validIdentifier()
|
||||
* ------------------------------------------------------------ */
|
||||
|
||||
virtual int validIdentifier(String *s) {
|
||||
|
|
|
|||
|
|
@ -436,7 +436,7 @@ private:
|
|||
|
||||
String *make_autodoc(Node *n, autodoc_t ad_type) {
|
||||
int extended = 0;
|
||||
// If the function is overloaded then this funciton is called
|
||||
// If the function is overloaded then this function is called
|
||||
// for the last one. Rewind to the first so the docstrings are
|
||||
// in order.
|
||||
while (Getattr(n, "sym:previousSibling"))
|
||||
|
|
|
|||
|
|
@ -523,7 +523,7 @@ String *Swig_string_ucase(String *s) {
|
|||
/* We insert a underscore when:
|
||||
1. Lower case char followed by upper case char
|
||||
getFoo > get_foo; getFOo > get_foo; GETFOO > getfoo
|
||||
2. Number proceded by char and not end of string
|
||||
2. Number preceded by char and not end of string
|
||||
get2D > get_2d; get22D > get_22d; GET2D > get_2d
|
||||
but:
|
||||
asFloat2 > as_float2
|
||||
|
|
|
|||
|
|
@ -1055,7 +1055,7 @@ static void name_nameobj_add(Hash *name_hash, List *name_list, String *prefix, S
|
|||
Setattr(nameobj, "decl", decl);
|
||||
if (nname && Len(nname))
|
||||
Setattr(nameobj, "targetname", nname);
|
||||
/* put the new nameobj at the beginnig of the list, such that the
|
||||
/* put the new nameobj at the beginning of the list, such that the
|
||||
last inserted rule take precedence */
|
||||
Insert(name_list, 0, nameobj);
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -749,11 +749,11 @@ static int look(Scanner *s) {
|
|||
}
|
||||
|
||||
if (Strcmp( str_delimiter, end_delimiter )==0) {
|
||||
Delete( end_delimiter ); /* Correct end delimiter )XXXX" occured */
|
||||
Delete( end_delimiter ); /* Correct end delimiter )XXXX" occurred */
|
||||
Delete( str_delimiter );
|
||||
str_delimiter = 0;
|
||||
return SWIG_TOKEN_STRING;
|
||||
} else { /* Incorrect end delimiter occured */
|
||||
} else { /* Incorrect end delimiter occurred */
|
||||
if (c == 0) {
|
||||
Swig_error(cparse_file, cparse_start_line, "Unterminated raw string, started with R\"%s( is not terminated by )%s\"\n", str_delimiter, str_delimiter);
|
||||
return SWIG_TOKEN_ERROR;
|
||||
|
|
|
|||
|
|
@ -188,7 +188,7 @@ extern "C" {
|
|||
extern SwigType *SwigType_remove_global_scope_prefix(const SwigType *t);
|
||||
extern SwigType *SwigType_alttype(const SwigType *t, int ltmap);
|
||||
|
||||
/* --- Type-system managment --- */
|
||||
/* --- Type-system management --- */
|
||||
extern void SwigType_typesystem_init(void);
|
||||
extern int SwigType_typedef(const SwigType *type, const_String_or_char_ptr name);
|
||||
extern int SwigType_typedef_class(const_String_or_char_ptr name);
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ extern void Scanner_locator(Scanner *, String *loc);
|
|||
#define SWIG_TOKEN_COLON 12 /* : */
|
||||
#define SWIG_TOKEN_DCOLON 13 /* :: */
|
||||
#define SWIG_TOKEN_DCOLONSTAR 14 /* ::* */
|
||||
#define SWIG_TOKEN_ID 15 /* identifer */
|
||||
#define SWIG_TOKEN_ID 15 /* identifier */
|
||||
#define SWIG_TOKEN_FLOAT 16 /* 3.1415F */
|
||||
#define SWIG_TOKEN_DOUBLE 17 /* 3.1415 */
|
||||
#define SWIG_TOKEN_INT 18 /* 314 */
|
||||
|
|
|
|||
|
|
@ -570,7 +570,7 @@ static SwigType *_typedef_resolve(Typetab *s, String *base, int look_parent) {
|
|||
List *inherit;
|
||||
Typetab *parent;
|
||||
|
||||
/* if (!s) return 0; *//* now is checked bellow */
|
||||
/* if (!s) return 0; *//* now is checked below */
|
||||
/* Printf(stdout,"Typetab %s : %s\n", Getattr(s,"name"), base); */
|
||||
|
||||
if (!Getmark(s)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue