// -> /* */
Török Edvin authored on 2010/05/11 19:23:20... | ... |
@@ -609,7 +609,7 @@ static void handle_pdfname(struct pdf_struct *pdf, struct pdf_obj *obj, |
609 | 609 |
} |
610 | 610 |
obj->flags |= 1 << act->set_objflag; |
611 | 611 |
} else { |
612 |
- //auto-reset states |
|
612 |
+ /* auto-reset states */ |
|
613 | 613 |
switch (*state) { |
614 | 614 |
case STATE_S: |
615 | 615 |
*state = STATE_NONE; |
... | ... |
@@ -663,7 +663,7 @@ static void pdf_parseobj(struct pdf_struct *pdf, struct pdf_obj *obj) |
663 | 663 |
obj->flags |= 1 << OBJ_DICT; |
664 | 664 |
dict_length = q3 - dict; |
665 | 665 |
|
666 |
- // process pdf names |
|
666 |
+ /* process pdf names */ |
|
667 | 667 |
for (q = dict;dict_length;) { |
668 | 668 |
int escapes = 0; |
669 | 669 |
q2 = memchr(q, '/', dict_length); |
... | ... |
@@ -671,7 +671,7 @@ static void pdf_parseobj(struct pdf_struct *pdf, struct pdf_obj *obj) |
671 | 671 |
break; |
672 | 672 |
dict_length -= q2 - q; |
673 | 673 |
q = q2; |
674 |
- // normalize PDF names |
|
674 |
+ /* normalize PDF names */ |
|
675 | 675 |
for (i = 0;dict_length && (i < sizeof(pdfname)-1); i++) { |
676 | 676 |
q++; |
677 | 677 |
dict_length--; |
... | ... |
@@ -805,7 +805,7 @@ int cli_pdf(const char *dir, cli_ctx *ctx, off_t offset) |
805 | 805 |
cli_errmsg("cli_pdf: mmap() failed (3)\n"); |
806 | 806 |
return CL_EMAP; |
807 | 807 |
} |
808 |
- // parse PDF and find obj offsets |
|
808 |
+ /* parse PDF and find obj offsets */ |
|
809 | 809 |
while ((rc = pdf_findobj(&pdf)) > 0) { |
810 | 810 |
struct pdf_obj *obj = &pdf.objs[pdf.nobjs-1]; |
811 | 811 |
cli_dbgmsg("found %d %d obj @%ld\n", obj->id >> 8, obj->id&0xff, obj->start + offset); |
... | ... |
@@ -814,7 +814,7 @@ int cli_pdf(const char *dir, cli_ctx *ctx, off_t offset) |
814 | 814 |
if (rc == -1) |
815 | 815 |
pdf.flags |= 1 << BAD_PDF_TOOMANYOBJS; |
816 | 816 |
|
817 |
- // extract PDF objs |
|
817 |
+ /* extract PDF objs */ |
|
818 | 818 |
for (i=0;i<pdf.nobjs;i++) { |
819 | 819 |
struct pdf_obj *obj = &pdf.objs[i]; |
820 | 820 |
rc = pdf_extract_obj(&pdf, obj); |