Print this page
use thread_local for ntoa buf

Split Close
Expand all
Collapse all
          --- old/usr/src/tools/cw/cw.c
          +++ new/usr/src/tools/cw/cw.c
↓ open down ↓ 1213 lines elided ↑ open up ↑
1214 1214                                  break;
1215 1215                          case 'c':
1216 1216                                  if (strncmp(arg, "-xc99=%all", 10) == 0) {
1217 1217                                          newae(ctx->i_ae, "-std=gnu99");
1218 1218                                          break;
1219 1219                                  }
1220 1220                                  if (strncmp(arg, "-xc99=%none", 11) == 0) {
1221 1221                                          newae(ctx->i_ae, "-std=gnu89");
1222 1222                                          break;
1223 1223                                  }
     1224 +                                if (strncmp(arg, "-xc11=%all", 10) == 0) {
     1225 +                                        newae(ctx->i_ae, "-std=gnu11");
     1226 +                                        break;
     1227 +                                }
1224 1228                                  if (strncmp(arg, "-xchip=", 7) == 0) {
1225 1229                                          xlate(ctx->i_ae, arg + 7, xchip_tbl);
1226 1230                                          break;
1227 1231                                  }
1228 1232                                  if (strncmp(arg, "-xcode=", 7) == 0) {
1229 1233                                          xlate(ctx->i_ae, arg + 7, xcode_tbl);
1230 1234                                          if (strncmp(arg + 7, "pic", 3) == 0)
1231 1235                                                  pic = 1;
1232 1236                                          break;
1233 1237                                  }
↓ open down ↓ 683 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX