Changeset 7e5d688 in git


Ignore:
Timestamp:
26/07/10 10:31:27 (9 years ago)
Author:
Olly Betts <olly@…>
Branches:
add-show-splays, line_contents, master, stereo, svn/github/master, svn/origin/master, svn/tags/1.1.14, svn/tags/1.1.15, svn/tags/1.1.16, svn/tags/1.2.0, svn/tags/1.2.1, svn/tags/1.2.2, svn/tags/1.2.3, svn/tags/1.2.4, svn/tags/1.2.5, svn/trunk, travis-osx
Children:
5dd874a
Parents:
8c45eea
Message:

src/useful.c: Remove commented out code.

git-svn-id: file:///home/survex-svn/survex/trunk@3500 4b37db11-9a0c-4f06-9ece-9ab7cdaee568

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ChangeLog

    r8c45eea r7e5d688  
     1Mon Jul 26 09:31:14 GMT 2010  Olly Betts <olly@survex.com>
     2
     3        * src/useful.c: Remove commented out code.
     4
    15Mon Jul 26 09:19:19 GMT 2010  Olly Betts <olly@survex.com>
    26
  • src/useful.c

    r8c45eea r7e5d688  
    11/* useful.c
    2  * Copyright (C) 1993-2001,2003 Olly Betts
     2 * Copyright (C) 1993-2001,2003,2010 Olly Betts
    33 *
    44 * This program is free software; you can redistribute it and/or modify
     
    2929int16_t useful_w16;
    3030int32_t useful_w32;
    31 
    32 #if 0 /* these functions aren't needed - macros do the job */
    33 /* the numbers in the file are little endian, so use fread/fwrite */
    34 extern void Far
    35 useful_put16(int16_t w, FILE *fh)
    36 {
    37    fwrite(&w, 2, 1, fh);
    38 }
    39 
    40 #undef useful_put32
    41 extern void Far
    42 useful_put32(int32_t w, FILE *fh)
    43 {
    44    fwrite(&w, 4, 1, fh);
    45 }
    46 
    47 #undef useful_get16
    48 extern int16_t Far
    49 useful_get16(FILE *fh)
    50 {
    51    int16_t w;
    52    fread(&w, 2, 1, fh);
    53    return w;
    54 }
    55 
    56 #undef useful_put32
    57 extern int32_t Far
    58 useful_get32(FILE *fh)
    59 {
    60    int32_t w;
    61    fread(&w, 4, 1, fh);
    62    return w;
    63 }
    64 #endif
    6531
    6632#else
Note: See TracChangeset for help on using the changeset viewer.