Skip to content

Commit

Permalink
Fixed spellings (HDFGroup#456)
Browse files Browse the repository at this point in the history
  • Loading branch information
bmribler authored Oct 6, 2023
1 parent dc2ef08 commit 9cc959a
Show file tree
Hide file tree
Showing 36 changed files with 86 additions and 87 deletions.
2 changes: 1 addition & 1 deletion CMakeInstallation.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ if (NOT HDF4_EXTERNALLY_CONFIGURED AND NOT HDF4_NO_PACKAGES)
set (CPACK_NSIS_INSTALL_ROOT "$PROGRAMFILES")
set (CPACK_PACKAGE_INSTALL_REGISTRY_KEY "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}")
endif ()
# set the install/unistall icon used for the installer itself
# set the install/uninstall icon used for the installer itself
# There is a bug in NSI that does not handle full unix paths properly.
set (CPACK_NSIS_MUI_ICON "${HDF_RESOURCES_DIR}\\\\hdf.ico")
set (CPACK_NSIS_MUI_UNIICON "${HDF_RESOURCES_DIR}\\\\hdf.ico")
Expand Down
2 changes: 1 addition & 1 deletion config/cmake/UseJava.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -1474,7 +1474,7 @@ function (create_javah)
"CLASSES;CLASSPATH;DEPENDS"
${ARGN})

# ckeck parameters
# check parameters
if (NOT _create_javah_TARGET AND NOT _create_javah_GENERATED_FILES)
message (FATAL_ERROR "create_javah: TARGET or GENERATED_FILES must be specified.")
endif()
Expand Down
2 changes: 1 addition & 1 deletion hdf/src/dfconv.c
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ DFKislitendNT(int32 numbertype)
*
* This routine is called by HDF version 3.0 compatibility
* routines. It serves as a jump point to the new version 4.0
* comversion functions. DFconvert() CANNOT be used by Vdata
* conversion functions. DFconvert() CANNOT be used by Vdata
* applications because it assumes a stride of 1 (for
* compatibility). Vdata routines should call DFnum_in() and
* DFKnumout() (depending on which translation is needed)
Expand Down
2 changes: 1 addition & 1 deletion hdf/src/dfgroup.c
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ DFdiwrite(int32 file_id, int32 list, uint16 tag, uint16 ref)
* that info is kept in a global array called Group_List. the size of Group_List
* is fixed, and contains MAX_GROUPS pointers. When DFdiget() has returned
* the last tag-ref pair from a given group's info, that info is freed, and
* the corresponding slot in the Group_List array is available for re-use.
* the corresponding slot in the Group_List array is available for reuse.
*
* If DFdiget() is NOT called for every pair in the group, the group info is
* never freed, except by the use of this routine. So when a loop based on
Expand Down
2 changes: 1 addition & 1 deletion hdf/src/hblocks.c
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,7 @@ HLgetdatainfo(int32 file_id, uint8 *buf, /* IN: special header info */
int32 num_blocks, /* number of blocks in each table */
block_length, /* length of each block */
total_length, /* total data length of the element */
accum_length; /* accummulative length of actual data in blocks */
accum_length; /* accumulative length of actual data in blocks */
int ii;
intn ret_value = SUCCEED;

Expand Down
8 changes: 4 additions & 4 deletions hdf/src/hchunks.c
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ LOCAL ROUTINES
*/

/* For Statistics from the chunk cache.
Note thate 'mache.c' must be compilied with -DSTATISTICS */
Note thate 'mache.c' must be compiled with -DSTATISTICS */
/*
#define STATISTICS
*/
Expand Down Expand Up @@ -723,7 +723,7 @@ calculate_chunk_for_chunk(int32 *chunk_size, /* OUT: chunk size for this c
int32 ndims, /* IN: number of dims */
int32 nt_size, /* IN: number type size */
int32 len, /* IN: total length to operate on */
int32 bytes_finished, /* IN: bytes already operted on*/
int32 bytes_finished, /* IN: bytes already operated on*/
int32 *sbi, /* IN: seek chunk array */
int32 *spb, /* IN: seek pos w/ chunk array */
DIM_REC *ddims /* IN: dim record ptrs */)
Expand Down Expand Up @@ -1179,7 +1179,7 @@ HMCIstaccess(accrec_t *access_rec, /* IN: access record to fill in */
NOTE: Should change this to a single VSread() but then
would have to store all the v_data rec's somewhere
before inserting them into the TBBT tree...
....for somone to do later if performance of VSread() is bad.
....for someone to do later if performance of VSread() is bad.
Technically a B+-Tree should have been used instead or
better yet the Vdata implementation should be re-written to use one.
Note that chunk tag DTAG_CHUNK is not verified here.
Expand Down Expand Up @@ -3790,7 +3790,7 @@ HMCPinfo(accrec_t *access_rec, /* IN: access record of access element */
/* fill in the info_chunk */
info = (chunkinfo_t *)access_rec->special_info;
info_chunk->key = SPECIAL_CHUNKED;
info_chunk->chunk_size = (info->chunk_size * info->nt_size); /* phsyical size */
info_chunk->chunk_size = (info->chunk_size * info->nt_size); /* physical size */
info_chunk->ndims = info->ndims;
if ((info->flag & 0xff) == SPECIAL_COMP) /* only using 8bits for now */
{
Expand Down
2 changes: 1 addition & 1 deletion hdf/src/hfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -2440,7 +2440,7 @@ HDbase_tag(uint16 tag)
returns SUCCEED (0).
DESCRIPTION
Copies values from #defines in hfile.h to provided buffers. This
information is statistically compilied into the HDF library, so
information is statistically compiled into the HDF library, so
it is not necessary to have any files open to get this information.
--------------------------------------------------------------------------*/
Expand Down
2 changes: 1 addition & 1 deletion hdf/src/hfile.h
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ typedef int hdf_file_t;
compressed or chunked.)
10, 11: User tags.
Current tag assingments are:
Current tag assignments are:
00001 - 32767 - reserved for NCSA use
00001 - 16383 - NCSA regular tags
16384 - 32767 - NCSA special tags
Expand Down
2 changes: 1 addition & 1 deletion hdf/src/hproto.h
Original file line number Diff line number Diff line change
Expand Up @@ -966,7 +966,7 @@ typedef union hdf_chunk_def_u {
The image currently cannot be special already. i.e. NBIT,
COMPRESSED, or EXTERNAL. This is an Error.
The definition of the HDF_CHUNK_DEF union with relvant fields is:
The definition of the HDF_CHUNK_DEF union with relevant fields is:
typedef union hdf_chunk_def_u
{
Expand Down
12 changes: 6 additions & 6 deletions hdf/src/mfan.c
Original file line number Diff line number Diff line change
Expand Up @@ -1116,7 +1116,7 @@ ANIwriteann(int32 ann_id, /* IN: annotation id */

/* ------------------------------- ANIcreate -------------------------------
NAME
ANIcreate - create a new annotation and return a handle(id)
ANIcreate - create a new annotation for the specified item
DESCRIPTION
Creates an annotation, returns an 'an_id' to work with the new
Expand All @@ -1131,8 +1131,8 @@ ANIwriteann(int32 ann_id, /* IN: annotation id */
--------------------------------------------------------------------------- */
static intn
ANIcreate(int32 file_id, /* IN: file ID */
uint16 elem_tag, /* IN: tag of item to be assigned annotation */
uint16 elem_ref, /* IN: reference number of itme to be assigned ann */
uint16 elem_tag, /* IN: tag of the item */
uint16 elem_ref, /* IN: reference number of the item */
ann_type type /* IN: AN_DATA_LABEL for data labels,
AN_DATA_DESC for data descriptions,
AN_FILE_LABEL for file labels,
Expand Down Expand Up @@ -1424,7 +1424,7 @@ ANend(int32 an_id /* IN: Annotation ID of file to close */)

/* ------------------------------------------------------------------------
NAME
ANcreate - create a new element annotation and return a handle(id)
ANcreate - create a new annotation for the specified item
DESCRIPTION
Creates a data annotation, returns an 'an_id' to work with the new
Expand All @@ -1439,8 +1439,8 @@ ANend(int32 an_id /* IN: Annotation ID of file to close */)
--------------------------------------------------------------------------- */
int32
ANcreate(int32 an_id, /* IN: annotation interface ID */
uint16 elem_tag, /* IN: tag of item to be assigned annotation */
uint16 elem_ref, /* IN: reference number of itme to be assigned ann */
uint16 elem_tag, /* IN: tag of item */
uint16 elem_ref, /* IN: reference number of the item */
ann_type type /* IN: AN_DATA_LABEL for data labels,
AN_DATA_DESC for data descriptions*/)
{
Expand Down
6 changes: 3 additions & 3 deletions hdf/src/mfan.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ HDFLIBAPI int32 ANend(int32 an_id /* IN: Annotation ID of file to close */);

/******************************************************************************
NAME
ANcreate - create a new element annotation and return a handle(id)
ANcreate - create a new annotation for the specified item
DESCRIPTION
Creates a data annotation, returns an 'an_id' to work with the new
Expand All @@ -84,8 +84,8 @@ HDFLIBAPI int32 ANend(int32 an_id /* IN: Annotation ID of file to close */);
An ID to an annotation which can either be a label or description.
*******************************************************************************/
HDFLIBAPI int32 ANcreate(int32 an_id, /* IN: annotation interface ID */
uint16 elem_tag, /* IN: tag of item to be assigned annotation */
uint16 elem_ref, /* IN: reference number of itme to be assigned ann*/
uint16 elem_tag, /* IN: tag of the item */
uint16 elem_ref, /* IN: ref of the item */
ann_type type /* IN: annotation type */);

/******************************************************************************
Expand Down
2 changes: 1 addition & 1 deletion hdf/src/mfgr.c
Original file line number Diff line number Diff line change
Expand Up @@ -5003,7 +5003,7 @@ GRPshutdown(void)
The image currently cannot be special already. i.e. NBIT,
COMPRESSED, or EXTERNAL. This is an Error.
The definition of the HDF_CHUNK_DEF union with relvant fields is:
The definition of the HDF_CHUNK_DEF union with relevant fields is:
typedef union hdf_chunk_def_u
{
Expand Down
2 changes: 1 addition & 1 deletion hdf/src/mfgrf.c
Original file line number Diff line number Diff line change
Expand Up @@ -855,7 +855,7 @@ nmgcrchnk(intf *id, intf *start, void *num_data)
if (!cstart)
return FAIL;

/* Flip an array to account for array odering in Fortran and C */
/* Flip an array to account for array ordering in Fortran and C */

for (i = 0; i < rank; i++)
cstart[i] = start[rank - i - 1] - 1;
Expand Down
4 changes: 2 additions & 2 deletions hdf/src/vgp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1255,7 +1255,7 @@ Vdetach(int32 vkey /* IN: vgroup key */)
HGOTO_ERROR(DFE_INTERNAL, FAIL);

/*
* If vgroup already exists, try to re-use the same
* If vgroup already exists, try to reuse the same
* tag/ref. This will cause the pointer to the original
* vgroup to be lost but this is okay.
*/
Expand Down Expand Up @@ -1898,7 +1898,7 @@ DESCRIPTION
design required the uniqueness. However, the current code allows
duplication if NO_DUPLICATES is not defined. The SD interface needs
this feature to create SDS's with duplicated dimensions. For example
a 3D SDS has dimensions "time", "presure" and "presure".)
a 3D SDS can have dimensions "time", "pressure" and "pressure".)
If error, returns FAIL or tag/ref is not inserted.
If OK, returns the total number of tag/refs in the vgroup (a +ve integer).
28-MAR-91 Jason Ng NCSA.
Expand Down
2 changes: 1 addition & 1 deletion hdf/src/vio.c
Original file line number Diff line number Diff line change
Expand Up @@ -1037,7 +1037,7 @@ VSdetach(int32 vkey /* IN: vdata key? */)
if (FAIL == vpackvs(vs, Vhbuf, &vspacksize))
HGOTO_ERROR(DFE_INTERNAL, FAIL);

/* if VH size changed we need to re-use the tag/ref
/* if VH size changed we need to reuse the tag/ref
* for new header. This will cause the pointer to the
* original vdata header to be lost but this is okay. */
if (vs->new_h_sz) {
Expand Down
2 changes: 1 addition & 1 deletion hdf/src/vsfld.c
Original file line number Diff line number Diff line change
Expand Up @@ -832,7 +832,7 @@ USAGE
fields in buf.
void * fldbufpt[]; IN: array of pointers to field buffers.
RETURNS
SUCCEED(0) on success; FIAL(-1) otherwise.
SUCCEED(0) on success; FAIL(-1) otherwise.
DESCRIPTION
1. This pack/unpack routine is convenient for users. It also
serves for FORTRAN programs to pack/unpack numeric and
Expand Down
2 changes: 1 addition & 1 deletion hdf/test/buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ main(int argc, char *argv[])

MESSAGE(6, printf("Starting buffered element test (elemsize=%d)\n", elemsize);)

if (Cache) /* turn on caching, unless we were instucted not to */
if (Cache) /* turn on caching, unless we were instructed not to */
Hcache(CACHE_ALL_FILES, TRUE);

/* fill the buffer with interesting data to compress */
Expand Down
4 changes: 2 additions & 2 deletions hdf/test/chunks.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
* The rest of he data should contain fill values.
*
* 3. Create a new element but now there will be partial chunks
* because chunk lengths are not an even multiple of dimesion lengths.
* because chunk lengths are not an even multiple of dimension lengths.
* Set dimension to 4x4 array with 4 chunks where each chunk is
* 3x2 = 6 bytes. Real data size is 16 bytes, size with chunks is
* 6 bytes x 4 chunks = 24 bytes
Expand Down Expand Up @@ -483,7 +483,7 @@ test_chunks(void)

/*
3. Create a new element but now there will be partial chunks
because chunk lengths are not an even multiple of dimesion lengths.
because chunk lengths are not an even multiple of dimension lengths.
Set dimension to 4x4 array with 4 chunks where each chunk is 3x2 = 6 bytes.
Real data size is 16 bytes, size with chunks is
6 bytes x 4 chunks = 24 bytes
Expand Down
2 changes: 1 addition & 1 deletion hdf/test/egfhi.f
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ program HIGHLEVEL
subroutine DOIT

c Remove this fortran directive if your compiler doesn't support it.
c It forces an error message whenever a variable is not decalred.
c It forces an error message whenever a variable is not declared.

IMPLICIT NONE

Expand Down
38 changes: 19 additions & 19 deletions hdf/test/fortest.sav
Original file line number Diff line number Diff line change
Expand Up @@ -463,60 +463,60 @@

***** ALL TESTS SUCCESSFUL *****
Setting palette 1
d8spal SUCEESSFUL
d8spal SUCCESSFUL
Putting image 1 with pal 1, no compression
d8pimg SUCEESSFUL
d8pimg SUCCESSFUL
Getting ref1
ref1 is 2
Putting image 2 with pal 1, REL compression
d8aimg SUCEESSFUL
d8aimg SUCCESSFUL
Getting ref2
ref2 is 3
Setting palette 2
d8spal SUCEESSFUL
d8spal SUCCESSFUL
Putting image 2 with pal 2, IMCOMP compression
d8aimg SUCEESSFUL
d8aimg SUCCESSFUL
Getting ref3
ref3 is 4
Getting number of images
3 images in the file
Restarting file
d8first SUCEESSFUL
d8first SUCCESSFUL
Getting dimensions of first image
d8gdims SUCEESSFUL
d8gdims SUCCESSFUL
Getting image 1
d8gimg SUCEESSFUL
d8gimg SUCCESSFUL
Checking image and palette
Image is correct
Palette is correct
Getting dimensions of image2
d8gdims SUCEESSFUL
d8gdims SUCCESSFUL
d1= 321 d2= 111 ispal= 1
Getting dimensions of image 3
d8gdims SUCEESSFUL
d8gdims SUCCESSFUL
d1= 321 d2= 111 ispal= 1
Getting image 3
d8gimg SUCEESSFUL
d8gimg SUCCESSFUL
setting read ref2
d8rref SUCEESSFUL
d8rref SUCCESSFUL
Getting image 2
d8gimg SUCEESSFUL
d8gimg SUCCESSFUL
Checking image and palette
Image is correct
Palette is correct
Setting write ref1
d8wref SUCEESSFUL
d8wref SUCCESSFUL
Setting palette 2
d8spal SUCEESSFUL
d8spal SUCCESSFUL
Putting image 1 with pal 2, RLE
d8aimg SUCEESSFUL
d8aimg SUCCESSFUL
Setting read ref1
d8rref SUCEESSFUL
d8rref SUCCESSFUL
Getting dimensions of first image
d8gdims SUCEESSFUL
d8gdims SUCCESSFUL
d1= 100 d2= 100 ispal= 1
Getting image 1
d8gimg SUCEESSFUL
d8gimg SUCCESSFUL
Checking image and palette
Image is correct
Palette is correct
Expand Down
2 changes: 1 addition & 1 deletion hdf/test/man.c
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ check_lab_desc(const char *fname, uint16 tag, uint16 ref, const char *label[], c
** 6. Close annotation interface
** 7. Close file
** 8. For 'REPs' count do
** A. Get dimesion and ref of SDS
** A. Get dimension and ref of SDS
** B. Verify label and descriptions for SDS ->check_lab_desc()
** C. Get image ref and image
** D. Verify label and descriptions for Image->check_lab_desc()
Expand Down
2 changes: 1 addition & 1 deletion hdf/test/testhdf.c
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ main(int argc, char *argv[])
} /* end if */
} /* end for */

if (Cache) /* turn on caching, unless we were instucted not to */
if (Cache) /* turn on caching, unless we were instructed not to */
Hcache(CACHE_ALL_FILES, TRUE);

for (Loop = 0; Loop < Index; Loop++) {
Expand Down
8 changes: 4 additions & 4 deletions hdf/util/fp2hdf.c
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ struct Raster {
#define OPT_r 2 /* convert to image */
#define OPT_e 3 /* expand image via pixel replication */
#define OPT_i 4 /* make interpolated image */
#define NUMBR 5 /* resolution of enlarged image */
#define OPT_num 5 /* resolution of enlarged image */
#define OPT_p 6 /* palette filename */
#define OPT_f 7 /* convert to float (default) */
#define OPT_h 8 /* request for explanation */
Expand All @@ -259,7 +259,7 @@ struct Raster {
static int state_table[17][10] = {

/* token ordering:
FILENAME OPT_o OPT_r OPT_e OPT_i NUMBR OPT_p OPT_f
FILENAME OPT_o OPT_r OPT_e OPT_i OPT_num OPT_p OPT_f
OPT_h OPT_m */

/* state 0: start */
Expand Down Expand Up @@ -982,13 +982,13 @@ gtoken(char *s)
break;
default:
if (isnum(s)) /* negative number? */
token = NUMBR;
token = OPT_num;
}
if (token == ERR)
(void)fprintf(stderr, err1, s);
}
else if (isnum(s)) /* positive number */
token = NUMBR;
token = OPT_num;
else /* filename */
token = FILENAME;

Expand Down
2 changes: 1 addition & 1 deletion man/gr_chunk.3
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ definition passed in.
The dataset currently cannot be special already i.e. NBIT,
COMPRESSED, or EXTERNAL. This is an Error.

The definition of the "HDF_CHUNK_DEF" union with relvant fields is:
The definition of the "HDF_CHUNK_DEF" union with relevant fields is:
.nf

typedef union hdf_chunk_def_u
Expand Down
Loading

0 comments on commit 9cc959a

Please sign in to comment.