Rozdiely pre cpdf/cpdf.c medzi verziami 1.6 a 1.7
| verzia 1.6, 2002/10/08 18:48:58 |
verzia 1.7, 2002/10/09 22:06:35 |
|
|
| #include "parse.h" |
#include "parse.h" |
| #include "cpdf.h" |
#include "cpdf.h" |
| |
|
| /* $Platon: cpdf.c,v 1.5 2002/10/03 18:24:26 lynx Exp $ */ |
/* $Platon: cpdf/cpdf.c,v 1.6 2002/10/08 18:48:58 lynx Exp $ */ |
| static struct option lopt[] = { |
static struct option lopt[] = { |
| |
|
| {"mode", required_argument, 0, 'm'}, |
{"mode", required_argument, 0, 'm'}, |
| Riadok 60 int main(int argc, char **argv) |
|
| Riadok 60 int main(int argc, char **argv) |
|
| } |
} |
| { |
{ |
| char ispdf[5]; |
char ispdf[5]; |
| fread((char *) &ispdf, 5, 1, fp); |
fread(ispdf, 5, 1, fp); |
| if (strncmp((char *) &ispdf, "%PDF-", 5) != 0) { |
if (strncmp(ispdf, "%PDF-", 5) != 0) { |
| fprintf(stderr, "%s is not PDF document!\n", |
fprintf(stderr, "%s is not PDF document!\n", |
| argv[1]); |
argv[1]); |
| exit(errno); |
exit(errno); |
| Riadok 71 int main(int argc, char **argv) |
|
| Riadok 71 int main(int argc, char **argv) |
|
| printf("Using %s mode\n", vga_getmodename(mode)); |
printf("Using %s mode\n", vga_getmodename(mode)); |
| #endif |
#endif |
| /* vga_init(); |
/* vga_init(); |
| |
setuid(getuid()); |
| |
setgid(getgid()); |
| vga_setmode(mode); |
vga_setmode(mode); |
| gl_setcontextvga(mode);*/ |
gl_setcontextvga(mode);*/ |
| parse_pdf(); |
parse_pdf(); |
Platon Group <platon@platon.sk> http://platon.sk/
|
|