View | Details | Raw Unified
Collapse All | Expand All

(-) scrollkeeper-0.3.14/buildtools/separate.c (-1 / +8 lines)
 Lines 25-33    Link Here 
#include <unistd.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/stat.h>
#include <errno.h>
#include <errno.h>
#include <libintl.h>
#include <scrollkeeper.h>
#include <scrollkeeper.h>
#ifdef ENABLE_NLS
#include <libintl.h>
#else
#define _(x) x
#endif
typedef struct {
typedef struct {
	char *filename;
	char *filename;
	char *locale;
	char *locale;
 Lines 306-314   main (int argc, char *argv[]) Link Here 
	int locale_num, i;
	int locale_num, i;
	int locale_tree_error=0;
	int locale_tree_error=0;
#ifdef ENABLE_NLS
    	setlocale (LC_ALL, "");
    	setlocale (LC_ALL, "");
    	bindtextdomain (PACKAGE, SCROLLKEEPERLOCALEDIR);
    	bindtextdomain (PACKAGE, SCROLLKEEPERLOCALEDIR);
    	textdomain (PACKAGE);
    	textdomain (PACKAGE);
#endif
    
    
    	if (argc != 3) {
    	if (argc != 3) {
    		usage();
    		usage();
(-) scrollkeeper-0.3.14/libs/database.c (-1 / +6 lines)
 Lines 23-34    Link Here 
#include <unistd.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/stat.h>
#include <errno.h>
#include <errno.h>
#include <libintl.h>
#include <dirent.h>
#include <dirent.h>
#include <scrollkeeper.h>
#include <scrollkeeper.h>
#define PATHLEN		256
#define PATHLEN		256
#ifdef ENABLE_NLS
#include <libintl.h>
#define _(String) gettext (String)
#else
#define _(String) String
#endif
/*
/*
 * Create a directory.  Send errors to appropriate places (STDOUT and log 
 * Create a directory.  Send errors to appropriate places (STDOUT and log 
(-) scrollkeeper-0.3.14/libs/error.c (-1 / +7 lines)
 Lines 22-32    Link Here 
#include <scrollkeeper.h>
#include <scrollkeeper.h>
#include <errno.h>
#include <errno.h>
#include <string.h>
#include <string.h>
#include <libintl.h>
#include <stdlib.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <sys/stat.h>
#include <time.h>
#include <time.h>
#ifdef ENABLE_NLS
#include <libintl.h>
#define _(String) gettext (String)
#else
#define _(String) String
#endif
/*
/*
 * sk_warning:
 * sk_warning:
 *               This is a general purpose function for sending error and 
 *               This is a general purpose function for sending error and 
(-) scrollkeeper-0.3.14/libs/extract.c (-1 / +7 lines)
 Lines 18-24    Link Here 
#include <config.h>
#include <config.h>
#include <locale.h>
#include <locale.h>
#include <libintl.h>
#include <libxslt/xslt.h>
#include <libxslt/xslt.h>
#include <libxslt/xsltInternals.h>
#include <libxslt/xsltInternals.h>
#include <libxslt/transform.h>
#include <libxslt/transform.h>
 Lines 33-38    Link Here 
#include <errno.h>
#include <errno.h>
#include <sys/stat.h>
#include <sys/stat.h>
#ifdef ENABLE_NLS
#include <libintl.h>
#define _(String) gettext (String)
#else
#define _(String) String
#endif
extern int xmlLoadExtDtdDefaultValue;
extern int xmlLoadExtDtdDefaultValue;
int apply_stylesheets (char *input_file, char *type, int stylesheet_num,
int apply_stylesheets (char *input_file, char *type, int stylesheet_num,
(-) scrollkeeper-0.3.14/libs/install.c (-1 / +5 lines)
 Lines 25-35    Link Here 
#include <unistd.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/stat.h>
#include <errno.h>
#include <errno.h>
#include <libintl.h>
#include <dirent.h>
#include <dirent.h>
#include <scrollkeeper.h>
#include <scrollkeeper.h>
#ifdef ENABLE_NLS
#include <libintl.h>
#define _(String) gettext (String)
#define _(String) gettext (String)
#else
#define _(String) String
#endif
#define SEP		"|"
#define SEP		"|"
#define PATHLEN		256
#define PATHLEN		256
(-) scrollkeeper-0.3.14/libs/uninstall.c (-1 / +5 lines)
 Lines 23-33    Link Here 
#include <string.h>
#include <string.h>
#include <unistd.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/stat.h>
#include <libintl.h>
#include <locale.h>
#include <locale.h>
#include <scrollkeeper.h>
#include <scrollkeeper.h>
#ifdef ENABLE_NLS
#include <libintl.h>
#define _(String) gettext (String)
#define _(String) gettext (String)
#else
#define _(String) String
#endif
#define PATHLEN		256
#define PATHLEN		256
(-) scrollkeeper-0.3.14/libs/update-url.c (-1 / +5 lines)
 Lines 23-32    Link Here 
#include <string.h>
#include <string.h>
#include <unistd.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/stat.h>
#include <libintl.h>
#include <scrollkeeper.h>
#include <scrollkeeper.h>
#ifdef ENABLE_NLS
#include <libintl.h>
#define _(String) gettext (String)
#define _(String) gettext (String)
#else
#define _(String) String
#endif
int update_doc_url_in_omf_file(char *omf_name, char *url, char *omf_new_name)
int update_doc_url_in_omf_file(char *omf_name, char *url, char *omf_new_name)
{
{
(-) scrollkeeper-0.3.14/cl/src/preinstall.c (-1 / +8 lines)
 Lines 23-32    Link Here 
#include <string.h>
#include <string.h>
#include <unistd.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/stat.h>
#include <libintl.h>
#include <locale.h>
#include <locale.h>
#include <scrollkeeper.h>
#include <scrollkeeper.h>
#ifdef ENABLE_NLS
#include <libintl.h>
#else
#define _(x) x
#endif
static xmlExternalEntityLoader defaultEntityLoader = NULL;
static xmlExternalEntityLoader defaultEntityLoader = NULL;
static void usage()
static void usage()
 Lines 41-49   main (int argc, char *argv[]) Link Here 
    char *omf_name, *url, *omf_new_name;
    char *omf_name, *url, *omf_new_name;
    int i;
    int i;
    
    
#ifdef ENABLE_NLS
    setlocale (LC_ALL, "");
    setlocale (LC_ALL, "");
    bindtextdomain (PACKAGE, SCROLLKEEPERLOCALEDIR);
    bindtextdomain (PACKAGE, SCROLLKEEPERLOCALEDIR);
    textdomain (PACKAGE);
    textdomain (PACKAGE);
#endif
    
    
	
	
    if (argc < 3) {
    if (argc < 3) {
(-) scrollkeeper-0.3.14/cl/src/get-cl.c (-1 / +8 lines)
 Lines 25-31    Link Here 
#include <stdlib.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdio.h>
#include <string.h>
#include <string.h>
#include <libintl.h>
#include <libxml/tree.h>
#include <libxml/tree.h>
#include <scrollkeeper.h>
#include <scrollkeeper.h>
#include <errno.h>
#include <errno.h>
 Lines 37-42    Link Here 
#include <utime.h>
#include <utime.h>
#include <pwd.h>
#include <pwd.h>
#ifdef ENABLE_NLS
#include <libintl.h>
#else
#define _(x) x
#endif
/*
/*
 * make_local_tmpdir:
 * make_local_tmpdir:
 * @dirname: directory name.
 * @dirname: directory name.
 Lines 198-206   int main(int argc, char **argv) Link Here 
	xmlDocPtr merged_tree;
	xmlDocPtr merged_tree;
        char outputprefs=0;
        char outputprefs=0;
#ifdef ENABLE_NLS
    	setlocale (LC_ALL, "");
    	setlocale (LC_ALL, "");
    	bindtextdomain (PACKAGE, SCROLLKEEPERLOCALEDIR);
    	bindtextdomain (PACKAGE, SCROLLKEEPERLOCALEDIR);
    	textdomain (PACKAGE);
    	textdomain (PACKAGE);
#endif
    	usage(argc, argv);
    	usage(argc, argv);
(-) scrollkeeper-0.3.14/cl/src/scrollkeeper-install.c (-1 / +8 lines)
 Lines 25-34    Link Here 
#include <unistd.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/stat.h>
#include <errno.h>
#include <errno.h>
#include <libintl.h>
#include <dirent.h>
#include <dirent.h>
#include <scrollkeeper.h>
#include <scrollkeeper.h>
#ifdef ENABLE_NLS
#include <libintl.h>
#else
#define _(x) x
#endif
static xmlExternalEntityLoader defaultEntityLoader = NULL;
static xmlExternalEntityLoader defaultEntityLoader = NULL;
static void usage()
static void usage()
 Lines 47-55   main (int argc, char *argv[]) Link Here 
    char outputprefs=0;
    char outputprefs=0;
    int i;
    int i;
    
    
#ifdef ENABLE_NLS
    setlocale (LC_ALL, "");
    setlocale (LC_ALL, "");
    bindtextdomain (PACKAGE, SCROLLKEEPERLOCALEDIR);
    bindtextdomain (PACKAGE, SCROLLKEEPERLOCALEDIR);
    textdomain (PACKAGE);
    textdomain (PACKAGE);
#endif
    if (argc == 1) {
    if (argc == 1) {
	usage();
	usage();
(-) scrollkeeper-0.3.14/cl/src/scrollkeeper-uninstall.c (-1 / +8 lines)
 Lines 23-32    Link Here 
#include <string.h>
#include <string.h>
#include <unistd.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/stat.h>
#include <libintl.h>
#include <locale.h>
#include <locale.h>
#include <scrollkeeper.h>
#include <scrollkeeper.h>
#ifdef ENABLE_NLS
#include <libintl.h>
#else
#define _(x) x
#endif
static void usage()
static void usage()
{
{
    printf(_("Usage: scrollkeeper-uninstall [-v] [-q] [-p <SCROLLKEEPER_DB_DIR>] <OMF FILE>\n"));
    printf(_("Usage: scrollkeeper-uninstall [-v] [-q] [-p <SCROLLKEEPER_DB_DIR>] <OMF FILE>\n"));
 Lines 41-49   main (int argc, char *argv[]) Link Here 
    char outputprefs=0;
    char outputprefs=0;
    int i;
    int i;
 
 
#ifdef ENABLE_NLS
    setlocale (LC_ALL, "");
    setlocale (LC_ALL, "");
    bindtextdomain (PACKAGE, SCROLLKEEPERLOCALEDIR);
    bindtextdomain (PACKAGE, SCROLLKEEPERLOCALEDIR);
    textdomain (PACKAGE);
    textdomain (PACKAGE);
#endif
    
    
    if (argc == 1)
    if (argc == 1)
	usage();
	usage();
(-) scrollkeeper-0.3.14/cl/src/update.c (-1 / +8 lines)
 Lines 24-35    Link Here 
#include <stdlib.h>
#include <stdlib.h>
#include <string.h>
#include <string.h>
#include <errno.h>
#include <errno.h>
#include <libintl.h>
#include <locale.h>
#include <locale.h>
#include <dirent.h>
#include <dirent.h>
#include <unistd.h>
#include <unistd.h>
#include <scrollkeeper.h>
#include <scrollkeeper.h>
#ifdef ENABLE_NLS
#include <libintl.h>
#else
#define _(x) x
#endif
static char **av;
static char **av;
static char config_omf_dir[PATHLEN];
static char config_omf_dir[PATHLEN];
static xmlExternalEntityLoader defaultEntityLoader = NULL;
static xmlExternalEntityLoader defaultEntityLoader = NULL;
 Lines 361-369   int main(int argc, char **argv) Link Here 
    av = argv;
    av = argv;
    
    
#ifdef ENABLE_NLS
    setlocale (LC_ALL, "");
    setlocale (LC_ALL, "");
    bindtextdomain (PACKAGE, SCROLLKEEPERLOCALEDIR);
    bindtextdomain (PACKAGE, SCROLLKEEPERLOCALEDIR);
    textdomain (PACKAGE);
    textdomain (PACKAGE);
#endif
    scrollkeeper_dir[0] = '\0';
    scrollkeeper_dir[0] = '\0';
    omf_dir[0] = '\0';
    omf_dir[0] = '\0';
(-) scrollkeeper-0.3.14/extract/src/scrollkeeper-extract.c (-1 / +8 lines)
 Lines 18-30    Link Here 
#include <config.h>
#include <config.h>
#include <locale.h>
#include <locale.h>
#include <libintl.h>
#include <scrollkeeper.h>
#include <scrollkeeper.h>
#include <stdlib.h>
#include <stdlib.h>
#include <string.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/stat.h>
#include <errno.h>
#include <errno.h>
#ifdef ENABLE_NLS
#include <libintl.h>
#else
#define _(x) x
#endif
static void usage()
static void usage()
{
{
	printf(_("Usage: scrollkeeper-extract <xml file> <stylesheet 1> <output file 1> <stylesheet 2> <output file 2> ...\n"));
	printf(_("Usage: scrollkeeper-extract <xml file> <stylesheet 1> <output file 1> <stylesheet 2> <output file 2> ...\n"));
 Lines 38-46   main (int argc, char *argv[]) Link Here 
	char *extension;
	char *extension;
        char outputprefs=0;
        char outputprefs=0;
#ifdef ENABLE_NLS
	setlocale (LC_ALL, "");
	setlocale (LC_ALL, "");
  	bindtextdomain (PACKAGE, SCROLLKEEPERLOCALEDIR);
  	bindtextdomain (PACKAGE, SCROLLKEEPERLOCALEDIR);
  	textdomain (PACKAGE);
  	textdomain (PACKAGE);
#endif
	num = (argc-2)/2;
	num = (argc-2)/2;
(-) scrollkeeper-0.3.14/scripts/gen-docuid.c (-1 / +8 lines)
 Lines 17-29    Link Here 
 */
 */
#include <config.h>
#include <config.h>
#include <libintl.h>
#include <locale.h>
#include <locale.h>
#include <stdio.h>
#include <stdio.h>
#include <string.h>
#include <string.h>
#include <uuid.h>
#include <uuid.h>
#include <scrollkeeper.h>
#include <scrollkeeper.h>
#ifdef ENABLE_NLS
#include <libintl.h>
#else
#define _(x) x
#endif
int
int
main (int argc, char *argv[])
main (int argc, char *argv[])
{
{
 Lines 32-40   main (int argc, char *argv[]) Link Here 
	if (argc > 1)
	if (argc > 1)
	{
	{
#ifdef ENABLE_NLS
	     setlocale (LC_ALL, "");
	     setlocale (LC_ALL, "");
	     bindtextdomain (PACKAGE, SCROLLKEEPERLOCALEDIR);
	     bindtextdomain (PACKAGE, SCROLLKEEPERLOCALEDIR);
	     textdomain (PACKAGE);
	     textdomain (PACKAGE);
#endif
	     if (strcmp (argv[1], "--help") == 0)
	     if (strcmp (argv[1], "--help") == 0)
	     {
	     {