Search:

Type: Posts; User: awsdert

Page 1 of 20 1 2 3 4

Search: Search took 0.01 seconds.

  1. Thread: Curropted text

    by awsdert
    Replies
    1
    Views
    55

    Turns out memcpy does not do what is says on the...

    Turns out memcpy does not do what is says on the tin, replaced it with this:


    txt = (char*)(tok.dst.addr);
    for ( byte = 0; byte < size; ++byte, ++txt ) txt[byte] = cb[byte];
    and hay presto I...
  2. Thread: Curropted text

    by awsdert
    Replies
    1
    Views
    55

    Curropted text

    Some of you will remember that I said I would move onto producing FPNs from text some days ago, well in aid of that I needed to backtrack the position of the source data on ocassion with the method I...
  3. Replies
    4
    Views
    551

    New idea, no using string either, definitely...

    New idea, no using string either, definitely causes an error with cc (presumably redirecting to gcc) as I've just tested it:

    0~62~z
  4. Replies
    0
    Views
    73

    Need help with iconv() usage

    I keep getting errors popup whenever my source input is not UTF-8 so I'm clearly using it wrong somehow, this is how I've been using it so far:


    U8.used = utflen(u8) + 1;
    if ( (ret = vecsize(...
  5. Replies
    4
    Views
    551

    For everyone's reference I've finally squashed...

    For everyone's reference I've finally squashed the bugs I could see on integer front, gonna finish with string handling next before moving onto floating point numbers which I forgot about, my current...
  6. Replies
    4
    Views
    551

    Thought so, just needed to be sure To begin...

    Thought so, just needed to be sure

    To begin with this is supposed a new literal standard so a non-conforming compiler should & would actually abort compile at this point and just chuck out errors...
  7. Replies
    4
    Views
    551

    Idea for new literal

    So I had been thinking about how to give access to my ubase function in analysed text while still at the stage of literals and not looking for functions, this is what I came up with:...
  8. Replies
    1
    Views
    120

    Well I thought of a method, for now this seems to...

    Well I thought of a method, for now this seems to work:


    bit = 1u << (_literaln.width - 1);
    if ( _literaln.num & bit ) {
    while ( (bit <<= 1) )
    _literaln.num |= bit;
    }

    I put it in...
  9. Replies
    1
    Views
    120

    specific width values

    Gotta go to work now so I'll just post the code with a TODO at the bottom explaining what I need to do,
    if any of ya got suggestions then please post 'em, either way I'll try again 2mw, 2nite I'll...
  10. Replies
    8
    Views
    369

    Hmm, given lowislow is a parameter of the...

    Hmm, given lowislow is a parameter of the function I doubt that it could ever be uninitialised, unless the one I uploaded is different to the version I have now:


    int ubase62(
    NEXTC *_nextc,...
  11. Replies
    1
    Views
    107

    Found the error, it wasn't directly in rdText, it...

    Found the error, it wasn't directly in rdText, it was in a sub sub call to ubase() via rdEscChr(), I had missed the = sign in a >= comparison for the max number of characters to read as part of the...
  12. Replies
    7
    Views
    180

    They have to stay unfortunately, without them I...

    They have to stay unfortunately, without them I have no quick means of converting to and from the encoding the system is using, the alternative is a long .......... function that does a lot of...
  13. Replies
    1
    Views
    107

    Characters seem to be skipped incorrectly

    I have a function that's meant to read the contents of text literals, somehow or other it seems to be randomly skipping the 1st few characters:
    Struggling to spot the cause myself so hoping fresh...
  14. Replies
    7
    Views
    180

    I didn't notice that, thanks :) But no that...

    I didn't notice that, thanks :) But no that didn't fix the segfault since it turned out I had been misusing a global variable thinking it was for something else, I just added another global with a...
  15. Replies
    5
    Views
    189

    case 4: system("cls"); ...

    case 4: system("cls");
    displayone(e,max);
    system("cls");
    break;

    case 5: ...
  16. Replies
    7
    Views
    180

    Figured while I'm waiting and have a lack of...

    Figured while I'm waiting and have a lack of ideas of what to do I would go ahead and decide on some better names for those variables, since they only get used in this one instance I decided to give...
  17. Replies
    7
    Views
    180

    Okay just got home and ran a debugging compile,...

    Okay just got home and ran a debugging compile, here's my output (minus the gdb preamble):


    make char.dbg
    cc -ggdb -fPIC -Wall -Wno-multichar -shared -o ./libdnext.so -c next.c
    cc -ggdb -fPIC...
  18. Replies
    7
    Views
    180

    Segmentation fault via iconv

    Struggling to fix this problem myself, hoping for a solution to be posted while I'm at work.
    The section of code where iconv() is used:


    if ( encoding != std_encoding_utf ) {
    fprintf( stderr,...
  19. Replies
    8
    Views
    369

    As it turns out the bug was in a different...

    As it turns out the bug was in a different function, it was simply caught in ubase62
  20. Replies
    8
    Views
    369

    Thank you hodor, yeah I noticed those warnings...

    Thank you hodor, yeah I noticed those warnings only after I posted but figured that was a minor deal compared to the ridicules output, good to know my suspicions were correct though, unfortunately...
  21. Replies
    8
    Views
    369

    Quick speed test

    So I thought of a different method for reading in numbers and to check it was actually faster (which I strongly suspected) I decided to run a speed test only the resulting difference was so vast I...
  22. Replies
    7
    Views
    172

    I suggest you find a new teacher who knows what...

    I suggest you find a new teacher who knows what he's doing then cause your current one clearly doesn't
  23. Replies
    7
    Views
    247

    Ooh ok I was planning on changing my loops...

    Ooh ok I was planning on changing my loops anyways so good to know, your way made it much clearer thab the oversized post you linked too
  24. Replies
    7
    Views
    247

    Well thx 4 the link, the example wasn't intended...

    Well thx 4 the link, the example wasn't intended to b perfect since colleges will typically use a recent enough library and fs that that issue would not show, I'll still keep that in mind with my own...
  25. Replies
    46
    Views
    1,306

    Thx, as for the "illusion" I see it as just the...

    Thx, as for the "illusion" I see it as just the timing of the points moving to create a shape, just simpler version of what our screens do to my knowledge
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4