Skip to content

Commit fd4ff20

Browse files
luzpazrurban
authored andcommitted
Fix various typos
Found via: `codespell -q 3 -S "./.git,*.patch,ChangeLog,./NEWS,./src/codepages" -L 2rd,aadd,addd,aded,afe,ba,baed,beed,caf,childs,daa,ded,ede,fo,gir,gord,gost,nam,noo,oce,re-use,ro,siz,te,teh,tekst,ue,uptodate`
1 parent f70a0d7 commit fd4ff20

File tree

10 files changed

+16
-16
lines changed

10 files changed

+16
-16
lines changed

HACKING

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ someone should probably think about and resolve them!
5959

6060
The optional number after those 4 numbers is the number of commits not yet
6161
merged to master. E.g. the 1 in 0.5.0.1093.1_967f.
62-
And finally for local development builds the abbrevated git tag, e.g. the 967f
62+
And finally for local development builds the abbreviated git tag, e.g. the 967f
6363
in 0.5.0.1093.1_967f.
6464

6565
So a released version will be 2 or 3 numbers, a development version will also
@@ -177,7 +177,7 @@ someone should probably think about and resolve them!
177177
see NEWS'
178178
- merge it into master (ff)
179179
- update the tag: git tag -d 0.6.2; git tag -s -m 'release 0.6.2' 0.6.2
180-
- make dist to create the source tarballs. if seperate build dirs, in a
180+
- make dist to create the source tarballs. if separate build dirs, in a
181181
config with --enable-release only.
182182
- check if the source tarballs compile
183183
- push master and tags to run the CI and create the windows binaries on appveyor

doc/LibreDWG.texi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1145,7 +1145,7 @@ or converted utf8 string.
11451145
@deftypefn {Function} bool dwg_dynapi_entity_value (void *@var{entity}, const char *@var{dxfname}, const char *@var{fieldname}, void *@var{out}, Dwg_DYNAPI_field *@var{fp})
11461146
@var{entity} is of type @code{dwg_ent_generic}, that is the pointer to the object specific struct.
11471147
@var{dxfname} is the dxfname of the object, @var{fieldname} is the field or property name of the field to be read from,
1148-
*@var{out} the result pointer and the optiona *@var{fp} is filled by the information for this field.
1148+
*@var{out} the result pointer and the optional *@var{fp} is filled by the information for this field.
11491149
@end deftypefn
11501150

11511151
@deftypefn {Function} bool dwg_dynapi_common_value (void *@var{entity}, const char *@var{fieldname}, void *@var{out}, Dwg_DYNAPI_field *@var{fp})

include/dwg.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3526,7 +3526,7 @@ typedef struct _dwg_object_VPORT
35263526
BITCODE_2RD lower_left;
35273527
BITCODE_2RD upper_right;
35283528
BITCODE_B UCSFOLLOW;
3529-
BITCODE_BS circle_zoom; /* circle sides: nr of tesselations */
3529+
BITCODE_BS circle_zoom; /* circle sides: nr of tessellations */
35303530
BITCODE_B FASTZOOM;
35313531
BITCODE_RC UCSICON; /* DXF 74: 0: icon_on, 1: icon_at_ucsorg */
35323532
BITCODE_B GRIDMODE; /* DXF 76: on or off */
@@ -4389,7 +4389,7 @@ typedef struct _dwg_object_PLOTSETTINGS
43894389
BITCODE_BS shadeplot_type; /*!< DXF 76, 0 display, 1 wireframe, 2 hidden, 3
43904390
rendered, 4 visualstyle, 5 renderPreset */
43914391
BITCODE_BS
4392-
shadeplot_reslevel; /*!< DXF 77, 0 draft, 1 preview, 2 nomal,
4392+
shadeplot_reslevel; /*!< DXF 77, 0 draft, 1 preview, 2 normal,
43934393
3 presentation, 4 maximum, 5 custom */
43944394
BITCODE_BS shadeplot_customdpi; /*!< DXF 78, 100-32767 */
43954395
BITCODE_H shadeplot; /*!< DXF 333 optional. As in VIEWPORT */
@@ -11588,7 +11588,7 @@ dwg_get_entity_layer (const Dwg_Object_Entity *restrict);
1158811588

1158911589
EXPORT Dwg_Object *dwg_next_object (const Dwg_Object *obj);
1159011590
EXPORT Dwg_Object *dwg_next_entity (const Dwg_Object *obj);
11591-
// next available 0 ref + 1, when all refs are alreay filled
11591+
// next available 0 ref + 1, when all refs are already filled
1159211592
EXPORT BITCODE_HV dwg_next_handle (const Dwg_Data *dwg);
1159311593
// next available handle, computed form the HANDSEED, which is bumped
1159411594
EXPORT BITCODE_HV dwg_next_handseed (Dwg_Data *dwg);

src/common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ delete_hv (BITCODE_H *entries, BITCODE_BS *num_p, BITCODE_BS i)
506506
}
507507
}
508508

509-
// find if handle already exists, returs index or -1
509+
// find if handle already exists, returns index or -1
510510
BITCODE_BSd find_hv (BITCODE_H *entries, BITCODE_BS num_entries,
511511
BITCODE_RLL handle_value)
512512
{

src/decode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6715,7 +6715,7 @@ decode_preR13_entities (BITCODE_RL start, BITCODE_RL end,
67156715
real_start -= 16;
67166716
}
67176717

6718-
// report unknown data before entites block
6718+
// report unknown data before entities block
67196719
if (start != end && real_start > 0 && (BITCODE_RL)dat->byte != real_start)
67206720
{
67216721
LOG_WARN ("\n@0x%zx => start 0x%x", dat->byte, real_start);

src/dwg.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2889,8 +2889,8 @@ dwg_handle_name (Dwg_Data *restrict dwg, const char *restrict table,
28892889
_o = hobj->tio.object->tio.APPID;
28902890
name = hobj->name;
28912891
/* For BLOCK search the BLOCK entities instead.
2892-
The BLOCK_HEADER has only the abbrevated name, but we want "*D30", not
2893-
"*D" */
2892+
The BLOCK_HEADER has only the abbreviated name, but we want "*D30",
2893+
not "*D" */
28942894
if (strEQc (table, "BLOCK") && hobj->fixedtype == DWG_TYPE_BLOCK_HEADER)
28952895
{
28962896
Dwg_Object_BLOCK_HEADER *_bh = hobj->tio.object->tio.BLOCK_HEADER;

src/dwg.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11850,7 +11850,7 @@ DWG_ENTITY (JUMP)
1185011850
}
1185111851

1185211852
#ifdef IS_DECODER
11853-
/* rest: TODO seperate unknown_bits from unknown_rest */
11853+
/* rest: TODO separate unknown_bits from unknown_rest */
1185411854
if (dat->byte < obj->address + obj->size)
1185511855
{
1185611856
len = obj->address + obj->size - dat->byte;

src/header.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
FIELD_RS (numheader_vars, 0); // 74,83,101,104,114,120,122,129,158,160,204,205
3939
FIELD_RC (dwg_version, 0); // 0
4040

41-
// The 3 entitity data sections
41+
// The 3 entity data sections
4242
FIELD_RLx (entities_start, 0);
4343
FIELD_RLx (entities_end, 0);
4444
FIELD_RLx (blocks_start, 0);

test/unit-testing/bits_test.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ bit_BL_tests (void)
464464
bitfree (&bitchain);
465465
}
466466

467-
// seperate branches for bit=0 and bit=1
467+
// separate branches for bit=0 and bit=1
468468
static void
469469
bit_RD_tests (void)
470470
{
@@ -502,7 +502,7 @@ bit_RD_tests (void)
502502
bitfree (&bitchain);
503503
}
504504

505-
// seperate branches for bit=0 and bit=1
505+
// separate branches for bit=0 and bit=1
506506
static void
507507
bit_BD_tests (void)
508508
{

test/unit-testing/vport.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ api_process (dwg_object *obj)
3737
BITCODE_2RD lower_left;
3838
BITCODE_2RD upper_right;
3939
BITCODE_B UCSFOLLOW;
40-
BITCODE_BS circle_zoom; /* circle sides: nr of tesselations */
40+
BITCODE_BS circle_zoom; /* circle sides: nr of tessellations */
4141
BITCODE_B FASTZOOM;
4242
BITCODE_RC UCSICON;
4343
BITCODE_B GRIDMODE;
@@ -98,7 +98,7 @@ api_process (dwg_object *obj)
9898
CHK_ENTITY_2RD (_obj, VPORT, upper_right);
9999
CHK_ENTITY_TYPE (_obj, VPORT, UCSFOLLOW, B);
100100
CHK_ENTITY_TYPE (_obj, VPORT, circle_zoom,
101-
BS); /* circle sides: nr of tesselations */
101+
BS); /* circle sides: nr of tessellations */
102102
CHK_ENTITY_TYPE (_obj, VPORT, FASTZOOM, B);
103103
CHK_ENTITY_TYPE (_obj, VPORT, UCSICON, RC);
104104
CHK_ENTITY_TYPE (_obj, VPORT, GRIDMODE, B);

0 commit comments

Comments
 (0)