diff options
author | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2002-04-09 23:28:19 +0000 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2002-04-09 23:28:19 +0000 |
commit | b4eae8cbebefaa28ecd1d44d10a319c79a7bb16c (patch) | |
tree | ba08d67f27f0350517ae94b4393d8da4191c1f4f /mixgtk/mixgtk_mixal.c | |
parent | 7768d3c3ade49b2307049e7d308ead409f4a7d1d (diff) | |
download | mdk-b4eae8cbebefaa28ecd1d44d10a319c79a7bb16c.tar.gz mdk-b4eae8cbebefaa28ecd1d44d10a319c79a7bb16c.tar.bz2 |
portability fix: snprintf -> g_snprintf
Diffstat (limited to 'mixgtk/mixgtk_mixal.c')
-rw-r--r-- | mixgtk/mixgtk_mixal.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/mixgtk/mixgtk_mixal.c b/mixgtk/mixgtk_mixal.c index 22039e3..7c7c402 100644 --- a/mixgtk/mixgtk_mixal.c +++ b/mixgtk/mixgtk_mixal.c @@ -1,9 +1,9 @@ /* -*-c-*- -------------- mixgtk_mixal.c : * Implementation of the functions declared in mixgtk_mixal.h * ------------------------------------------------------------------ - * Last change: Time-stamp: "2001-04-29 22:30:43 jao" + * $Id: mixgtk_mixal.c,v 1.14 2002/04/09 23:28:19 jao Exp $ * ------------------------------------------------------------------ - * Copyright (C) 2001 Free Software Foundation, Inc. + * Copyright (C) 2001, 2002 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 @@ -64,7 +64,7 @@ insert_symbol_ (gpointer symbol, gpointer value, gpointer list) gchar *text[] = {(gchar *)symbol, DEC, WORD}; mix_word_t w = (mix_word_t)GPOINTER_TO_INT (value); - snprintf (DEC, DEC_SIZE, "%s%ld", + g_snprintf (DEC, DEC_SIZE, "%s%ld", mix_word_is_negative (w)? "-" : "+", mix_word_magnitude (w)); mix_word_print_to_buffer (w, WORD); @@ -223,7 +223,7 @@ update_tips_ (const mix_symbol_table_t *table, if (mix_symbol_table_is_defined (table, tokens[k])) { mix_word_t val = mix_symbol_table_value (table, tokens[k]); - snprintf (BUFFER, SIZE, "[ %s = %s%ld ]", tokens[k], + g_snprintf (BUFFER, SIZE, "[ %s = %s%ld ]", tokens[k], mix_word_is_negative (val)? "-" : "+", mix_word_magnitude (val)); new_tip = g_strconcat (tip, " ", BUFFER, NULL); @@ -267,7 +267,7 @@ mixgtk_mixal_load_file (void) { const gchar *line = mix_src_file_get_line (file, k + 1); - snprintf (CONT, CONT_SIZE, "%03d: %s", k + 1, line); + g_snprintf (CONT, CONT_SIZE, "%03d: %s", k + 1, line); addr = mix_vm_get_lineno_address (vm_, k + 1); if (addr != MIX_VM_CELL_NO) { |