Search:

Type: Posts; User: awsdert

Page 1 of 20 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    569

    I haven't been able to find information on that,...

    I haven't been able to find information on that, yet I vaguely remember reading somewhere it meant the length of the passed string, is that correct?
  2. Replies
    2
    Views
    569

    Did I misunderstand any printf modifiers?

    So far this is how I'm treating the modifiers in my custom implementation:



    /* Defaults used if %> is not used to switch to another set
    *
    * In all cases these modifiers are read directly...
  3. Replies
    0
    Views
    708

    What are the common C# makefile defines?

    I'm trying to make sure I can compile C# on my manjaro install (for job hunting purposes) and I would like to know what are the common defines used, for example C uses CC for the compiler, C++ CXX...
  4. But if I don't ask he might not think to...

    But if I don't ask he might not think to elaborate, if he still refuse to elaborate then he's only showing himself to be "not worthwhile", by God's own words, no matter how many times we are wronged,...
  5. What makes you say that? And of whom are you...

    What makes you say that? And of whom are you referring? Even when I look at the initial post of the thread I see nothing that really deviates form the title, might've confounded the question a bit...
  6. *looks at thread title* "Which way to loop...

    *looks at thread title* "Which way to loop throught an array is the fastest one?"
    I believe you're incorrect there, unless someone changed the title before I saw the thread.
  7. Replies
    3
    Views
    333

    From what I see I think you're misunderstanding...

    From what I see I think you're misunderstanding what sizeof does, for starters sizeof(commands) will, in general, be equal to sizeof(int), that is the sizeof of what will contain the values of your...
  8. I've not read through the posts here but I'll add...

    I've not read through the posts here but I'll add my tidbit. I remember watching a vid at some point that mentioned going backwards through an array is usually faster than going forwards, something...
  9. mixing c++ with c, looking for suggestions

    I've got a C api that has a lot of common behaviour typedefs (namely the char, wchar_t, char16_t etc lot), I've managed to do this so far:

    string.cpp


    #ifdef INC_PAW
    #include...
  10. Replies
    11
    Views
    1,654

    When you're just experimenting with C code or...

    When you're just experimenting with C code or making a software version (albeit not as fast as hardware) the preprocessor macros & the pointers are useful, besides you can always just preparse the...
  11. Replies
    11
    Views
    1,654

    Welp that bit operation flexibility is beyond my...

    Welp that bit operation flexibility is beyond my ability to fix, for that particular example I'd say a temporary macro would be suitable:


    uint32_t tausworthe_via_pointers(uint32_t *s1, uin32_t...
  12. Replies
    11
    Views
    1,654

    Well I consider apathy close enough to agreement...

    Well I consider apathy close enough to agreement in that you're not disagreeing so that's good enough for me, I wouldn't expect the library to solve your needs when I'm currently writing it for my...
  13. Replies
    11
    Views
    1,654

    Er, no I don't see the C library as being...

    Er, no I don't see the C library as being exclusively for consoles, that just happens to be the easiest place to start since what I'm aiming to move onto before I take the detachment from CRT...
  14. Replies
    11
    Views
    1,654

    Thanks but I'm already aware of those...

    Thanks but I'm already aware of those differences, guessing I didn't make it clear but I sorted the issue after finding out I had been returning the wrong count of printed characters from...
  15. Replies
    11
    Views
    1,654

    Never mind, turns out I had been returning a...

    Never mind, turns out I had been returning a count that was 1 less than the actual count somehow, after abandoning the separate count I was doing - which added up the returned counts from the...
  16. Replies
    11
    Views
    1,654

    writing newlines to stdout file descriptor

    I get this:


    ...
    pawPrintf( "%u", 10 ) gave:
    10pawPrintf( "%d, %s", did, "abc" ) gave:
    2, abc
    ...

    From this:
  17. Replies
    1
    Views
    814

    Judging by the lack of responses I'm guessing...

    Judging by the lack of responses I'm guessing nobody has any suggestion for increasing flexibility so I'll just bulldoze ahead with this api
  18. Replies
    1
    Views
    814

    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
    {...
  19. Replies
    2
    Views
    307

    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...
  20. Replies
    2
    Views
    307

    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)...
  21. Replies
    2
    Views
    307

    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/\"" ...
    ...
  22. Replies
    0
    Views
    439

    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,...
  23. Replies
    1
    Views
    9,870

    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...
  24. Replies
    1
    Views
    9,870

    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...
  25. 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...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4