summaryrefslogtreecommitdiff
path: root/fluid/code.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2023-08-26 15:17:28 +0200
committerMatthias Melcher <github@matthiasm.com>2023-08-26 15:17:28 +0200
commit94a75b012f3557687574df6533296c1a4ef51b3e (patch)
tree5e2db2271774bda929f2d66739974fa8fbffe0cb /fluid/code.cxx
parentd9d474c59372a8b2b0829c400b5d0584129e3822 (diff)
Fixes a bunch of typos in comments.
Diffstat (limited to 'fluid/code.cxx')
-rw-r--r--fluid/code.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/fluid/code.cxx b/fluid/code.cxx
index 452aa8b67..7a3725ee0 100644
--- a/fluid/code.cxx
+++ b/fluid/code.cxx
@@ -1,7 +1,7 @@
//
// Code output routines for the Fast Light Tool Kit (FLTK).
//
-// Copyright 1998-2021 by Bill Spitzak and others.
+// Copyright 1998-2023 by Bill Spitzak and others.
//
// This library is free software. Distribution and use rights are outlined in
// the file "COPYING" which should have been included with this file. If this
@@ -44,7 +44,7 @@ int is_id(char c) {
}
/**
- Write a file that contains all label and tooltip strings for internationalisation.
+ Write a file that contains all label and tooltip strings for internationalization.
*/
int write_strings(const char *sfile) {
FILE *fp = fl_fopen(sfile, "w");
@@ -187,7 +187,7 @@ Fd_Identifier_Tree::~Fd_Identifier_Tree() {
/** \brief Return a unique name for the given object.
- This function combines the anem and label into an identifier. It then checks
+ This function combines the name and label into an identifier. It then checks
if that id was already taken by another object, and if so, appends a
hexadecimal value which is incremented until the id is unique in this file.
@@ -385,7 +385,7 @@ bool Fd_Code_Writer::c_contains(void *pp) {
Adds " before and after the text.
A list of control characters and ", ', and \\ are escaped by adding a \\ in
- front of them. Escape ?? by wrinting ?\\?. All other characters that are not
+ front of them. Escape ?? by writing ?\\?. All other characters that are not
between 32 and 126 inclusive will be escaped as octal characters.
This function is utf8 agnostic.
@@ -610,7 +610,7 @@ void Fd_Code_Writer::write_hc(const char *indent, int n, const char* c, const ch
/**
Write one or more lines of code, indenting each one of them.
- \param[in] textlines one or more lines of text, seperated by \\n
+ \param[in] textlines one or more lines of text, separated by \\n
*/
void Fd_Code_Writer::write_c_indented(const char *textlines, int inIndent, char inTrailwWith) {
if (textlines) {
@@ -738,7 +738,7 @@ int Fd_Code_Writer::write_code(const char *s, const char *t, bool to_sourceview)
first_type->code_position = (int)ftell(code_file);
first_type->header_position = (int)ftell(header_file);
}
- // it is ok to write non-recusive code here, because comments have no children or code2 blocks
+ // it is ok to write non-recursive code here, because comments have no children or code2 blocks
first_type->write_code1(*this);
if (write_sourceview) {
first_type->code_position_end = (int)ftell(code_file);