~ubuntu-branches/ubuntu/karmic/luatex/karmic

« back to all changes in this revision

Viewing changes to src/texk/web2c/luatexdir/makecpool.c

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Preining
  • Date: 2007-12-10 10:24:34 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20071210102434-9w9ljypghznwb4dy
Tags: 0.20.1-1
* new upstreams, add the announcements with changes to the debian dir
* call build.sh.linux with bash, not with sh, otherwise building breaks
  (thanks to Pascal de Bruijn <pmjdebruijn@gmail.com> from Ubuntu for
  letting us know) [np]
* update libpoppler patch
* change the texdoclua patch to use the new os.tmpdir with a template of
  /tmp/luatex.XXXXXX
* bump standards version to 3.7.3, no changes necessary
* convert copyright file to utf-8

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
    "static char *poolfilearr[] = {\n",headername);
21
21
  while (fgets(data,1024,fh)) {
22
22
    int len = strlen(data);
23
 
    int o = 0; // skip first o characters
 
23
    int o = 0; /* skip first o characters*/
24
24
    int i;
25
 
    if (data[len-1]=='\n') { // chomp;
 
25
    if (data[len-1]=='\n') { /* chomp;*/
26
26
      data[len-1] = 0;
27
27
      len--;
28
28
    }
29
 
    if (data[0]=='*') break; // last if /^\*/;
 
29
    if (data[0]=='*') break; /* last if !^\*!; */
30
30
    if (data[0]>='0' && data[0]<='9' && data[1]>='0' && data[1]<='9') {
31
 
      o=2; // $data =~ s/^\d\d//;
 
31
      o=2; /* $data =~ s/^\d\d//; */
32
32
    }
33
33
    printf("  \"");
34
34
    for (i=o; i<len; i++) {
35
35
      if (data[i]=='"' || data[i]=='\\') putchar('\\');
36
36
          if (data[i]=='?') printf("\" \""); /* suppress trigraphs */
37
37
      putchar(data[i]);
38
 
    } // $data =~ s/(["\\])/\\$1/g;
 
38
    } /* $data =~ s/(["\\])/\\$1/g; */
39
39
    printf("\",\n");
40
40
  }
41
41
  fclose(fh);