Changeset 9 in projects for visualisator/lochstreifen.c


Ignore:
Timestamp:
Aug 29, 2008, 1:24:03 AM (11 years ago)
Author:
sven
Message:
  • Recreated Makefiles in visualisator/ and puncher/
  • All /visualisator/ sources now compile with -Wall compiler flag
  • The basic /puncher/ sources compile with -Wall, too.
  • Added Readme for schriften/

Current development is now focussed at /puncher/frontend.gtk.c.

-- Sven @ workstation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • visualisator/lochstreifen.c

    r3 r9  
    101101     // gsize *length
    102102
    103      char buf[4096];
     103     byte_t buf[4096];
    104104     size_t bytes; // gerade eben eingelesene bytes
    105      char *str = NULL;
     105     byte_t *str = NULL;
    106106     size_t total_bytes = 0;     // alle bis jetzt eingelesenen bytes
    107107     size_t total_allocated = 0;
    108      char *tmp; // fuers realloc
     108     byte_t *tmp; // fuers realloc
    109109
    110110     while(!feof(stream)) {
     
    138138     //str[total_bytes] = '\0'; // wenns ein string wäre.
    139139
    140      *content = str;
     140     *content = str; // WAS: *content = str.
    141141
    142142     return total_bytes;
     
    204204    l->only_width = width;
    205205    l->only_height = height;
     206    return 0; // could make void.
    206207}
    207208
     
    212213    l->only_width = 0;
    213214    l->only_height = 0;
     215    return 0; // yeah, void would be correct.
    214216}
    215217
Note: See TracChangeset for help on using the changeset viewer.
© 2008 - 2013 technikum29 • Sven Köppel • Some rights reserved
Powered by Trac
Expect where otherwise noted, content on this site is licensed under a Creative Commons 3.0 License