comparison src/pst2dii.cpp.in @ 118:0f1492b7fe8b

patch from Fridrich Strba for building on mingw and general cleanup of autoconf files add processing for pst files of type 0x0f start adding support for properly building and installing libpst.so and the header files required to use it. remove version.h since the version number is now in config.h more const correctness issues regarding getopt()
author Carl Byington <carl@five-ten-sg.com>
date Sat, 31 Jan 2009 12:12:36 -0800
parents 7133b39975f7
children 6395ced2b8b2
comparison
equal deleted inserted replaced
117:0a3d854b53f6 118:0f1492b7fe8b
82 82
83 static void open_png(); 83 static void open_png();
84 static void close_png(); 84 static void close_png();
85 85
86 86
87 static int version(); 87 static void version();
88 static int version() 88 static void version()
89 { 89 {
90 printf("pst2dii v%s\n", VERSION); 90 printf("pst2dii v%s\n", VERSION);
91 #if BYTE_ORDER == BIG_ENDIAN 91 #if BYTE_ORDER == BIG_ENDIAN
92 printf("Big Endian implementation being used.\n"); 92 printf("Big Endian implementation being used.\n");
93 #elif BYTE_ORDER == LITTLE_ENDIAN 93 #elif BYTE_ORDER == LITTLE_ENDIAN
96 # error "Byte order not supported by this library" 96 # error "Byte order not supported by this library"
97 #endif 97 #endif
98 #ifdef __GNUC__ 98 #ifdef __GNUC__
99 printf("GCC %d.%d : %s %s\n", __GNUC__, __GNUC_MINOR__, __DATE__, __TIME__); 99 printf("GCC %d.%d : %s %s\n", __GNUC__, __GNUC_MINOR__, __DATE__, __TIME__);
100 #endif 100 #endif
101 return 0; 101 }
102 } 102
103 103
104 104 static void usage();
105 static int usage(); 105 static void usage()
106 static int usage()
107 { 106 {
108 version(); 107 version();
109 printf("Usage: %s [OPTIONS] {PST FILENAME}\n", prog_name); 108 printf("Usage: %s [OPTIONS] {PST FILENAME}\n", prog_name);
110 printf("OPTIONS:\n"); 109 printf("OPTIONS:\n");
111 printf("\t-B bates-prefix \t- Set the bates prefix string\n"); 110 printf("\t-B bates-prefix \t- Set the bates prefix string\n");
115 printf("\t-c bates-color \t- Specify the color of the bates stamps as 6 digit hex\n"); 114 printf("\t-c bates-color \t- Specify the color of the bates stamps as 6 digit hex\n");
116 printf("\t-d filename \t- Debug to file. This is a binary log. Use readpstlog to print it.\n"); 115 printf("\t-d filename \t- Debug to file. This is a binary log. Use readpstlog to print it.\n");
117 printf("\t-f ttf-font-file \t- Set the font file\n"); 116 printf("\t-f ttf-font-file \t- Set the font file\n");
118 printf("\t-h \t- Help. This screen\n"); 117 printf("\t-h \t- Help. This screen\n");
119 printf("\t-o dirname \t- Output directory to write files to.\n"); 118 printf("\t-o dirname \t- Output directory to write files to.\n");
120 return 0;
121 } 119 }
122 120
123 121
124 static char *removeCR (char *c); 122 static char *removeCR (char *c);
125 static char *removeCR (char *c) { 123 static char *removeCR (char *c) {
643 close_enter_dir(ff); 641 close_enter_dir(ff);
644 DEBUG_RET(); 642 DEBUG_RET();
645 } 643 }
646 644
647 645
648 int main(int argc, char **argv) 646 int main(int argc, char* const* argv)
649 { 647 {
650 pst_desc_ll *d_ptr; 648 pst_desc_ll *d_ptr;
651 char *fname = NULL; 649 char *fname = NULL;
652 char c; 650 char c;
653 char *d_log = NULL; 651 char *d_log = NULL;