aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGevel Tekens <geveltekens@gmail.com>2025-02-04 23:13:27 +0100
committerRodrigo Arias Mallo <rodarima@gmail.com>2025-02-05 21:50:39 +0100
commit6cd133d2f242d36bd48ddea44acd868f70782d0b (patch)
treed6846c0e13706fb1dbb94885cb2980a639d22735 /src
parent0c7e087fbd0278da9a39bd16ab9385073f1f495c (diff)
Fix several typos
See: https://lists.mailman3.com/hyperkitty/list/dillo-dev@mailman3.com/thread/L3FFAINJJMIOZQNID5HC2DHKJIIIHEYH/
Diffstat (limited to 'src')
-rw-r--r--src/cssparser.cc4
-rw-r--r--src/digest.c2
-rw-r--r--src/dillo.cc2
-rw-r--r--src/gif.c2
-rw-r--r--src/hsts.c2
-rw-r--r--src/html.cc8
-rw-r--r--src/nanosvg.h4
-rw-r--r--src/png.c4
-rw-r--r--src/styleengine.cc2
-rw-r--r--src/ui.hh2
-rw-r--r--src/uicmd.cc2
-rw-r--r--src/url.c4
12 files changed, 19 insertions, 19 deletions
diff --git a/src/cssparser.cc b/src/cssparser.cc
index 83bc3f10..071f519f 100644
--- a/src/cssparser.cc
+++ b/src/cssparser.cc
@@ -1105,7 +1105,7 @@ bool CssParser::parseValue(CssPropertyName prop,
case CSS_TYPE_BACKGROUND_POSITION:
// 'background-position' consists of one or two values: vertical and
// horizontal position; in most cases in this order. However, as long it
- // is unambigous, the order can be switched: "10px left" and "left 10px"
+ // is unambiguous, the order can be switched: "10px left" and "left 10px"
// are both possible and have the same effect. For this reason, all
// possibilities are tested in parallel.
@@ -1119,7 +1119,7 @@ bool CssParser::parseValue(CssPropertyName prop,
for (i = 0; i < 2; i++) {
CssValueType typeTmp;
// tokenMatchesProperty will, for CSS_PROPERTY_BACKGROUND_POSITION,
- // work on both parts, since they are exchangable.
+ // work on both parts, since they are exchangeable.
if (tokenMatchesProperty (CSS_PROPERTY_BACKGROUND_POSITION,
&typeTmp)) {
h[i] = ttype != CSS_TK_SYMBOL ||
diff --git a/src/digest.c b/src/digest.c
index 090b1aec..47d0792f 100644
--- a/src/digest.c
+++ b/src/digest.c
@@ -87,7 +87,7 @@ int a_Digest_compute_digest(AuthRealm_t *realm, const char *username,
}
/**
- * This portion is calculatd for each request.
+ * This portion is calculated for each request.
*/
static Dstr *Digest_create_response(AuthRealm_t *realm, const char *method,
const char *digest_uri,
diff --git a/src/dillo.cc b/src/dillo.cc
index 405f4c3e..5818e352 100644
--- a/src/dillo.cc
+++ b/src/dillo.cc
@@ -165,7 +165,7 @@ static void est_sigchld(void)
(void) sigemptyset(&set);
sigact.sa_handler = raw_sigchld2; /* our custom handler */
- sigact.sa_mask = set; /* no aditional signal blocks */
+ sigact.sa_mask = set; /* no additional signal blocks */
sigact.sa_flags = SA_NOCLDSTOP; /* ignore stop/resume states */
if (sigaction(SIGCHLD, &sigact, NULL) == -1) {
perror("sigaction");
diff --git a/src/gif.c b/src/gif.c
index a104ca1d..bd0a3757 100644
--- a/src/gif.c
+++ b/src/gif.c
@@ -900,7 +900,7 @@ static size_t GIF_Block(DilloGif * gif, void *Buf,
if (bsize < 2)
return Size;
- /* Have the extension block intepreted. */
+ /* Have the extension block interpreted. */
C = *buf++;
bsize--;
mysize = Gif_do_extension(gif, C, buf, bsize);
diff --git a/src/hsts.c b/src/hsts.c
index 3ea82070..f1349c43 100644
--- a/src/hsts.c
+++ b/src/hsts.c
@@ -196,7 +196,7 @@ static void Hsts_eat_value(const char **str)
}
/**
- * The reponse for this url had an HSTS header, so let's take action.
+ * The response for this url had an HSTS header, so let's take action.
*/
void a_Hsts_set(const char *header, const DilloUrl *url)
{
diff --git a/src/html.cc b/src/html.cc
index 69b495d6..ebe36599 100644
--- a/src/html.cc
+++ b/src/html.cc
@@ -339,7 +339,7 @@ void a_Html_tag_set_align_attr(DilloHtml *html, const char *tag, int tagsize)
v.textAlign = TEXT_ALIGN_STRING;
if ((charattr = a_Html_get_attr(html, tag, tagsize, "char"))) {
if (charattr[0] == 0)
- /* TODO: ALIGN=" ", and even ALIGN="&32;" will reult in
+ /* TODO: ALIGN=" ", and even ALIGN="&32;" will result in
* an empty string (don't know whether the latter is
* correct, has to be clarified with the specs), so
* that for empty strings, " " is assumed. */
@@ -2349,7 +2349,7 @@ static void Html_tag_close_map(DilloHtml *html)
if (img) {
// At this point, we know that img->ir represents an image
- // widget. (Really? Is this assumtion safe?) Notice that the
+ // widget. (Really? Is this assumption safe?) Notice that the
// order of the casts matters, because of multiple
// inheritance.
dw::Image *dwi = (dw::Image*)(dw::core::ImgRenderer*)img->img_rndr;
@@ -3903,7 +3903,7 @@ static void Html_parse_common_attrs(DilloHtml *html, char *tag, int tagsize)
if (tagsize >= 8 && /* length of "<t id=i>" */
(attrbuf = a_Html_get_attr(html, tag, tagsize, "id"))) {
/* According to the SGML declaration of HTML 4, all NAME values
- * occuring outside entities must be converted to uppercase
+ * occurring outside entities must be converted to uppercase
* (this is what "NAMECASE GENERAL YES" says). But the HTML 4
* spec states in Sec. 7.5.2 that anchor ids are case-sensitive.
* So we don't do it and hope for better specs in the future ...
@@ -4290,7 +4290,7 @@ char *a_Html_get_attr_wdef(DilloHtml *html,
}
/**
- * Dispatch the apropriate function for 'Op'.
+ * Dispatch the appropriate function for 'Op'.
* This function is a Cache client and gets called whenever new data arrives
* @param Op operation to perform.
* @param CbData a pointer to a DilloHtml structure
diff --git a/src/nanosvg.h b/src/nanosvg.h
index db5382a1..0de3abfc 100644
--- a/src/nanosvg.h
+++ b/src/nanosvg.h
@@ -849,10 +849,10 @@ static NSVGgradient* nsvg__createGradient(NSVGparser* p, const char* id, const f
break;
}
nextRef = nsvg__findGradientData(p, ref->ref);
- if (nextRef == ref) break; // prevent infite loops on malformed data
+ if (nextRef == ref) break; // prevent infinite loops on malformed data
ref = nextRef;
refIter++;
- if (refIter > 32) break; // prevent infite loops on malformed data
+ if (refIter > 32) break; // prevent infinite loops on malformed data
}
if (stops == NULL) return NULL;
diff --git a/src/png.c b/src/png.c
index a1c3f3f1..78c93c63 100644
--- a/src/png.c
+++ b/src/png.c
@@ -250,14 +250,14 @@ static void
break;
case 4:
{
- /* TODO: get the backgound color from the parent
+ /* TODO: get the background color from the parent
* of the image widget -- Livio. */
int a, bg_red, bg_green, bg_blue;
uchar_t *pl = png->linebuf;
uchar_t *data = png->image_data + (row_num * png->rowbytes);
/* TODO: maybe change prefs.bg_color to `a_Dw_widget_get_bg_color`,
- * when background colors are correctly implementated */
+ * when background colors are correctly implemented */
bg_blue = (png->bgcolor) & 0xFF;
bg_green = (png->bgcolor>>8) & 0xFF;
bg_red = (png->bgcolor>>16) & 0xFF;
diff --git a/src/styleengine.cc b/src/styleengine.cc
index ceef1a67..ef8ab3c0 100644
--- a/src/styleengine.cc
+++ b/src/styleengine.cc
@@ -27,7 +27,7 @@ using namespace dw::core::style;
* of StyleImage is deleted, possibly when the cache client is still
* active.
*
- * \todo Not neccessary for dw::Image? (dw::Image also implements
+ * \todo Not necessary for dw::Image? (dw::Image also implements
* lout::signal::ObservedObject.)
*/
class StyleImageDeletionReceiver:
diff --git a/src/ui.hh b/src/ui.hh
index ddd5a2e2..21ca6ffe 100644
--- a/src/ui.hh
+++ b/src/ui.hh
@@ -46,7 +46,7 @@ class CustTabs;
/**
* Used to reposition group's widgets when some of them are hidden.
* All children get the height of the group but retain their original width.
- * The resizable child get's the remaining space.
+ * The resizable child gets the remaining space.
*/
class CustGroupHorizontal : public Fl_Group {
Fl_Widget *rsz;
diff --git a/src/uicmd.cc b/src/uicmd.cc
index 273bcb9f..60381867 100644
--- a/src/uicmd.cc
+++ b/src/uicmd.cc
@@ -58,7 +58,7 @@
// Handy macro
#define BW2UI(bw) ((UI*)((bw)->ui))
-// Platform idependent part
+// Platform independent part
using namespace dw::core;
// FLTK related
using namespace dw::fltk;
diff --git a/src/url.c b/src/url.c
index 54569013..b50e6a72 100644
--- a/src/url.c
+++ b/src/url.c
@@ -38,7 +38,7 @@
* abs_path = "/" path_segments
*
* Notes:
- * - "undefined" means "preceeding separator does not appear".
+ * - "undefined" means "preceding separator does not appear".
* - path is never "undefined" though it may be "empty".
*/
@@ -371,7 +371,7 @@ done:
DilloUrl* a_Url_new(const char *url_str, const char *base_url)
{
DilloUrl *url;
- char *urlstr = (char *)url_str; /* auxiliar variable, don't free */
+ char *urlstr = (char *)url_str; /* auxiliary variable, don't free */
char *p, *str1 = NULL, *str2 = NULL;
Dstr *SolvedUrl;
int i, n_ic, n_ic_spc;