 +
 +#define DEFAULT_N_LINES		(128) // #lines per DEFAULT_BLKRD_SIZE 
 +static void blkrd_free_list2_init(blkrd_free_list2_t *l2) {
-+#if 0 // hoehoe
-+if (n_block_reader != 1) {
-+  fprintf(stderr, "(E) multi-threading is not supported for the free list of blkrd\n");
-+  exit(-1);
-+}
-+#endif
 +  l2->blkrd_free_list1 = md_malloc(sizeof(l2->blkrd_free_list1[0])*n_block_reader, mem_blkrdFreeList2Init, 1);
 +  l2->blkrd_free_list2 = NULL;
 +}

+
+  int partial_line_len = 0;
+  char partial_line[MAX_LINE_LENGTH];
+  uint32_t block_seqid = 0;
+static double total_open = 0.0;
+int n_open = 0;
+

# DEALINGS IN THE SOFTWARE.
diff -uprN -x '*_Jul11' -x 'ibm_*' -x 'Numer*' -x a.out -x '#*#' -x version.h -x q -x '*~' -x '*.c.*' -x '*.a' -x .git -x .svn -x '*.MIT' 00_svn_r2/samtools-2015-08-19/samtools/bam_sam2bam.c ../files/samtools/bam_sam2bam.c
--- 00_svn_r2/samtools-2015-08-19/samtools/bam_sam2bam.c	1970-01-01 09:00:00.000000000 +0900
+++ ../files/samtools/bam_sam2bam.c	2016-10-31 18:32:09.739945744 +0900
@@ -0,0 +1,7915 @@
+#define _BAM_SAM2BAM_C
+/*  bam_sam2bam.c
+
