Search:

Type: Posts; User: @nthony

Page 1 of 20 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    3
    Views
    2,197

    yep, I should have mentioned I don't want to...

    yep, I should have mentioned I don't want to anger my 32-bit build either :)

    But I remembered reading something from opengroup.org on this, and it came back to me: intptr_t is the answer! It's an...
  2. Replies
    3
    Views
    2,197

    Casting to pointer from integer

    I'm porting my code over to 64-bit and get the "casting to pointer from integer of different size" warning from:

    (void *)(int)foo

    I can understand it warning about a loss of information...
  3. Replies
    4
    Views
    1,221

    excellent thanks Bayint! that's exactly the...

    excellent thanks Bayint! that's exactly the reassurance I was looking for.
    I will cast the (void *) argument to the type of the first member.
  4. Replies
    4
    Views
    1,221

    thanks for pointing out that macro, but how can I...

    thanks for pointing out that macro, but how can I use it without knowing the struct type?
    The myfunc function does not know the exact kind of struct that is being passed (it can be one of many...
  5. Replies
    4
    Views
    1,221

    Accessing part of an unknown structure

    Confirm: safe and portable?


    int main( void ) {
    struct {
    int magic;
    void *data1;
    void *data2;
    ...
    void *datan;
  6. Replies
    3
    Views
    2,741

    I used to use structs to pass args, but then you...

    I used to use structs to pass args, but then you can't use generics.

    I did figure out the problem, and my c-syntax was mostly correctly; however, anyone using the win32 API will be keen to know...
  7. Replies
    3
    Views
    2,741

    Pointer to a function pointer

    I'm trying to pass function pointers as arguments in a list of void pointers. However, ISO C forbids storing a function pointer as a void pointer, so I instead use the address of a function pointer...
  8. Thread: Ubisoft DRM

    by @nthony
    Replies
    23
    Views
    4,403

    The bolded titles were to signify their focus on...

    The bolded titles were to signify their focus on tournament play. It would be like saying "EVE Online failed because it had no offline component", or that "Starcraft failed because it had no FPS...
  9. Replies
    9
    Views
    5,792

    not sure why the hook is necessary, but I think...

    not sure why the hook is necessary, but I think it works, thanks... I was just starting to learn Git :D
  10. Replies
    9
    Views
    5,792

    Thanks, this will be important. Also glad to...

    Thanks, this will be important. Also glad to discover that SourceForge supports all VCSs mentioned in this topic!
  11. Thread: Ubisoft DRM

    by @nthony
    Replies
    23
    Views
    4,403

    I disagree: Quake III Arena, Unreal Tournament....

    I disagree: Quake III Arena, Unreal Tournament. These were intended for purely competitive multiplay. Try Quake 2, or Doom for SP; I applaud Id's and Epic's uncompromising focus on a multplay...
  12. Replies
    9
    Views
    5,792

    In terms of "historic" I have everything since 1;...

    In terms of "historic" I have everything since 1; however all the junk is filtered out. Is that not normal?

    Thanks for the suggestions all, I will look into Git (which is distributed version...
  13. Replies
    9
    Views
    5,792

    Maintaining 2 SVN Repositories

    Hi all,
    I have two SVN repositories that I would like to mirror, one that is public facing, hosted remotely; and the other for my private use hosted locally (in case the public one should ever go...
  14. Thread: Ubisoft DRM

    by @nthony
    Replies
    23
    Views
    4,403

    I'm curious what your views of Steam are?...

    I'm curious what your views of Steam are?
    Although I generally loathe DRM and agree with the sentiments in this thread, I find we anti-DRM'ers seem oddly accepting of Steam when in-fact we are in...
  15. Thread: Signing off.

    by @nthony
    Replies
    10
    Views
    2,747

    You were always an edgy guy and I loved that you...

    You were always an edgy guy and I loved that you always 'went there'. Best in your endeavours and see you around!
  16. Thread: Goodbye, Dave.

    by @nthony
    Replies
    40
    Views
    12,408

    I've been on many the receiving end of helpful...

    I've been on many the receiving end of helpful exchanges with Dave, I admire is wisdom and courage and wish him all the best. I'm sure his on-line legacy is as revered as those who knew him in-person.
  17. Replies
    7
    Views
    1,647

    I attempt to reassign trees to its children so...

    I attempt to reassign trees to its children so that each iteration descends. And node is reassigned to be the current parent. It is flawed though, because at the end of each iteration, 'trees' and...
  18. Replies
    7
    Views
    1,647

    sorry, the while condition should read "--bar" ...

    sorry, the while condition should read "--bar"

    @MK27, Mario: it's not "quite" recursive due to the last statement not being a recursive call, but in fact an iteration of a recursive call.
    "if(...
  19. Replies
    7
    Views
    1,647

    Looping tail call

    foo( bar ) {
    ...
    while( bar )
    foo( bar-- );
    }
    It's not quite tail recursive, but can it be converted to a loop?
  20. Replies
    4
    Views
    2,284

    The difference in memory between the two methods...

    The difference in memory between the two methods is 10 K before a COM call and about 1 MB after, I'll keep trying other placements and see what happens.
  21. Replies
    4
    Views
    2,284

    CoInitialize[ex]/CoUnitialize calls

    For an application that makes little use of COM, where is the most effecient place to make the CoInitialize/Unitialize calls?

    Currently I use COM only briefly in a modal dialog and CoInitialize it...
  22. Replies
    9
    Views
    3,101

    I get this on 4.1.2 on Debian, but 3.3.5 on...

    I get this on 4.1.2 on Debian, but 3.3.5 on Debian and 3.4.5 and 4.4.0 on MinGW are silent.

    I'm not going after a solution or anything; just offering one of those "hmm, that's weird" moments. :)
  23. Replies
    9
    Views
    3,101

    @slinger, mk, ssharish: To clarify, I'm speaking...

    @slinger, mk, ssharish:
    To clarify, I'm speaking of "const void", not "const void *". The latter is extremely useful, pointing to a generic constant type, however the former doesn't make much sense...
  24. Replies
    9
    Views
    3,101

    Constant nothingness

    Qualifying void as const doesn't seem to be valid at all, however GCC will accept "const void" as a legal type (though some compilers consider it an error). Has anyone ever encountered this in code,...
  25. Replies
    5
    Views
    2,342

    Ah thanks for that! I will be testing the...

    Ah thanks for that! I will be testing the "mingw-w64_x86-64_mingw32_4.4.0-1" package today.

    A lot of the other builds I had tried either depended on the cygwin dll or weren't clear as to whether...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4