~ubuntu-branches/ubuntu/maverick/texinfo/maverick

« back to all changes in this revision

Viewing changes to info/variables.c

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Preining
  • Date: 2005-10-28 15:10:30 UTC
  • mto: (2.1.1 dapper) (3.1.4 hardy)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20051028151030-9nsf2s2k2z3fktjt
Tags: upstream-4.8
ImportĀ upstreamĀ versionĀ 4.8

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* variables.c -- How to manipulate user visible variables in Info.
2
 
   $Id: variables.c,v 1.8 2001/11/16 23:16:19 karl Exp $
 
1
/* variables.c -- how to manipulate user visible variables in Info.
 
2
   $Id: variables.c,v 1.3 2004/04/11 17:56:46 karl Exp $
3
3
 
4
 
   Copyright (C) 1993, 97, 2001 Free Software Foundation, Inc.
 
4
   Copyright (C) 1993, 1997, 2001, 2002, 2004 Free Software Foundation, Inc.
5
5
 
6
6
   This program is free software; you can redistribute it and/or modify
7
7
   it under the terms of the GNU General Public License as published by
77
77
  char *description;
78
78
 
79
79
  /* Get the variable's name. */
80
 
  var = read_variable_name (_("Describe variable: "), window);
 
80
  var = read_variable_name ((char *) _("Describe variable: "), window);
81
81
 
82
82
  if (!var)
83
83
    return;
92
92
    sprintf (description, "%s (%d): %s.",
93
93
             var->name, *(var->value), _(var->doc));
94
94
 
95
 
  window_message_in_echo_area ("%s", description);
 
95
  window_message_in_echo_area ("%s", description, NULL);
96
96
  free (description);
97
97
}
98
98
 
102
102
  char *line;
103
103
 
104
104
  /* Get the variable's name and value. */
105
 
  var = read_variable_name (_("Set variable: "), window);
 
105
  var = read_variable_name ((char *) _("Set variable: "), window);
106
106
 
107
107
  if (!var)
108
108
    return;
201
201
   address of a VARIABLE_ALIST member.  A return value of NULL indicates
202
202
   that no variable could be read. */
203
203
VARIABLE_ALIST *
204
 
read_variable_name (prompt, window)
205
 
     char *prompt;
206
 
     WINDOW *window;
 
204
read_variable_name (char *prompt, WINDOW *window)
207
205
{
208
206
  register int i;
209
207
  char *line;
249
247
/* Make an array of REFERENCE which actually contains the names of the
250
248
   variables available in Info. */
251
249
REFERENCE **
252
 
make_variable_completions_array ()
 
250
make_variable_completions_array (void)
253
251
{
254
252
  register int i;
255
253
  REFERENCE **array = (REFERENCE **)NULL;
274
272
#if defined(INFOKEY)
275
273
 
276
274
void
277
 
set_variable_to_value(name, value)
278
 
        char *name;
279
 
        char *value;
 
275
set_variable_to_value(char *name, char *value)
280
276
{
281
277
        register int i;
282
278