Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.37
 
1.38
 
MAIN:ragge:20110121214939
 
local.c
_>11111111  * Give target the opportunity of handling pragmas.
 11121112  */
 11131113 int
<>1114 -mypragma(char **ary)
  1114+mypragma(char *str)
11151115 {
<>1116 -        if (strcmp(ary[1], "tls") == 0 && ary[2] == NULL) {
  1116+        char *a2 = pragtok(NULL);
  1117+
  1118+        if (strcmp(str, "tls") == 0 && a2 == NULL) {
11171119                 gottls = 1;
 11181120                 return 1;
 11191121         }
<>1120 -        if (strcmp(ary[1], "constructor") == 0 || strcmp(ary[1], "init") == 0) {
  1122+        if (strcmp(str, "constructor") == 0 || strcmp(str, "init") == 0) {
11211123                 constructor = 1;
 11221124                 return 1;
 11231125         }
<>1124 -        if (strcmp(ary[1], "destructor") == 0 || strcmp(ary[1], "fini") == 0) {
  1126+        if (strcmp(str, "destructor") == 0 || strcmp(str, "fini") == 0) {
11251127                 destructor = 1;
 11261128                 return 1;
 11271129         }
<>1128 -        if (strcmp(ary[1], "section") == 0 && ary[2] != NULL) {
 1129 -                nextsect = section2string(ary[2], strlen(ary[2]));
  1130+        if (strcmp(str, "section") == 0 && a2 != NULL) {
  1131+                nextsect = section2string(a2, strlen(a2));
11301132                 return 1;
 11311133         }
<>1132 -        if (strcmp(ary[1], "alias") == 0 && ary[2] != NULL) {
 1133 -                alias = tmpstrdup(ary[2]);
  1134+        if (strcmp(str, "alias") == 0 && a2 != NULL) {
  1135+                alias = tmpstrdup(a2);
<_11341136                 return 1;
 11351137         }
 11361138 
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 23:23 +0200