~ubuntu-branches/ubuntu/raring/libxfont/raring-updates

« back to all changes in this revision

Viewing changes to src/fontfile/dirfile.c

  • Committer: Package Import Robot
  • Author(s): Cyril Brulebois, Cyril Brulebois, Julien Cristau
  • Date: 2012-03-04 09:24:59 UTC
  • mfrom: (1.1.15)
  • Revision ID: package-import@ubuntu.com-20120304092459-cbu7e0ujz24lslpt
Tags: 1:1.4.5-1
[ Cyril Brulebois ]
* New upstream release.
* Switch to dh:
  - Bump debhelper build-dep and compat.
  - Rewrite debian/rules, using autoreconf and quilt sequences.
  - Adjust build dependencies accordingly.
  - Use build-main and build-udeb as build directories.
  - Adjust .install accordingly.
* Remove xsfbs accordingly.
* Add support for hardened build flags through dpkg-buildflags, based
  on a patch by Moritz Muehlenhoff, thanks! (Closes: #654154).

[ Julien Cristau ]
* Remove David Nusinow from Uploaders.

Show diffs side-by-side

added added

removed removed

Lines of Context:
90
90
    strcat(dir_file, FontDirFile);
91
91
    file = fopen(dir_file, "rt");
92
92
    if (file) {
93
 
#ifndef WIN32        
 
93
#ifndef WIN32
94
94
        if (fstat (fileno(file), &statb) == -1)
95
95
#else
96
96
        if (stat (dir_file, &statb) == -1)
135
135
            FontFileAddFontFile (dir, font_name, file_name);
136
136
        }
137
137
        fclose(file);
138
 
        
 
138
 
139
139
    } else if (errno != ENOENT) {
140
140
        return BadFontPath;
141
141
    }
188
188
        return TRUE;
189
189
    return FALSE;
190
190
}
191
 
    
 
191
 
192
192
/*
193
193
 * Make each of the file names an automatic alias for each of the files.
194
194
 */
212
212
        renderer = FontFileMatchRenderer (fileName);
213
213
        if (!renderer)
214
214
            continue;
215
 
        
 
215
 
216
216
        len = strlen (fileName) - renderer->fileSuffixLen;
217
217
        if (len >= sizeof(copy))
218
218
            continue;