~ubuntu-branches/ubuntu/utopic/golang/utopic

« back to all changes in this revision

Viewing changes to src/cmd/cc/lexbody

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2013-08-20 14:06:23 UTC
  • mfrom: (14.1.23 saucy-proposed)
  • Revision ID: package-import@ubuntu.com-20130820140623-b414jfxi3m0qkmrq
Tags: 2:1.1.2-2ubuntu1
* Merge from Debian unstable (LP: #1211749, #1202027). Remaining changes:
  - 016-armhf-elf-header.patch: Use correct ELF header for armhf binaries.
  - d/control,control.cross: Update Breaks/Replaces for Ubuntu
    versions to ensure smooth upgrades, regenerate control file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
}
48
48
 
49
49
void
50
 
pragdynimport(void)
51
 
{
52
 
        while(getnsc() != '\n')
53
 
                ;
54
 
}
55
 
 
56
 
void
57
 
pragdynexport(void)
58
 
{
 
50
pragcgo(char *name)
 
51
{
 
52
        USED(name);
59
53
        while(getnsc() != '\n')
60
54
                ;
61
55
}
244
238
                symb[1] = '"';
245
239
        }
246
240
 
247
 
        // turn · into .
248
241
        for(r=w=symb; *r; r++) {
 
242
                // turn · (U+00B7) into .
 
243
                // turn ∕ (U+2215) into /
249
244
                if((uchar)*r == 0xc2 && (uchar)*(r+1) == 0xb7) {
250
245
                        *w++ = '.';
251
246
                        r++;
 
247
                }else if((uchar)*r == 0xe2 && (uchar)*(r+1) == 0x88 && (uchar)*(r+2) == 0x95) {
 
248
                        *w++ = '/';
 
249
                        r++;
 
250
                        r++;
252
251
                }else
253
252
                        *w++ = *r;
254
253
        }
264
263
        for(s = hash[h]; s != S; s = s->link) {
265
264
                if(s->name[0] != c)
266
265
                        continue;
267
 
                if(memcmp(s->name, symb, l) == 0)
 
266
                if(strcmp(s->name, symb) == 0)
268
267
                        return s;
269
268
        }
270
269
        s = alloc(sizeof(*s));