Search:

Type: Posts; User: Lucide

Search: Search took 0.01 seconds.

  1. Replies
    8
    Views
    8,285

    Answers often come when you're not actively...

    Answers often come when you're not actively looking for them!

    No, because a read is still a strict aliasing violation, no magic stuff happening here sadly.
    But, if you were to cast a pointer to a...
  2. Replies
    8
    Views
    8,285

    Thank you! I found a link to a defect report...

    Thank you!
    I found a link to a defect report that clarifies the union behaviour: Defect report #283.
    The union approach you suggested is safe and sound and "ready to use" in C99 (the first usage...
  3. Replies
    8
    Views
    8,285

    Given a better look around, perhaps this is not...

    Given a better look around, perhaps this is not the right place to ask such questions! It's all a jumble of pre-beginner/beginner/something else threads all mixed together.
    With no separation...
  4. Replies
    8
    Views
    8,285

    Yes, most of the points brought up here com from...

    Yes, most of the points brought up here com from there, somehow it's still going on to this day, through comments.
    What I've written above includes what I was able to understand from there. But even...
  5. Replies
    8
    Views
    8,285

    Hi, your reply reminded me that I forgot to...

    Hi, your reply reminded me that I forgot to mention some important details!

    I'm looking at code that was already working, but was not fully strict aliasing compliant. Endianness is correctly...
  6. Replies
    8
    Views
    8,285

    Is aliasing of "pointer to const" ok?

    I'm reviewing some code I've written some time ago, and I'm taking I'm taking this opportunity for to dust off my C.
    I'm using uint32_t arrays to store UTF8-encoded codepoints. They are treated as...
  7. Replies
    0
    Views
    2,386

    Questions about code documentation

    Hi!
    Before committing to create a full fledged new thread, I wanted to know if it's ok to ask questions about documentation generation. (more specifically, C code documentation generation).

    I've...
  8. I read (by now) the first article...

    I read (by now) the first article you provided.
    It's really good, even if a bit windows-oriented


    But, by now, I still think I should use wide chars, and I'll explain why:
    - especially because...
  9. Well, I posted at least 6 urls between articles...

    Well, I posted at least 6 urls between articles and pages here, that I could find and read when I had some spare time.

    I didn't write an extensive amount of questions, asking for opinions from...
  10. I read again the article after christop's...

    I read again the article after christop's clarification and I come out to the conclusion of using wide chars:
    I'll lose some performance since at every output(and input) the char will have to be...
  11. I know, that's why I'm confused about the article...

    I know, that's why I'm confused about the article's subdivision
    I'll post it again:
    15386
  12. I did some even additional research and I found...

    I did some even additional research and I found out new things, but, as before, I'd like to have some confirmations.

    I understood that wchar type and wchar functions are not there to simply work,...
  13. Damn, it's even more complicated than I thought,...

    Damn, it's even more complicated than I thought, but a lot more things makes sense, thank you!

    Ok, so I can print non ascii in a narrow stream, but comprehensibly only if they're represented with...
  14. Making my library compatible with unicode, in Ubuntu

    Hi :), first post

    Some years ago I wrote a text-based graphic library, which worked similarly to Scratch, but with 2d arrays of integers as sprites, one character per cell.
    I used integers...
Results 1 to 14 of 14