~z88dk-team/z88dk-pkg/trunk

« back to all changes in this revision

Viewing changes to src/appmake/appmake.c

  • Committer: Bazaar Package Importer
  • Author(s): Luca Falavigna
  • Date: 2008-02-12 08:23:49 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080212082349-wgijt44scmgje90o
Tags: 1.7.ds1-1ubuntu1
* Merge from Debian unstable. Remaining Ubuntu changes:
  - build z88dk and z88dk-bin binary packages for lpia too
  - update Maintainer field as per spec

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 *   This file contains the driver and routines used by multiple
6
6
 *   modules
7
7
 * 
8
 
 *   $Id: appmake.c,v 1.2 2003/03/13 14:50:29 dom Exp $
 
8
 *   $Id: appmake.c,v 1.3 2007/05/10 20:03:25 stefano Exp $
9
9
 */
10
10
 
11
11
#define MAIN_C
287
287
        writebyte_p(mystring[c],fp,p);
288
288
    }
289
289
}
 
290
 
 
291
void writebyte_cksum(unsigned char c, FILE *fp, unsigned long *cksum)
 
292
{
 
293
    *cksum += (unsigned int) c;
 
294
    fputc(c,fp);
 
295
}
 
296
 
 
297
void writeword_cksum(unsigned int i, FILE *fp, unsigned long *cksum)
 
298
{
 
299
    writebyte_cksum(i%256,fp,cksum);
 
300
    writebyte_cksum(i/256,fp,cksum);
 
301
}