Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

more code style improvement by align function name to the first colum…

…n :)
  • Loading branch information...
commit ac0c21811eb562377b92fec61b90a86e5e09f331 1 parent 31e4247
@agentzh authored
Showing with 9 additions and 5 deletions.
  1. +9 −5 appears.cpp
View
14 appears.cpp
@@ -37,7 +37,8 @@ static bool parse_seq_file (const char* fname);
static void search_missing_combinations ();
static void index_to_tokens (unsigned long index, char* buf);
-int main (int argc, char* argv[]) {
+int
+main (int argc, char* argv[]) {
const char* fname;
if (argc < 2) {
fprintf(stderr, "ERROR: No input file specified.\n");
@@ -65,8 +66,9 @@ int main (int argc, char* argv[]) {
}
/* parse_seq_file: read in the sequence stream and set
- * the global BigTable variable accordingly. */
-static bool parse_seq_file (const char* fname) {
+ * the global BitTable variable accordingly. */
+bool
+parse_seq_file (const char* fname) {
FILE* infile;
char c;
unsigned long lineno = 1L;
@@ -148,7 +150,8 @@ static bool parse_seq_file (const char* fname) {
/* index_to_tokens: decode the binary index numerals to G/A/T/C
* token sequences */
-void index_to_tokens (unsigned long index, char* buf) {
+void
+index_to_tokens (unsigned long index, char* buf) {
for (unsigned long i = 0; i < APPEARS_SEQSIZE; i++) {
int encoded_token =
(index >> (i * BITS_PER_TOKEN)) & TOKEN_MASK;
@@ -175,7 +178,8 @@ void index_to_tokens (unsigned long index, char* buf) {
/* search_missing_combinations: traverse the BitTable
* to find 0 bits and print out the corresponding
* character sequences */
-void search_missing_combinations () {
+void
+search_missing_combinations () {
unsigned long missing_combs = 0;
char buf[APPEARS_SEQSIZE + 1];
for (unsigned long i = 0; i < TABLESIZE; i++) {
Please sign in to comment.
Something went wrong with that request. Please try again.