X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;ds=sidebyside;f=fish%2Ffish.h;h=13a2e5c481adb3242968c2750f2ffacd527974f5;hb=9d6de016ccd932c18001c08c371bf83c6dbff8f0;hp=c9dd3508c55d1b03efa14f09a34befe451f0a2f0;hpb=c10fa84ada465d83bcbe0550ed512215036b4bea;p=libguestfs.git diff --git a/fish/fish.h b/fish/fish.h index c9dd350..13a2e5c 100644 --- a/fish/fish.h +++ b/fish/fish.h @@ -21,6 +21,15 @@ #include +#ifdef HAVE_GETTEXT +#include "gettext.h" +#define _(str) dgettext(PACKAGE, (str)) +#define N_(str) dgettext(PACKAGE, (str)) +#else +#define _(str) str +#define N_(str) str +#endif + /* in fish.c */ extern guestfs_h *g; extern int quit; @@ -52,4 +61,14 @@ extern int do_echo (const char *cmd, int argc, char *argv[]); /* in edit.c */ extern int do_edit (const char *cmd, int argc, char *argv[]); +/* This should just list all the built-in commands so they can + * be added to the generated auto-completion code. + */ +#define BUILTIN_COMMANDS_FOR_COMPLETION \ + "help", \ + "quit", "exit", "q", \ + "alloc", "allocate", \ + "echo", \ + "edit", "vi", "emacs" + #endif /* FISH_H */