Search:

Type: Posts; User: awsdert

Page 1 of 20 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    6
    Views
    148

    Okay I'm encountering a strange bug now. This...

    Okay I'm encountering a strange bug now.

    This infinity loops:


    while ( (line = tcf_next_line( file )) )
    {
    puts( line );
    }
  2. Replies
    6
    Views
    148

    For anyone that was looking for the fault in the...

    For anyone that was looking for the fault in the bottom function in my previous post, I found it, turned out I had not cleared the remaining bytes correctly, here's the correct code for that section:...
  3. Replies
    6
    Views
    148

    While I was waiting for a response I worked on a...

    While I was waiting for a response I worked on a pair of functions that extracted and concated variables from the path to a text buffer (_path in this case), somehow the problem went away after I did...
  4. Replies
    6
    Views
    148

    No, I used an absolute path, I simply replaced it...

    No, I used an absolute path, I simply replaced it with ~ before posting, I feel uncomfortable about putting my directories on the net.
  5. Replies
    6
    Views
    148

    What am I overlooking with my test code?

    Been trying to learn opengl but the project I was adapting to it has become a mess so I created a new project with fresh code in mind, figured I'd refresh myself on the TCHAR crap that windows...
  6. Encountering a segfault that I can't track down...

    Encountering a segfault that I can't track down the source of, I've uploaded the current state of code to the gitlab repository (I switched from github to gitlab after having enough of copying my SSH...
  7. I'll take that as a no then

    I'll take that as a no then
  8. What recommendations do peops have for object management?

    I've recently realised the best way to share objects into lua and anything the lua code passes those objects onto without the risk of mixing up pointers from different allocation systems (via...
  9. Replies
    15
    Views
    500

    btw does anyone think this is insufficient...

    btw does anyone think this is insufficient documentation for the original function I spoke of:


    /* '\0' is temporarily used to overwrite directory seperators during the search,
    * seperators are...
  10. Replies
    15
    Views
    500

    I feel like something is wrong with these, if...

    I feel like something is wrong with these, if anyone spots it, mind telling me what it is please


    #ifdef PAW_WIN32
    struct paw_path* paw_get_sym_path_by_handle( void *ud, HANDLE file )
    {...
  11. Replies
    15
    Views
    500

    Found something of semi-relevance today:...

    Found something of semi-relevance today:
    NtQueryInformationFile


    #ifdef PAW_WIN32
    struct paw_path paw__win32_get_file_user_path( void *ud, HANDLE file )
    {
    FILE_NAME_INFORMATION fi;...
  12. Replies
    15
    Views
    500

    Honestly that seems slower than the method I've...

    Honestly that seems slower than the method I've gone with, it IS good for enumerating them though so ty, I'll eventually make use of that
  13. Replies
    15
    Views
    500

    I'll look into that later then, for now a simple...

    I'll look into that later then, for now a simple method is good enough, I'll just add a TODO comment in there to jog my memory later
  14. Replies
    15
    Views
    500

    Okay, this is what I have, see any problems? ...

    Okay, this is what I have, see any problems?



    ...
    else
    {

    #ifdef PAW_WIN32
    *ENT = strrchr( src, '\\' );
  15. Replies
    15
    Views
    500

    That was actually helpful, I'll iterate through...

    That was actually helpful, I'll iterate through each directory in the path until reach the filename or the device is different, btw what I meant was something like the "C:\" you get for system media...
  16. Replies
    15
    Views
    500

    I did consider that but the documentation doesn't...

    I did consider that but the documentation doesn't explain what to look for when seeing if a path it is linked to a device's root, or at least doesn't do a good enough job of it since I can't work it...
  17. Replies
    15
    Views
    500

    I appreciate the attempt but that's all for the...

    I appreciate the attempt but that's all for the shell & bash, I need a function in the operating system
  18. Replies
    15
    Views
    500

    Anyone familiar with linux file APIs?

    I'd like to check if a path is from a mounted media, on windows it's fairly easy, just grab the first ':' character and declare anything before it as a drive but on linux I'm struggling to find some...
  19. Sooner or later I'm gonna have to get round to...

    Sooner or later I'm gonna have to get round to checking for the death of traced & potentially hooked processes, what would be the suggestions for when I get to that point for both systems
  20. This is the new state of the function, I'm not...

    This is the new state of the function, I'm not expecting there to be issues but posting it on the off chance I overlooked something.


    PAW_SHARED struct paw_app* paw_boot_app( void *ud, char const...
  21. ty :)

    ty :)
  22. Launching programmes in Win32 & Linux/Unix/Posix

    I've got this:


    PAW_SHARED struct paw_app* paw_boot_app( void *ud, char const * const path, char *argv[], char *envp[] )
    {
    #ifdef PAW_WIN32
    /* Not supported yet */
    return NULL;
    #else
    int...
  23. Replies
    26
    Views
    983

    I'm late to see this but yeah I noticed that...

    I'm late to see this but yeah I noticed that sometime between my post and actually fixing the issue, after that I got sidetracked with fixing the issue with initializing liblpaw via lua

    Edit: Thx...
  24. Replies
    26
    Views
    983

    Finally managed to fix the issue by setting rpath...

    Finally managed to fix the issue by setting rpath to $(LIB_DIR) instead of .
  25. Replies
    26
    Views
    983

    I think I solved the previous issue but to...

    I think I solved the previous issue but to confirm I need to get passed one that popped up now:


    ...
    gcc -I ./include -L ./lib -fPIC -shared -o lib/libpaw.so src/app.c.o src/apps.c.o...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4