~ubuntu-branches/ubuntu/hardy/lmms/hardy

« back to all changes in this revision

Viewing changes to plugins/flp_import/unrtf/word.c

  • Committer: Bazaar Package Importer
  • Author(s): Tobias Doerffel
  • Date: 2007-09-17 15:00:24 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20070917150024-mo0zk4ks81jawqii
Tags: 0.3.0-1ubuntu1
* Resynchronized with Debian (LP: #139759, LP: #90806, LP: #102639,
  LP: #113447, LP: #121172, LP: #124890)
* reverted changes from 0.2.1-1.1ubuntu1 as upstream merged/included them

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
 * 22 Sep 01, tuorfa@yahoo.com: moved word_dump to here from parse.c
46
46
 * 22 Sep 01, tuorfa@yahoo.com: added function-level comment blocks 
47
47
 * 29 Mar 05, daved@physiol.usyd.edu.au: changes requested by ZT Smith
 
48
 * 11 Jan 07, jasp00@users.sourceforge.net: optimized unsafe loop
48
49
 *--------------------------------------------------------------------*/
49
50
 
50
51
#ifdef HAVE_CONFIG_H
164
165
static void
165
166
print_indentation (int level)
166
167
{
167
 
        int i;
168
 
 
169
168
        if (level) {
170
 
                for (i=0;i<level;i+=2)
 
169
                /* indent in multiples of 2 */
 
170
                level = (level >> 1) + (level & 1);
 
171
                while (level-- > 0)
171
172
                        printf (". ");
172
173
        } else {
173
174
                printf ("\n-----------------------------------------------------------------------\n\n");