~ubuntu-branches/ubuntu/oneiric/swig1.3/oneiric

« back to all changes in this revision

Viewing changes to Source/Swig/stype.c

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt
  • Date: 2008-06-20 18:33:37 UTC
  • mfrom: (1.2.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20080620183337-hockvwcewu29409c
Tags: 1.3.35-4ubuntu1
* Merge from debian unstable, remaining changes:
  - Drop support for pike.
  - Use python2.5 instead of python2.4.
  - use php5
  - Clean Runtime/ as well.
  - Force a few environment variables.
  - debian/Rules (clean): Remove Lib/ocaml/swigp4.ml.

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
 * the form of simple strings.
9
9
 * ----------------------------------------------------------------------------- */
10
10
 
11
 
char cvsroot_stype_c[] = "$Id: stype.c 9943 2007-09-19 23:17:50Z wsfulton $";
 
11
char cvsroot_stype_c[] = "$Id: stype.c 10254 2008-02-13 23:25:37Z wsfulton $";
12
12
 
13
13
#include "swig.h"
14
14
#include "cparse.h"
514
514
  sz = Len(p);
515
515
  for (i = 0; i < sz; i++) {
516
516
    String *str = SwigType_str(Getitem(p, i), 0);
517
 
    /* Avoid creating a <: token, which is the same as [ in C++. */
518
 
    if (i == 0 && Len(str) && *Char(str) == ':')
 
517
    /* Avoid creating a <: token, which is the same as [ in C++ - put a space after '<'. */
 
518
    if (i == 0 && Len(str))
519
519
      Putc(' ', r);
520
520
    Append(r, str);
521
521
    if ((i + 1) < sz)