diff options
author | jaortega <jaortega> | 2001-02-26 23:21:17 +0000 |
---|---|---|
committer | jaortega <jaortega> | 2001-02-26 23:21:17 +0000 |
commit | f270b847a817582f60f6371293fade65fe9afb9f (patch) | |
tree | fcd080b39e8f811905a7e194949aa1d55cbdffd8 /mixlib/mix_types.c | |
parent | 119a5240f57ded266447b485e5a7c0eec6dd67f8 (diff) | |
download | mdk-f270b847a817582f60f6371293fade65fe9afb9f.tar.gz mdk-f270b847a817582f60f6371293fade65fe9afb9f.tar.bz2 |
mix vm command dispatch refactoring
Diffstat (limited to 'mixlib/mix_types.c')
-rw-r--r-- | mixlib/mix_types.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/mixlib/mix_types.c b/mixlib/mix_types.c index 06f926f..4baa4f0 100644 --- a/mixlib/mix_types.c +++ b/mixlib/mix_types.c @@ -1,7 +1,7 @@ /* -*-c-*- ------------------ mix_types.c : * Implementation file for mix_types.h declarations. * ------------------------------------------------------------------ - * Copyright (C) 2000 Free Software Foundation, Inc. + * Copyright (C) 2000, 2001 Free Software Foundation, Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -465,15 +465,15 @@ mix_word_shift_right_circular (mix_word_t A, mix_word_t X, gulong count, /* Printable representation */ void -mix_word_print (mix_word_t word, const char *message) +mix_word_print_to_file (mix_word_t word, const char *message, FILE *f) { guint k; - if ( message ) g_print ("%s ", message); - g_print ("%s ", mix_word_sign (word) == 0 ? "+" : "-"); + if ( message ) fprintf (f, "%s ", message); + fprintf (f, "%s ", mix_word_sign (word) == 0 ? "+" : "-"); for ( k = 1; k < 6; ++k ) { - g_print ("%02d ", mix_word_get_byte (word,k)); + fprintf (f, "%02d ", mix_word_get_byte (word,k)); } - g_print ("(%010ld)", mix_word_magnitude (word)); + fprintf (f, "(%010ld)", mix_word_magnitude (word)); } /* Conversions between words and shorts */ |