Quick Search:

Mode

Context

Displaying 3 lines of context. None | Less | More | Full

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.125
 
1.126
 
MAIN:ragge:20110121214758
 
local.c
_>13171317  * Give target the opportunity of handling pragmas.
 13181318  */
 13191319 int
<>1320 -mypragma(char **ary)
  1320+mypragma(char *str)
13211321 {
<> 1322+        char *a2 = pragtok(NULL);
  1323+
13221324 #ifdef TLS
<>1323 -        if (strcmp(ary[1], "tls") == 0 && ary[2] == NULL) {
  1325+        if (strcmp(str, "tls") == 0 && a2 == NULL) {
13241326                 gottls = 1;
 13251327                 return 1;
 13261328         }
 13271329 #endif
<>1328 -        if (strcmp(ary[1], "stdcall") == 0) {
  1330+        if (strcmp(str, "stdcall") == 0) {
13291331                 stdcall = 1;
 13301332                 return 1;
 13311333         }
<>1332 -        if (strcmp(ary[1], "cdecl") == 0) {
  1334+        if (strcmp(str, "cdecl") == 0) {
13331335                 stdcall = 0;
 13341336                 return 1;
 13351337         }
 13361338 #ifdef os_win32
<>1337 -        if (strcmp(ary[1], "fastcall") == 0) {
  1339+        if (strcmp(str, "fastcall") == 0) {
13381340                 stdcall = 2;
 13391341                 return 1;
 13401342         }
<>1341 -        if (strcmp(ary[1], "dllimport") == 0) {
  1343+        if (strcmp(str, "dllimport") == 0) {
13421344                 dllindirect = 1;
 13431345                 return 1;
 13441346         }
<>1345 -        if (strcmp(ary[1], "dllexport") == 0) {
  1347+        if (strcmp(str, "dllexport") == 0) {
13461348                 dllindirect = 1;
 13471349                 return 1;
 13481350         }
 13491351 #endif
<>1350 -        if (strcmp(ary[1], "constructor") == 0 || strcmp(ary[1], "init") == 0) {
  1352+        if (strcmp(str, "constructor") == 0 || strcmp(str, "init") == 0) {
13511353                 constructor = 1;
 13521354                 return 1;
 13531355         }
<>1354 -        if (strcmp(ary[1], "destructor") == 0 || strcmp(ary[1], "fini") == 0) {
  1356+        if (strcmp(str, "destructor") == 0 || strcmp(str, "fini") == 0) {
13551357                 destructor = 1;
 13561358                 return 1;
 13571359         }
<>1358 -        if (strcmp(ary[1], "section") == 0 && ary[2] != NULL) {
 1359 -                nextsect = section2string(ary[2], strlen(ary[2]));
  1360+        if (strcmp(str, "section") == 0 && a2 != NULL) {
  1361+                nextsect = section2string(a2, strlen(a2));
13601362                 return 1;
 13611363         }
<>1362 -        if (strcmp(ary[1], "alias") == 0 && ary[2] != NULL) {
 1363 -                alias = tmpstrdup(ary[2]);
  1364+        if (strcmp(str, "alias") == 0 && a2 != NULL) {
  1365+                alias = tmpstrdup(a2);
13641366                 return 1;
 13651367         }
<>1366 -        if (strcmp(ary[1], "ident") == 0)
  1368+        if (strcmp(str, "ident") == 0)
<_13671369                 return 1; /* Just ignore */
 13681370 
 13691371         return 0;
FishEye: Open Source License registered to PCC.
Your maintenance has expired. You can renew your license at http://www.atlassian.com/fisheye/renew
Atlassian FishEye, CVS analysis. (Version:1.6.3 Build:build-336 2008-11-04) - Administration - Page generated 2014-09-02 03:50 +0200