Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
exclude: doc/attic/|doc/author_*|AUTHORS|COPYING|example/linksc/COPYING|iniparser/LICENSE|libb64/README|config/ax_prefix_config_h.m4
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-added-large-files
- repo: https://github.com/crate-ci/typos
rev: v1.36.2
hooks:
- id: typos
4 changes: 2 additions & 2 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
Advanced Computing Center (TACC) for providing them with access to the Ranger
supercomputer under NSF TeraGrid award MCA04N026, and the National Center for
Computational Science (NCCS) for early-user access to the Jaguar Cray XT5
supercomputer. Any opinions, findings and conclusions or recomendations
supercomputer. Any opinions, findings and conclusions or recommendations
expressed in the source code and documentation are those of the authors and
do not necessarily reflect the views of the National Science Foundation
(NSF).
Expand All @@ -85,7 +85,7 @@
domain software, see the LICENSE and AUTHORS files in that directory.

The files under iniparser are derived from iniparser3.0b. iniparser is
licensed unter the MIT license, see the LICENSE and AUTHORS files in
licensed under the MIT license, see the LICENSE and AUTHORS files in
that directory.

Several scripts under config are released under GNU GPL versions.
Expand Down
1 change: 0 additions & 1 deletion INSTALL
Original file line number Diff line number Diff line change
Expand Up @@ -288,4 +288,3 @@ operates.

`configure' also accepts some other, not widely useful, options. Run
`configure --help' for more details.

2 changes: 1 addition & 1 deletion NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ NEWS

* The current stable version 2 of the libsc code is maintained in branches
v2.2--v2.5. It will be backwards compatible as much as possible.
The code will remain usable and bugfixed for the forseeable future.
The code will remain usable and bugfixed for the foreseeable future.
The branches master (official) and develop (fairly stable) live here.
* We have introduced a new development branch leading up to v3.0.
The initial version is v2.8. The branch is called prev3-develop. On
Expand Down
8 changes: 8 additions & 0 deletions _typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#[default.extend-words]

[default.extend-identifiers]
sc_MPI_MODE_WRONLY = "sc_MPI_MODE_WRONLY"
MPI_MODE_WRONLY = "MPI_MODE_WRONLY"
PNGs = "PNGs"
asend = "asend"
nce = "nce"
2 changes: 1 addition & 1 deletion config/sc_include.m4
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ dnl its INVOCATION is one valid statement of a C/C++ program.
dnl It may require INCLUDE statements to compile and link ok.
dnl On the inside we call AC_LANG_PROGRAM(INCLUDE, INVOCATION).
dnl The SEARCH_LIBS are a white-space separated list or empty.
dnl The OTHER_LIBS may be empty or a list of depency libraries.
dnl The OTHER_LIBS may be empty or a list of dependency libraries.
dnl
dnl This macro is modified from AC_SEARCH_LIBS. In particular,
dnl we use a separate cache variable ac_cv_sc_search_FUNCTION.
Expand Down
2 changes: 1 addition & 1 deletion config/sc_mpi.m4
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ dnl This was only used for our lint code, which needs to be replaced.
dnl
dnl dnl SC_MPI_INCLUDES
dnl dnl Call the compiler with various --show* options
dnl dnl to figure out the MPI_INCLUDES and MPI_INCLUDE_PATH varables
dnl dnl to figure out the MPI_INCLUDES and MPI_INCLUDE_PATH variables
dnl dnl
dnl AC_DEFUN([SC_MPI_INCLUDES],
dnl [
Expand Down
2 changes: 1 addition & 1 deletion config/sc_package.m4
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ $1_$3_RPATH=
$1_DISTCLEAN="$$1_DISTCLEAN $1_$3_SOURCE.log"

SC_ARG_WITH_PREFIX([$4],
[specifiy how to depend on package $4 (optional).
[specify how to depend on package $4 (optional).
If the option value is literal no or the option is not present, use the
source subdirectory. If the option value is the literal external, expect
all necessary environment variables to be set to compile and link against
Expand Down
2 changes: 1 addition & 1 deletion doc/Doxyfile.in
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ LOOKUP_CACHE_SIZE = 0
# than 0 to get more control over the balance between CPU load and processing
# speed. At this moment only the input processing can be done using multiple
# threads. Since this is still an experimental feature the default is set to 1,
# which efficively disables parallel processing. Please report any issues you
# which effectively disables parallel processing. Please report any issues you
# encounter. Generating dot graphs in parallel is controlled by the
# DOT_NUM_THREADS setting.
# Minimum value: 0, maximum value: 32, default value: 1.
Expand Down
2 changes: 1 addition & 1 deletion doc/coding_standards.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ tries to adhere to.

printf ("%jd %ju", (intmax_t) i, (uintmax_t) u);

since that would be a nice way to accomodate 128 bit integers without
since that would be a nice way to accommodate 128 bit integers without
changing the `printf` code.
This also holds for `size_t` since support for the following is still
incomplete:
Expand Down
2 changes: 1 addition & 1 deletion doc/mainpage.dox
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
*
* This file contains routines for parallel I/O format.
* In particular there are functions to write and read data in parallel according
* to a user prescribed partition of contigously indexed potentially
* to a user prescribed partition of contiguously indexed potentially
* variable-sized elements. In addition, the user can also write and read
* data in serial and the data can be stored element-wise compressed.
*
Expand Down
1 change: 0 additions & 1 deletion doc/portability/portitm4.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,3 @@ perl -p -i \
-e 's,test\s+"\$,test "x\$,;' \
-e 's,=\s+"?x?(yes|no|unknown|disable)"?,= x\1,;' \
"$FILE"

2 changes: 1 addition & 1 deletion example/camera/camera.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ main(int argc, char **argv)
{
sc_camera_t *camera = sc_camera_new();



sc_camera_destroy(camera);

Expand Down
4 changes: 2 additions & 2 deletions example/openmp/juqueen_job.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This jobscript can be submitted to the juqueen
# This jobscript can be submitted to the juqueen
# job queue via llsubmit [script]
# Do not forget to put your email adress in the
# Do not forget to put your email address in the
# notify_user field.
#
# This script has to be executed within the folder of
Expand Down
4 changes: 2 additions & 2 deletions iniparser/dictionary.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

This module implements a simple dictionary object, i.e. a list
of string/string associations. This object is useful to store e.g.
informations retrieved from a configuration file (ini files).
information retrieved from a configuration file (ini files).
*/
/*--------------------------------------------------------------------------*/

Expand Down Expand Up @@ -107,7 +107,7 @@ unsigned dictionary_hash(const char * key)
/**
@brief Create a new dictionary object.
@param size Optional initial size of the dictionary.
@return 1 newly allocated dictionary objet.
@return 1 newly allocated dictionary object.

This function allocates a new dictionary object of given size and returns
it. If you do not know in advance (roughly) the number of entries in the
Expand Down
4 changes: 2 additions & 2 deletions iniparser/dictionary.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

This module implements a simple dictionary object, i.e. a list
of string/string associations. This object is useful to store e.g.
informations retrieved from a configuration file (ini files).
information retrieved from a configuration file (ini files).
*/
/*--------------------------------------------------------------------------*/

Expand Down Expand Up @@ -89,7 +89,7 @@ unsigned dictionary_hash(const char * key);
/**
@brief Create a new dictionary object.
@param size Optional initial size of the dictionary.
@return 1 newly allocated dictionary objet.
@return 1 newly allocated dictionary object.

This function allocates a new dictionary object of given size and returns
it. If you do not know in advance (roughly) the number of entries in the
Expand Down
6 changes: 2 additions & 4 deletions iniparser/iniexample.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,18 +79,16 @@ static int parse_ini_file(const char * ini_name)
printf("Wine:\n");
s = iniparser_getstring(ini, "wine:grape", NULL);
printf("Grape: [%s]\n", s ? s : "UNDEF");

i = iniparser_getint(ini, "wine:year", -1);
printf("Year: [%d]\n", i);

s = iniparser_getstring(ini, "wine:country", NULL);
printf("Country: [%s]\n", s ? s : "UNDEF");

d = iniparser_getdouble(ini, "wine:alcohol", -1.0);
printf("Alcohol: [%g]\n", d);

iniparser_freedict(ini);
return 0 ;
}


14 changes: 7 additions & 7 deletions iniparser/iniparser.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ static char * strstrip(const char * s)
{
static char l[ASCIILINESZ+1];
char * last ;

if (s==NULL) return NULL ;

while (isspace((int)*s) && *s) s++;
memset(l, 0, ASCIILINESZ+1);
sc3_strcopy (l, ASCIILINESZ + 1, s);
Expand Down Expand Up @@ -295,7 +295,7 @@ int iniparser_getsecnkeys(dictionary * d, char * s)
for (j=0 ; j<d->size ; j++) {
if (d->key[j]==NULL)
continue ;
if (!strncmp(d->key[j], keym, seclen+1))
if (!strncmp(d->key[j], keym, seclen+1))
nkeys++;
}

Expand All @@ -313,7 +313,7 @@ int iniparser_getsecnkeys(dictionary * d, char * s)
This function queries a dictionary and finds all keys in a given section.
Each pointer in the returned char pointer-to-pointer is pointing to
a string allocated in the dictionary; do not free or modify them.

This function returns NULL in case of error.
*/
/*--------------------------------------------------------------------------*/
Expand All @@ -337,7 +337,7 @@ char ** iniparser_getseckeys(dictionary * d, char * s)

seclen = (int)strlen(s);
sc3_snprintf (keym, ASCIILINESZ + 1, "%s:", s);

i = 0;

for (j=0 ; j<d->size ; j++) {
Expand Down Expand Up @@ -563,7 +563,7 @@ static line_status iniparser_line(
char * section,
char * key,
char * value)
{
{
line_status sta ;
char line[ASCIILINESZ+1];
int len ;
Expand All @@ -577,7 +577,7 @@ static line_status iniparser_line(
sta = LINE_EMPTY ;
} else if (line[0]=='#' || line[0]==';') {
/* Comment line */
sta = LINE_COMMENT ;
sta = LINE_COMMENT ;
} else if (line[0]=='[' && line[len-1]==']') {
/* Section name */
sscanf(line, "[%[^]]", section);
Expand Down
2 changes: 1 addition & 1 deletion src/sc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1034,7 +1034,7 @@ void
sc_abort (void)
{
sc_default_abort_handler ();
abort (); /* if the user supplied callback incorrecty returns, abort */
abort (); /* if the user supplied callback incorrectly returns, abort */
}

static void
Expand Down
2 changes: 1 addition & 1 deletion src/sc.h
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ void SC_CHECK_ABORTF (int success, const char *fmt, ...)
#define SC_LP_SILENT 9 /**< Never log anything. Instead suggesting \ref SC_LP_ERROR. */
/** @} */

/* The default log priority may be overridded by this preprocessor define. */
/* The default log priority may be overridden by this preprocessor define. */
#ifdef SC_LOG_PRIORITY
#define SC_LP_THRESHOLD SC_LOG_PRIORITY
#define SC_LP_APPLICATION SC_LOG_PRIORITY
Expand Down
2 changes: 1 addition & 1 deletion src/sc_builtin/getopt_int.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ extern int _getopt_internal (int ___argc, char *const *___argv,
const struct option *__longopts, int *__longind,
int __long_only);


/* Reentrant versions which can handle parsing multiple argument
vectors at the same time. */

Expand Down
Loading
Loading