Skip to content

Commit

Permalink
Remove tabs from source code
Browse files Browse the repository at this point in the history
  • Loading branch information
torognes committed Apr 24, 2024
1 parent 6c91d8b commit c37ccba
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 30 deletions.
40 changes: 20 additions & 20 deletions src/db.cc
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,12 @@ char * db_getquality(uint64_t seqno)
}

void db_add(bool is_fastq,
char * header,
char * sequence,
char * quality,
size_t headerlength,
size_t sequencelength,
int64_t abundance)
char * header,
char * sequence,
char * quality,
size_t headerlength,
size_t sequencelength,
int64_t abundance)
{
/* Add a sequence to the database. Assumes that the database has been initialized. */

Expand All @@ -140,24 +140,24 @@ void db_add(bool is_fastq,
/* store the header */
size_t header_p = datalen;
memcpy(datap + header_p,
header,
headerlength + 1);
header,
headerlength + 1);
datalen += headerlength + 1;

/* store sequence */
size_t sequence_p = datalen;
memcpy(datap + sequence_p,
sequence,
sequencelength + 1);
sequence,
sequencelength + 1);
datalen += sequencelength + 1;

size_t quality_p = datalen;
if (is_fastq)
{
/* store quality */
memcpy(datap + quality_p,
quality,
sequencelength + 1);
quality,
sequencelength + 1);
datalen += sequencelength + 1;
}

Expand Down Expand Up @@ -260,14 +260,14 @@ void db_read(const char * filename, int upcase)
}
else
{
db_add(is_fastq,
fastx_get_header(h),
fastx_get_sequence(h),
is_fastq ? fastx_get_quality(h) : nullptr,
fastx_get_header_length(h),
sequencelength,
abundance);
}
db_add(is_fastq,
fastx_get_header(h),
fastx_get_sequence(h),
is_fastq ? fastx_get_quality(h) : nullptr,
fastx_get_header_length(h),
sequencelength,
abundance);
}
progress_update(fastx_get_position(h));
}

Expand Down
20 changes: 10 additions & 10 deletions src/vsearch.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2731,8 +2731,8 @@ void args_init(int argc, char **argv)
option_label_suffix,
option_log,
option_match,
option_maxseqlength,
option_minseqlength,
option_maxseqlength,
option_minseqlength,
option_mismatch,
option_no_progress,
option_nonchimeras,
Expand Down Expand Up @@ -4167,11 +4167,11 @@ void args_init(int argc, char **argv)
option_lengthout,
option_log,
option_match,
option_maxseqlength,
option_maxseqlength,
option_mindiffs,
option_mindiv,
option_minh,
option_minseqlength,
option_minseqlength,
option_mismatch,
option_no_progress,
option_nonchimeras,
Expand Down Expand Up @@ -4211,11 +4211,11 @@ void args_init(int argc, char **argv)
option_lengthout,
option_log,
option_match,
option_maxseqlength,
option_maxseqlength,
option_mindiffs,
option_mindiv,
option_minh,
option_minseqlength,
option_minseqlength,
option_mismatch,
option_no_progress,
option_nonchimeras,
Expand Down Expand Up @@ -4255,11 +4255,11 @@ void args_init(int argc, char **argv)
option_lengthout,
option_log,
option_match,
option_maxseqlength,
option_maxseqlength,
option_mindiffs,
option_mindiv,
option_minh,
option_minseqlength,
option_minseqlength,
option_mismatch,
option_no_progress,
option_nonchimeras,
Expand Down Expand Up @@ -4301,11 +4301,11 @@ void args_init(int argc, char **argv)
option_lengthout,
option_log,
option_match,
option_maxseqlength,
option_maxseqlength,
option_mindiffs,
option_mindiv,
option_minh,
option_minseqlength,
option_minseqlength,
option_mismatch,
option_no_progress,
option_nonchimeras,
Expand Down

0 comments on commit c37ccba

Please sign in to comment.