~ubuntu-branches/ubuntu/natty/ncurses/natty

« back to all changes in this revision

Viewing changes to ncurses/tinfo/captoinfo.c

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2007-05-17 09:00:42 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20070517090042-86fgxrr6j5jzagot
Tags: 5.6-0ubuntu1
* New upstream version.
  - Remove patches applied upstream: ncurses.upstream, signed-chars.
  - Update patches: debian-backspace.
* Build-depend on g++-multilib instead of lib{32,64}c*-dev-*.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/****************************************************************************
2
 
 * Copyright (c) 1998-2003,2004 Free Software Foundation, Inc.              *
 
2
 * Copyright (c) 1998-2005,2006 Free Software Foundation, Inc.              *
3
3
 *                                                                          *
4
4
 * Permission is hereby granted, free of charge, to any person obtaining a  *
5
5
 * copy of this software and associated documentation files (the            *
93
93
#include <ctype.h>
94
94
#include <tic.h>
95
95
 
96
 
MODULE_ID("$Id: captoinfo.c,v 1.47 2005/06/04 22:06:43 tom Exp $")
 
96
MODULE_ID("$Id: captoinfo.c,v 1.49 2006/12/16 19:16:53 tom Exp $")
97
97
 
98
98
#define MAX_PUSHED      16      /* max # args we can push onto the stack */
99
99
 
137
137
    return d + strlen(d);
138
138
}
139
139
 
140
 
static inline char *
 
140
static NCURSES_INLINE char *
141
141
save_char(char *s, int c)
142
142
{
143
143
    static char temp[2];
839
839
NCURSES_EXPORT(void)
840
840
_nc_captoinfo_leaks(void)
841
841
{
842
 
    FreeAndNull(my_string);
 
842
    if (my_string != 0) {
 
843
        FreeAndNull(my_string);
 
844
    }
843
845
    my_length = 0;
844
846
}
845
847
#endif