mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
Adapted from gdk-pixbuf, see the original at: https://gitlab.gnome.org/GNOME/gdk-pixbuf/-/blob/master/gdk-pixbuf/io-xpm.c rgb.txt is from X.org, see: https://gitlab.freedesktop.org/xorg/app/rgb/-/blob/master/rgb.txt Differences from the gdk-pixbuf version: - GdkPixbuf replaced with struct lab_data_buffer - Progressive and in-memory loading code removed - Two functions that had separate BSD copyright rewritten - Stores colors as ARGB32 earlier in the decoding process for efficiency - Limited to 1024x1024 px and 1024 colors to prevent abuse - Uses struct buf to build strings, in place of manual g_new/g_realloc - Uses xzalloc/xznew_n for other memory allocations - Uses g_strlcpy in place of banned strcpy/strncpy/strncat - Uses standard C types (int, bool, etc.) in place of the GLib ones - Follows labwc coding style (whitespace, braces, letter case, etc.) - Et cetera ... v2: add Perl fixes from @domo141 |
||
|---|---|---|
| .. | ||
| ci | ||
| helper | ||
| .gitignore | ||
| check | ||
| checkpatch.pl | ||
| find-banned.sh | ||
| README.md | ||
These scripts are intended to be run from the project top-level directory
like this: scripts/foo.sh
-
scripts/check: wrapper to check all files insrc/andinclude/ -
scripts/checkpatch.pl: Quick hack on the Linux kernel checkpatch.pl to lint C files written according to the labwc coding style. Run like this:./checkpatch.pl --no-tree --terse --strict --file <file>