~ubuntu-branches/ubuntu/oneiric/luatex/oneiric

« back to all changes in this revision

Viewing changes to source/texk/web2c/lib/basechsuffix.c

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Preining
  • Date: 2009-10-22 02:16:43 UTC
  • mfrom: (1.1.8 upstream) (4.2.2 sid)
  • Revision ID: james.westby@ubuntu.com-20091022021643-hvoq5boj9y5q92ao
Tags: 0.40.6-1
* new upstream release (add Announce file)
* fix FTBFS due to new poppler version (Closes: #529331)

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
   Written in 1995 by Karl Berry.  Public domain.  */
4
4
 
5
5
#include "config.h"
 
6
#include "lib.h"
6
7
 
7
8
/* Return the basename of NAME, with trailing characters OLD replaced by
8
9
   NEW.  (If last characters in NAME are not OLD, just append NEW.)
12
13
   In other words, we're implementing `basename NAME OLD`NEW.  */
13
14
 
14
15
string
15
 
basenamechangesuffix P3C(const_string, name,  const_string, old_suffix,
16
 
                         const_string, new_suffix)
 
16
basenamechangesuffix (const_string name,  const_string old_suffix,
 
17
                      const_string new_suffix)
17
18
{
18
19
  string answer;
19
20
  unsigned c;