XDT-CSOURCE(1)

πŸ“¦
version 4.20.0 Β· 6 versions
, in alpine 3.24, debian trixie, fedora 43, fedora 44, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ xdt-csource β€” C code generation utility for arbitrary data ✨

okay bestie, welcome to the xdt-csource(1) page, straight out of the Xfce Users Manual. sit down, grab a strawberry πŸ“, and let's get into it.


πŸ’– NAME πŸ’–

xdt-csource β€” a C code generation utility for arbitrary data. yes, literally that. she takes your random little files and turns them into C code. iconic behavior.


🌸 SYNOPSIS 🌸

xdt-csource [options] [file]

xdt-csource [options] --build-list [[name] [file]...]

πŸ¦‹ DESCRIPTION πŸ¦‹

so xdt-csource is this small utility that generates C code containing arbitrary data β€” which is highkey useful when you wanna compile texts or other data directly into your programs. no separate files at runtime, no fuss, just vibes compiled in. 🫢

and important lore: she supersedes exo-csource. out with the old, in with the new, periodt. πŸ’…


πŸŽ€ INVOCATION πŸŽ€

here's the tea on how you actually call her. two whole modes:

  • she takes one file name as input, and generates code for that file
  • or, if you use the --build-list option, she takes a list of (name, file) pairs, so you can generate code for a whole list of images into named variables

pick your fighter. both slay.

⭐ Options ⭐

  • -h, --help β€” prints brief help and then exits. she's helpful and then she's gone. πŸ’¨
  • -V, --version β€” prints version info and exits. quick little flex.
  • --extern β€” generates extern symbols.
  • --static β€” generates static symbols. this is the default, so if you do nothing, this is what you get. no cap.
  • --name=identifier β€” specifies the identifier name (the prefix) for the generated variables. heads up tho: this is only used if --build-list was not specified as well. iykyk.
  • --build-list β€” enables the (name, file) pair parsing mode. this is the girlboss mode.
  • --strip-comments β€” removes comments from XML files. bye bye comments 🫑
  • --strip-content β€” removes node contents from XML files. also bye πŸ‘‹
  • --output=identifier β€” prints the output to identifier instead of stdout. same little caveat as before: only used if --build-list was not specified as well.
fr fr, remember that --name=identifier and --output=identifier both get ignored when --build-list is in the mix. don't say i didn't warn you 😭

🌈 SEE ALSO 🌈

  • the gdk-pixbuf-csource utility, which ships with the Gtk+ distribution, available from www.gtk.org[1]. go check her out too, she's the cousin πŸ’œ

πŸ‘‘ AUTHOR πŸ‘‘

the original program exo-csource was written by Benedikt Meurer <benny@xfce.org>. and then xdt-csource supersedes it. glow-up of the century honestly.

this manual page was provided by the Xfce Development Team <xfce4-dev@xfce.org>. mwah, thank you for your service 🫢


πŸ’€ NOTES πŸ’€

  1. www.gtk.org β€” https://www.gtk.org

aaaand that's the whole page, bestie. this one came to you from Xfce, dated 04/25/2023 β€” and it's the XDT-CSOURCE(1) manual, so now you're fully caught up. go generate some C code, you main character πŸ¦‹βœ¨πŸ’–