[netsurf-dev] [PATCH 1/3] Return nserror in most filepath utility functions

2024-10-29 Thread valentio
From: Olivier Valentin --- frontends/framebuffer/fetch.c | 3 +- frontends/framebuffer/font_freetype.c | 4 +- frontends/framebuffer/gui.c | 4 +- frontends/gtk/fetch.c | 3 +- frontends/gtk/gui.c | 2 +- frontends/gtk/resources.c

[netsurf-dev] [PATCH 2/3] Turn every PATH_MAX usage into an explicit parameter.

2024-10-29 Thread valentio
From: Olivier Valentin When static buffers are used, PATH_MAX becomes the size of the provided buffer, and is passed as a parameters to the underlying implementation. --- frontends/framebuffer/fetch.c | 2 +- frontends/gtk/fetch.c | 2 +- frontends/gtk/gui.c | 2 +- front

[netsurf-dev] going dynamic with path strings

2024-10-29 Thread valentio
Hello ! I would like to restore NetSurf in Debian GNU/Hurd, but PATH_MAX is not defined there. As discussed on IRC, using dynamic allocation for paths would be a desirable solution, and it is the POSIX way. Here are the proposed steps in detail : - Have most of the file-path functions return nser

[netsurf-dev] [PATCH 3/3] Use dynamic path allocation in gtk and fb frontends

2024-10-29 Thread valentio
From: Olivier Valentin --- frontends/framebuffer/fetch.c | 6 -- frontends/gtk/fetch.c | 6 -- frontends/gtk/gui.c | 9 ++--- utils/filepath.c | 35 +-- utils/filepath.h | 14 +- 5 files change