Skip to content

Commit

Permalink
Fix codespell complaints (#720)
Browse files Browse the repository at this point in the history
  • Loading branch information
derobins authored May 24, 2024
1 parent 7c26c42 commit 98d4f3b
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/codespell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ jobs:
- uses: codespell-project/actions-codespell@master
with:
skip: ./config/sanitizer/sanitizers.cmake,./hdf/util/testfiles/*.raw,./hdf/util/testfiles/head.r8,./mfhdf/ncdump/*,./mfhdf/ncgen/*,./mfhdf/nctest/*,./mfhdf/README,./mfhdf/THANKS,./mfhdf/FAQ
ignore_words_list: acount,anid,ans,clude,isnt,inout,fo,msdos,nam,nd,pres,sav,shs,siz,varn,vlone
ignore_words_list: acount,anid,ans,clude,fillin,isnt,inout,fo,msdos,nam,nd,pres,sav,shs,siz,varn,vlone
2 changes: 1 addition & 1 deletion config/cmake/NSIS.template.in
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ Function un.RemoveFromPath
FunctionEnd

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Uninstall sutff
; Uninstall stuff
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

###########################################
Expand Down
2 changes: 1 addition & 1 deletion hdf/src/dfsd_priv.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ typedef struct DFSsdg {
char **dimluf[3]; /* label/unit/format for each dim */
uint8 **dimscales; /* scales for each dimension */
uint8 max_min[16]; /* max, min values of data, */
/* currently atmost 8 bytes each */
/* currently at most 8 bytes each */
int32 numbertype; /* default is float32 */
uint8 filenumsubclass; /* number format in the file, default is IEEE */
int32 aid; /* access id */
Expand Down
2 changes: 1 addition & 1 deletion hdf/src/vattr.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
* 2 2 2 2 2
* more flags < nattrs attr0_tag/ref attr1_tag/ref ...>
* 2 4 4 2/2 2/2
* <other new featrues > version more extra_byte
* <other new features > version more extra_byte
* 2 2 1
*
* o To make version number accessible without parsing the
Expand Down
4 changes: 2 additions & 2 deletions hdf/test/chunks.c
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ test_chunks(void)

/* allocate space for chunk dimensions */
if ((chunk[0].pdims = (DIM_DEF *)malloc(5 * sizeof(DIM_DEF))) == NULL) {
printf("test_chunks: error allocatin space for chunk dims\n");
printf("test_chunks: error allocating space for chunk dims\n");
errors++;
goto done;
}
Expand Down Expand Up @@ -1443,7 +1443,7 @@ test_chunks(void)
9. Create 4-D element with partial chunks.
Write only half the data out(5,000 bytes)
Set dimension to 10x10x10x10 array real data 10,000 bytes .
120 chunks whit chunks of 2x3x4x5 = 120 bytes,
120 chunks with chunks of 2x3x4x5 = 120 bytes,
data size with chunks is 120 bytes x 120 chunks = 14,400 bytes
*/
chunk[0].num_dims = 4;
Expand Down
2 changes: 1 addition & 1 deletion hdf/test/fortest.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ main(int argc, char *argv[])
printf("verbose controls the amount of information displayed\n");
printf("exclude to exclude tests by name\n");
printf("only to name tests which should be run\n");
printf("begin start at the name of the test givin\n");
printf("begin start at the name of the test given\n");
printf("summary prints a summary of test results at the end\n");
printf("cleanno does not delete *.hdf files after execution of tests\n");
printf("\n\n");
Expand Down
2 changes: 1 addition & 1 deletion hdf/test/testhdf.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ usage(void)
printf("verbose controls the amount of information displayed\n");
printf("exclude to exclude tests by name\n");
printf("only to name tests which should be run\n");
printf("begin start at the name of the test givin\n");
printf("begin start at the name of the test given\n");
printf("summary prints a summary of test results at the end\n");
printf("cleanoff does not delete *.hdf files after execution of tests\n");
printf("nocaching do not turn on low-level DD caching\n");
Expand Down
6 changes: 3 additions & 3 deletions mfhdf/hdiff/hdiff_list.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ hdiff_list(const char *fname, dtable_t *table, diff_dim_table_t *td1, diff_dim_t
goto out;
}

/* iterate tru HDF interfaces */
/* iterate through HDF interfaces */
if (hdiff_list_vg(fname, file_id, sd_id, gr_id, table, td1, td2) < 0)
goto out;
if (hdiff_list_gr(file_id, gr_id, table) < 0)
Expand Down Expand Up @@ -175,7 +175,7 @@ hdiff_list_vg(const char *fname, int32 file_id, int32 sd_id, /* SD interface ide
nlones = Vlone(file_id, ref_array, nlones);

/*
* iterate tru each lone vgroup.
* iterate through each lone vgroup.
*/
for (i = 0; i < nlones; i++) {

Expand Down Expand Up @@ -600,7 +600,7 @@ hdiff_list_vs(int32 file_id, dtable_t *table)
nlones = VSlone(file_id, ref_array, nlones);

/*
* iterate tru each lone vdata.
* iterate through each lone vdata.
*/
for (i = 0; i < nlones; i++) {
/*
Expand Down
4 changes: 2 additions & 2 deletions mfhdf/hrepack/hrepack.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ hrepack_addcomp(const char *str, options_t *options)
if ((obj_list = parse_comp(str, &n_objs, &comp)) == NULL)
return FAIL;

/* searh for the "*" all objects character */
/* search for the "*" all objects character */
for (i = 0; i < n_objs; i++) {
if (strcmp("*", obj_list[i].obj) == 0) {
/* if we are compressing all set the global comp type */
Expand Down Expand Up @@ -151,7 +151,7 @@ hrepack_addchunk(const char *str, options_t *options)
if ((obj_list = parse_chunk(str, &n_objs, chunk_lengths, &chunk_rank)) == NULL)
return FAIL;

/* searh for the "*" all objects character */
/* search for the "*" all objects character */
for (i = 0; i < n_objs; i++) {
if (strcmp("*", obj_list[i].obj) == 0) {
/* if we are chunking all set the global chunking type */
Expand Down
4 changes: 2 additions & 2 deletions mfhdf/hrepack/hrepack_list.c
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ list_vg(int32 infile_id, int32 outfile_id, int32 sd_id, int32 sd_out, int32 gr_i
nlones = Vlone(infile_id, ref_array, nlones);

/*
* iterate tru each lone vgroup.
* iterate through each lone vgroup.
*/
for (i = 0; i < nlones; i++) {

Expand Down Expand Up @@ -979,7 +979,7 @@ list_vs(int32 infile_id, int32 outfile_id, list_table_t *list_tbl, options_t *op
nlones = VSlone(infile_id, ref_array, nlones);

/*
* iterate tru each lone vdata.
* iterate through each lone vdata.
*/
for (i = 0; i < nlones; i++) {
/*
Expand Down
8 changes: 4 additions & 4 deletions mfhdf/hrepack/hrepack_opttable.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ options_add_chunk(obj_list_t *obj_list, int n_objs, int32 *chunk_lengths, int ch

/* search if this object is already in the table; "path" is the key */
if (op_tbl->nelems > 0) {
/* go tru the supplied list of names */
/* go through the supplied list of names */
for (j = 0; j < n_objs; j++) {
/* linear table search */
for (i = 0; i < op_tbl->nelems; i++) {
Expand Down Expand Up @@ -129,7 +129,7 @@ options_add_chunk(obj_list_t *obj_list, int n_objs, int32 *chunk_lengths, int ch

/* first time insertion */
else {
/* go tru the supplied list of names */
/* go through the supplied list of names */
for (j = 0; j < n_objs; j++) {
I = op_tbl->nelems + added;
added++;
Expand Down Expand Up @@ -173,7 +173,7 @@ options_add_comp(obj_list_t *obj_list, int n_objs, comp_info_t comp, options_tab

/* search if this object is already in the table; "path" is the key */
if (op_tbl->nelems > 0) {
/* go tru the supplied list of names */
/* go through the supplied list of names */
for (j = 0; j < n_objs; j++) {
/* linear table search */
for (i = 0; i < op_tbl->nelems; i++) {
Expand Down Expand Up @@ -206,7 +206,7 @@ options_add_comp(obj_list_t *obj_list, int n_objs, comp_info_t comp, options_tab

/* first time insertion */
else {
/* go tru the supplied list of names */
/* go through the supplied list of names */
for (j = 0; j < n_objs; j++) {
I = op_tbl->nelems + added;
added++;
Expand Down

0 comments on commit 98d4f3b

Please sign in to comment.