Search:

Type: Posts; User: awsdert

Page 1 of 20 1 2 3 4

Search: Search took 0.03 seconds; generated 26 minute(s) ago.

  1. Replies
    0
    Views
    158

    Custom printf/scanf suggestions desired

    So far this is how I'm declaring my custom versions:


    typedef struct _PAWBUF PAWSTR;
    typedef struct _PAW_PUTF PAW_PUTF;
    typedef struct _PAW_GETF PAW_GETF;

    struct _PAW_PUTF
    {...
  2. Replies
    2
    Views
    181

    Never mind, found my solution: #define...

    Never mind, found my solution:


    #define INC_2X_H(INC) #INC
    #define INC_1X_H(DIR,INC) INC_2X_H(DIR/INC)
    #define INC_X_H(INC) INC_1X_H(INC_X,INC)

    #include INC_X_H(...)

    I'm using the header...
  3. Replies
    2
    Views
    181

    Okay, so I had an idea to work around the issue...

    Okay, so I had an idea to work around the issue since macros are at least allowed:



    #define INC_3X_H(INC) #INC
    #define INC_2X_H(DIR,INC) INC_3X_H(DIR##INC)
    #define INC_1X_H(DIR,INC)...
  4. Replies
    2
    Views
    181

    header path issues

    K, so I tried to make gcc generate absolute paths by defining a variable for where my headers are located and attempted to concatenate it like this:



    gcc ... -D INC_X="\"./include/\"" ...
    ...
  5. Replies
    0
    Views
    366

    Build issue, constantly re-building

    First the link, don't worry about the generated executables not running past a certain point, I only just finished getting the new lua build script to generate the needed goals for make to process,...
  6. Replies
    1
    Views
    9,801

    Never mind, finally spotted what I did wrong, I...

    Never mind, finally spotted what I did wrong, I didn't realise I needed to minus 1 from the length of sfx, code now looks like this (I also noticed some left over code from experiments so fixed that...
  7. Replies
    1
    Views
    9,801

    lua logic failing

    I can extract directories with the below code just fine but arguments like "src/libbasic/*.c" aren't resulting in anything (yes there are c files in that directory), any ideas?


    local function...
  8. Seeking constructive critism of my new build scripts

    Just clone the below then run "make --just-print" in the root folder, in theory should work from any sub folder but I haven't gotten round to testing that as I still need to tweak rule output a bit...
  9. Poll: Yeah, most people let their emotions blind them...

    Yeah, most people let their emotions blind them to the truth, as for end game it was to gain the attention of people who COULD revoke his privileges and hopefully get them to properly consider it or...
  10. Poll: What just like salem lost all respect from me the...

    What just like salem lost all respect from me the moment he decided the topic of a thread is unimportant and should only ever be what he declares it to be? That's dictatorship, anyone who supports...
  11. Poll: But that request was IRRELEVANT to the topic,...

    But that request was IRRELEVANT to the topic, under no circumstances should a moderator demand a thread be redirected to a different topic to what it was started for, that IS abuse of power (and yes...
  12. Poll: Ah, I thought he was just for the C forum, then...

    Ah, I thought he was just for the C forum, then even more reason he shouldn't be closing threads, that task should only be in the hands of a forum specific moderator, site wide ones should only be...
  13. Poll: Would that I could find the information, also...

    Would that I could find the information, also since salem is either the moderator or a moderator (betting the lata) for the C forum it only made sense to place it here where people would actually...
  14. Poll: That's only because people fail to respond by the...

    That's only because people fail to respond by the time I have new input, just like I sometimes fail to respond in a timely manor, mostly because I'm getting side-tracked by something
  15. Poll: The code was in response to what other people had...

    The code was in response to what other people had talked about (the off topic stuff I mentioned), and yes the compiler option WOULD'VE helped since it would prevent the debug-able binaries from...
  16. My suggestion, make all of the parts normalised...

    My suggestion, make all of the parts normalised areas, so for example:

    map uses context as it's normalised area
    each individual map square (so turns, corridors etc) uses the map as it's...
  17. Poll: Who agrees that Salem should have his admin priviledges revoked for abuse of them?

    I've just found he closed a perfectly valid thread just because he didn't like it was going back ON topic, he wanted code to a problem only he saw, I wanted compiler options since I knew only that...
  18. That would obfuscate the purpose of the function,...

    That would obfuscate the purpose of the function, no point giving a example if the purpose is unknown, to refer to another post, the purpose could be X but instead doing Y, if you don't even know...
  19. When did I say C89 was marvellous? I said I...

    When did I say C89 was marvellous? I said I prefer to stay compatible with it as much as possible, 2 VERY different things, I actually prefer C99 mainly for long long but also for the inline keyword,...
  20. First, you realise that's code I wrote off the...

    First, you realise that's code I wrote off the top of my head right, the actual struct I use has a boolean to indicate it's a string in which is added to the count in a separate variable which is...
  21. Not always the case, case & point how debug &...

    Not always the case, case & point how debug & release executables can get different behaviour on the same code
  22. I know it's initialised at runtime, that's...

    I know it's initialised at runtime, that's precisely why I don't initialise them until I need them, the reason is simple, if the function can often exit before needing the variable then the wasted...
  23. No dynamic allocations occur there (unless you...

    No dynamic allocations occur there (unless you count stack allocations, I'm not), also you should not use 2 different functions for allocations, let's go with the examples I gave for more clarity:
    ...
  24. Not seeing where the leak would occur, mind...

    Not seeing where the leak would occur, mind cluing me in?
  25. Is there anything I missed for common info?

    So far my sub-projects use these variables, is there any other common info that I should have variables for?


    %.info:
    @echo Warning, libraries get both static & shared names defined
    @echo...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4