void print_function(FunctionSpec* function) { print_metadata(function); print_components(&function->components); print_input_mapping(&function->input_mapping); print_instructions(&function->instructions); print_output_instructions(&function->output_instructions); }
static void print_version (void) { /* * Here and everywhere else, backends and features are sorted * alphabetically. */ static const Component mailbox_backends[] = { { "Evolution", WITH_EVOLUTION }, { "Gmail", WITH_GMAIL }, { "IMAP", WITH_IMAP }, { "Maildir", WITH_MAILDIR }, { "mbox", WITH_MBOX }, { "MH", WITH_MH }, { "Mozilla products", WITH_MOZILLA }, { "POP3", WITH_POP3 }, { "Sylpheed", WITH_SYLPHEED }, { "Windows Live Hotmail", WITH_HOTMAIL }, { "Yahoo! Mail", WITH_YAHOO } }; static const Component pi_features[] = { { "IPv6", WITH_IPV6 }, { "SASL", WITH_SASL }, { "SSL/TLS", WITH_SSL } }; g_print(_("%s version %s\n"), _("Mail Notification"), VERSION); g_print("Copyright (C) 2003-2008 Jean-Yves Lefort.\n"); g_print("\n"); g_print(_("Mailbox backends:\n")); print_components(mailbox_backends, G_N_ELEMENTS(mailbox_backends)); g_print("\n"); g_print(_("IMAP and POP3 features:\n")); print_components(pi_features, G_N_ELEMENTS(pi_features)); }