From 8ff40334958a6d05d4e1aabae956298325c31d10 Mon Sep 17 00:00:00 2001 From: Chris Angelico <rosuav@gmail.com> Date: Fri, 11 Aug 2017 21:40:09 +1000 Subject: [PATCH] Fix spelling of 'necessary' in comments and docs --- lib/modules/Calendar.pmod/Event.pmod | 2 +- lib/modules/Calendar.pmod/TimeRanges.pmod | 2 +- lib/modules/Standards.pmod/ID3.pmod | 2 +- lib/modules/String.pmod/Elite.pmod | 4 ++-- src/modules/Image/image.c | 8 ++++---- src/modules/MIME/mime.c | 2 +- src/peep.in | 2 +- 7 files changed, 11 insertions(+), 11 deletions(-) diff --git a/lib/modules/Calendar.pmod/Event.pmod b/lib/modules/Calendar.pmod/Event.pmod index 4a8fbe53e1..bb72bad213 100644 --- a/lib/modules/Calendar.pmod/Event.pmod +++ b/lib/modules/Calendar.pmod/Event.pmod @@ -1079,7 +1079,7 @@ class Easter int solar=century-century/4; int lunar=(century-15-(century-17)/25)/3; int epact=(13+11*(y%19)-solar+lunar)%30; -// if (epact<0) epact+=30; // not neccesary for pike +// if (epact<0) epact+=30; // not necessary for pike int new_moon=31-epact; // werror("epact: %O\n",epact); // werror("new_moon: %O\n",new_moon); diff --git a/lib/modules/Calendar.pmod/TimeRanges.pmod b/lib/modules/Calendar.pmod/TimeRanges.pmod index 18674641a3..8b3fc53209 100644 --- a/lib/modules/Calendar.pmod/TimeRanges.pmod +++ b/lib/modules/Calendar.pmod/TimeRanges.pmod @@ -315,7 +315,7 @@ class TimeRange //! method array(TimeRange) split(int|float n, void|TimeRange with) //! This divides the called timerange into //! n pieces. The returned timerange type -//! is not neccesarily of the same type as the called one. +//! is not necessarily of the same type as the called one. //! If the optional timerange is specified then the resulting timeranges //! will be multiples of that range (except for the last one). //! diff --git a/lib/modules/Standards.pmod/ID3.pmod b/lib/modules/Standards.pmod/ID3.pmod index 884cdc70c2..d5a93c5ab3 100644 --- a/lib/modules/Standards.pmod/ID3.pmod +++ b/lib/modules/Standards.pmod/ID3.pmod @@ -7,7 +7,7 @@ //! @note //! Note that this implementation is far //! from complete and that interface changes -//! might be neccessary during the implementation +//! might be necessary during the implementation //! of the full standard. // diff --git a/lib/modules/String.pmod/Elite.pmod b/lib/modules/String.pmod/Elite.pmod index 6f34f32872..4a37bb471a 100644 --- a/lib/modules/String.pmod/Elite.pmod +++ b/lib/modules/String.pmod/Elite.pmod @@ -1,7 +1,7 @@ #pike __REAL_VERSION__ -// neccesary translation (in order) +// necessary translation (in order) array(array(string|array(string))) elite_short = ({ ({" you are"," your"}), @@ -240,7 +240,7 @@ string elite_word(string in, void|int(0..100) leetp, void|int(0..2) eightbit) //! leetness (100=max leet, 0=no leet). //! //! The translation is performed in three steps, -//! first the neccesary elite translations (picture -> pic, +//! first the necessary elite translations (picture -> pic, //! cool->kewl etc), then optional translations //! (ok->k, dude->dood, -ers -> -orz), then //! calls elite_word on the resulting words. diff --git a/src/modules/Image/image.c b/src/modules/Image/image.c index 54586e63c9..df65943b8d 100644 --- a/src/modules/Image/image.c +++ b/src/modules/Image/image.c @@ -1280,10 +1280,10 @@ static void image_change_color(INT32 args) **! method array(int) find_autocrop() **! method array(int) find_autocrop(int border) **! method array(int) find_autocrop(int border,int left,int right,int top,int bottom) -**! Removes "unneccesary" borders around the image, adds one of +**! Removes "unnecessary" borders around the image, adds one of **! its own if wanted to, in selected directions. **! -**! "Unneccesary" is all pixels that are equal -- ie if all the same pixels +**! "Unnecessary" is all pixels that are equal -- ie if all the same pixels **! to the left are the same color, that column of pixels are removed. **! **! The find_autocrop() function simply returns x1,y1,x2,y2 for the @@ -1297,8 +1297,8 @@ static void image_change_color(INT32 args) **! arg int right **! arg int top **! arg int bottom -**! which borders to scan and cut the image; -**! a typical example is removing the top and bottom unneccesary +**! which borders to scan and cut the image; +**! a typical example is removing the top and bottom unnecessary **! pixels: **! <pre>img=img->autocrop(0, 0,0,1,1);</pre> **! diff --git a/src/modules/MIME/mime.c b/src/modules/MIME/mime.c index 001d44d1a2..adb7cfa072 100644 --- a/src/modules/MIME/mime.c +++ b/src/modules/MIME/mime.c @@ -689,7 +689,7 @@ static void f_encode_uue( INT32 args ) /* Restore the saved character */ *kp = k; - /* Replace final nulls with pad characters if neccesary */ + /* Replace final nulls with pad characters if necessary */ switch (last) { case 1: dest[-2] = '`'; diff --git a/src/peep.in b/src/peep.in index a9419a6257..bb7e5d754e 100644 --- a/src/peep.in +++ b/src/peep.in @@ -460,7 +460,7 @@ EQ BRANCH_WHEN_NON_ZERO : EQ QUICK_BRANCH_WHEN_NON_ZERO($2a) SIZEOF BRANCH_WHEN_NON_ZERO : SIZEOF($1a) QUICK_BRANCH_WHEN_NON_ZERO($2a) SIZEOF_LOCAL BRANCH_WHEN_NON_ZERO : SIZEOF_LOCAL($1a) QUICK_BRANCH_WHEN_NON_ZERO($2a) -// It is not really neccessary to set up a frame for these cases. +// It is not really necessary to set up a frame for these cases. // Deluxe version: Also avoid the argument/local clearing, asm-level // register pushing etc. // -- GitLab