Search:

Type: Posts; User: robwhit

Page 1 of 20 1 2 3 4

Search: Search took 0.02 seconds.

  1. If you mean you want the program image to be...

    If you mean you want the program image to be shared in main memory, then that's already done automatically for read-only parts of the image.

    If you mean you want the program image to be shared on...
  2. Elysia, what you're talking about reminds me of...

    Elysia, what you're talking about reminds me of what Mach was trying to do. Basically, it was (is) a microkernel, with everything possible moved into its own process (task), separate from the...
  3. Replies
    7
    Views
    6,606

    Ebay.

    Ebay.
  4. You have 6 %fs in your format strings. Don't you...

    You have 6 %fs in your format strings. Don't you want 1?

    int fclose(FILE *fp2); this is a function declaration. A declaration tells the compiler of something (contrasting to a definition which...
  5. Replies
    5
    Views
    2,061

    I don't know.

    I don't know.
  6. Replies
    5
    Views
    2,061

    You didn't #include the header file that declared...

    You didn't #include the header file that declared TransparentBlt.
  7. Replies
    10
    Views
    975

    Those are turned around. !first is equivalent to...

    Those are turned around. !first is equivalent to first == NULL, and current->next in a condition (like in an if statement or loop condition) is equivalent to current->next != NULL.
  8. Replies
    17
    Views
    15,541

    Ok, seems I'm wrong somewhat. in N1256 (a...

    Ok, seems I'm wrong somewhat. in N1256 (a post-C99 draft), there's footnote 82 which says:So it appears to be valid, as long as the accessed value isn't a trap representation in the type you're using...
  9. whups sorry. knee-jerk reaction.

    whups sorry. knee-jerk reaction.
  10. Replies
    12
    Views
    1,348

    ah yes, I meant struct S { int i; char c; };...

    ah yes, I meant

    struct S { int i; char c; };
    S s = { 0 };
    char * restrict cp = &s.c; *cp = 1;

    your reasoning seems sane. thanks.
  11. Thread: Use of Macro

    by robwhit
    Replies
    5
    Views
    884

    are you sure it's not just starting with str and...

    are you sure it's not just starting with str and a lowercase letter?
  12. better yet, double array[10]; // for example...

    better yet,
    double array[10]; // for example
    size_t size = sizeof(array);sizeof evaluates to a value of type size_t, which is an unsigned integer (int != integer, int is a kind of integer) type.
  13. Replies
    12
    Views
    1,348

    but before it's an address, it's an array object,...

    but before it's an address, it's an array object, correct? only then would it undergo array to pointer conversion.

    let me put it another way...

    struct S { int i; char c; };
    S s = { 0 }, *...
  14. Replies
    12
    Views
    1,348

    yes, I agree. but can you do 'a;'? note the...

    yes, I agree. but can you do 'a;'? note the difference between that and 'a[0];'. does 'a;' count as an access to a[0], a[1], and a[2]?
  15. Replies
    12
    Views
    1,348

    how do you know?

    how do you know?
  16. Replies
    12
    Views
    1,348

    Does it violate the guarantees of restrict? Is a;...

    Does it violate the guarantees of restrict? Is a; considered an access that conflicts with the modification of a[1] through a restrict qualified pointer?
  17. Replies
    17
    Views
    15,541

    Sure it's not cheating, but it is undefined...

    Sure it's not cheating, but it is undefined behavior in ISO standard C. You could use compiler extensions like GCC has to get the behavior you want, though.
  18. Replies
    12
    Views
    1,348

    why do you think that?

    why do you think that?
  19. Replies
    12
    Views
    1,348

    restrict and arrays

    int a[3], * restrict ip = &a[1]; *ip = 1; does a; invoke undefined behavior?
  20. Thread: Goodbye, Dave.

    by robwhit
    Replies
    40
    Views
    6,464

    Hi Dave. You've set a great example here and I...

    Hi Dave. You've set a great example here and I keep thinking I should act more like you. Sorry you're sick, I hope you get better.
  21. Replies
    37
    Views
    2,735

    I guess we miss each other's points then.

    I guess we miss each other's points then.
  22. Replies
    37
    Views
    2,735

    You're saying that a part of your body seems to...

    You're saying that a part of your body seems to resemble a Turing machine in some way, therefore all life is a Turing machine? Even disregarding the fact that you completely miss what "life" is,...
  23. Replies
    37
    Views
    2,735

    No, you are confused. A Turing machine involves...

    No, you are confused. A Turing machine involves an strip of tape of infinite length, symbols encoded on that tape, and something that changes those symbols. That has nothing to do with life.
  24. Replies
    37
    Views
    2,735

    Hmm. Well, you're arguing minor semantics of word...

    Hmm. Well, you're arguing minor semantics of word definitions, which I am not.

    If you think that the phrase "Tomorrow is green!" means that "tomorrow" and "green" mean the same thing, you don't...
  25. Replies
    37
    Views
    2,735

    Because it's like saying green is the same thing...

    Because it's like saying green is the same thing as tomorrow. They're completely different.
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4