~ubuntu-branches/debian/sid/grace/sid

« back to all changes in this revision

Viewing changes to T1lib/t1lib/t1delete.c

  • Committer: Package Import Robot
  • Author(s): Nicholas Breen
  • Date: 2014-03-27 20:12:01 UTC
  • Revision ID: package-import@ubuntu.com-20140327201201-qhh4x159dor0z3mv
Tags: 1:5.1.23-4
* control: XmHTML development package will change to libxmhtml-dev soon;
  modify Build-Depends to libxmhtml-dev | xmhtml1-dev in preparation.
* rules: Switch back to embedded convenience copy of T1lib.
  (Closes: #638760)
  - control: Drop B-D on t1lib-dev.
  - README.source: add some notes about this.
  - patches/t1lib-general.diff: Incorporate all available patches from
    former Debian distribution of T1lib.
  - grace.lintian-overrides: Suppress relevant embedded-library error.
* control:  Update Standards-Version to 3.9.5, no changes required.
* grace.lintian-overrides: Drop workaround for lintian #673112.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*--------------------------------------------------------------------------
2
2
  ----- File:        t1delete.c 
3
3
  ----- Author:      Rainer Menzner (Rainer.Menzner@web.de)
4
 
  ----- Date:        2001-06-03
 
4
  ----- Date:        2002-12-02
5
5
  ----- Description: This file is part of the t1-library. It contains
6
6
                     functions for giving free previously allocated
7
7
                     memory areas and similar things.
8
 
  ----- Copyright:   t1lib is copyrighted (c) Rainer Menzner, 1996-2001. 
 
8
  ----- Copyright:   t1lib is copyrighted (c) Rainer Menzner, 1996-2002. 
9
9
                     As of version 0.5, t1lib is distributed under the
10
10
                     GNU General Public Library Lincense. The
11
11
                     conditions can be found in the files LICENSE and
76
76
  for ( j=0; j<4; j++){
77
77
    antialias=level[j];
78
78
    /* Check if size exists; if not, return 1 */
79
 
    if ((ptr=QueryFontSize( FontID, size, antialias))!=NULL){
 
79
    if ((ptr=T1int_QueryFontSize( FontID, size, antialias))!=NULL){
80
80
      /* We have to remove a size-> */
81
81
      jobs++;
82
82
      /* Get pointers to structure which is before/after  the structure
140
140
  
141
141
  FONTSIZEDEPS *ptr;
142
142
  
143
 
  if (CheckForFontID(FontID)!=1)
 
143
  if (T1_CheckForFontID(FontID)!=1)
144
144
    return(-1);
145
145
  
146
146
  /* Start deleting at the end of the linked list: */ 
147
147
  sizecount=0;
148
 
  if ((ptr=GetLastFontSize( FontID))==NULL){
 
148
  if ((ptr=T1int_GetLastFontSize( FontID))==NULL){
149
149
    /* There has not been any size dependent data: */
150
150
    return(0);
151
151
  }
152
152
 
153
 
  while (((ptr=GetLastFontSize(FontID)) != NULL)){
 
153
  while (((ptr=T1int_GetLastFontSize(FontID)) != NULL)){
154
154
    currsize=ptr->size;
155
155
    T1_DeleteSize( FontID, currsize);
156
156
    sizecount++;
198
198
  int result;
199
199
 
200
200
  
201
 
  if (CheckForFontID(FontID)==-1){  /* Invalid ID */
 
201
  if (T1_CheckForFontID(FontID)==-1){  /* Invalid ID */
202
202
    T1_errno=T1ERR_INVALID_FONTID;
203
203
    return(-1);   
204
204
  }
205
205
  
206
 
  if (CheckForFontID(FontID)==0)   /* Font is not loaded */
 
206
  if (T1_CheckForFontID(FontID)==0)   /* Font is not loaded */
207
207
    return(0);   
208
208
 
209
209
  /* Memory freeing must be done hierachical, start with size dependent