diff options
Diffstat (limited to 'tfm/tfm_input.c')
-rw-r--r-- | tfm/tfm_input.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/tfm/tfm_input.c b/tfm/tfm_input.c index 8b56e4a..461539b 100644 --- a/tfm/tfm_input.c +++ b/tfm/tfm_input.c @@ -112,7 +112,7 @@ tfm_input_filename () { if (tfm_input_file == NULL) return NULL; - + return tfm_input_name; } @@ -124,10 +124,10 @@ tfm_global_info_type tfm_get_global_info () { assert (tfm_input_file != NULL); - + /* Only read the file once. */ - if (global_info != NULL) return *global_info; - + if (global_info != NULL) return *global_info; + global_info = XTALLOC1 (tfm_global_info_type); get_tfm_header (); get_tfm_params (); @@ -236,9 +236,9 @@ get_tfm_header () if (tracing_tfm_input) printf ("TFM checksum = %u, design_size = %fpt, coding scheme = `%s'.\n", - TFM_CHECKSUM (*global_info), - TFM_DESIGN_SIZE (*global_info), - TFM_CODING_SCHEME (*global_info)); + TFM_CHECKSUM (*global_info), + TFM_DESIGN_SIZE (*global_info), + TFM_CODING_SCHEME (*global_info)); } @@ -330,7 +330,7 @@ tfm_get_char (charcode_type code) if (code < global_info->first_charcode || code > global_info->last_charcode) return NULL; - + /* Move to the appropriate place in the `char_info' array. */ TFM_FSEEK (tfm_header.char_info_pos + (code - global_info->first_charcode) * 4, @@ -338,7 +338,7 @@ tfm_get_char (charcode_type code) /* Read the character. */ tfm_char_table[code] = get_char (); - + /* If it exists, return a pointer to it. We return a copy, so our information can't get corrupted. */ if (!TFM_CHAR_EXISTS (tfm_char_table[code])) @@ -346,7 +346,7 @@ tfm_get_char (charcode_type code) else { tfm_char_type *c = XTALLOC1 (tfm_char_type); - + TFM_CHARCODE (tfm_char_table[code]) = code; *c = tfm_char_table[code]; return c; @@ -405,7 +405,7 @@ get_char () { printf (" width = %f, height = %f, ", tfm_char.width, tfm_char.height); printf ("depth = %f, ic = %f.\n", tfm_char.depth, - tfm_char.italic_correction); + tfm_char.italic_correction); } if (tag == 1) |