Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | eliminate unnecessary TEXT() macros |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
c155794425cd959ebedb023459835ba4 |
User & Date: | jan.nijtmans 2012-09-23 20:29:45 |
Context
2012-09-26
| ||
21:02 | Workaround for [socket -server foo -myaddr localhost 0] failure on OSX. check-in: 3989ecbba9 user: max tags: trunk | |
12:32 | update documentation check-in: 2e479f5fee user: jan.nijtmans tags: tip-318-update | |
12:00 | Merge trunk check-in: b2aae08f2d user: jan.nijtmans tags: tip-389-impl | |
2012-09-23
| ||
20:29 | eliminate unnecessary TEXT() macros check-in: c155794425 user: jan.nijtmans tags: trunk | |
2012-09-20
| ||
21:43 | New import libraries for zlib 1.2.7, usable for all win32/win64 compilers check-in: 5b46cb3197 user: jan.nijtmans tags: trunk | |
Changes
Changes to generic/tclMain.c.
︙ | ︙ | |||
330 331 332 333 334 335 336 | * Check whether first 3 args (argv[1] - argv[3]) look like * -encoding ENCODING FILENAME * or like * FILENAME */ if ((argc > 3) && (0 == _tcscmp(TEXT("-encoding"), argv[1])) | | | | 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 | * Check whether first 3 args (argv[1] - argv[3]) look like * -encoding ENCODING FILENAME * or like * FILENAME */ if ((argc > 3) && (0 == _tcscmp(TEXT("-encoding"), argv[1])) && ('-' != argv[3][0])) { Tcl_Obj *value = NewNativeObj(argv[2], -1); Tcl_SetStartupScript(NewNativeObj(argv[3], -1), Tcl_GetString(value)); Tcl_DecrRefCount(value); argc -= 3; argv += 3; } else if ((argc > 1) && ('-' != argv[1][0])) { Tcl_SetStartupScript(NewNativeObj(argv[1], -1), NULL); argc--; argv++; } } path = Tcl_GetStartupScript(&encodingName); |
︙ | ︙ |
Changes to win/tclAppInit.c.
︙ | ︙ | |||
105 106 107 108 109 110 111 | setargv(&argc, &argv); #endif /* * Forward slashes substituted for backslashes. */ | | | | | 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 | setargv(&argc, &argv); #endif /* * Forward slashes substituted for backslashes. */ for (p = argv[0]; *p != '\0'; p++) { if (*p == '\\') { *p = '/'; } } #ifdef TCL_LOCAL_MAIN_HOOK TCL_LOCAL_MAIN_HOOK(&argc, &argv); #endif |
︙ | ︙ | |||
238 239 240 241 242 243 244 | /* * Precompute an overly pessimistic guess at the number of arguments in * the command line by counting non-space spans. */ size = 2; | | | | | | | | | | | | | | 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 | /* * Precompute an overly pessimistic guess at the number of arguments in * the command line by counting non-space spans. */ size = 2; for (p = cmdLine; *p != '\0'; p++) { if ((*p == ' ') || (*p == '\t')) { /* INTL: ISO space. */ size++; while ((*p == ' ') || (*p == '\t')) { /* INTL: ISO space. */ p++; } if (*p == '\0') { break; } } } /* Make sure we don't call ckalloc through the (not yet initialized) stub table */ #undef Tcl_Alloc #undef Tcl_DbCkalloc argSpace = ckalloc(size * sizeof(char *) + (_tcslen(cmdLine) * sizeof(TCHAR)) + sizeof(TCHAR)); argv = (TCHAR **) argSpace; argSpace += size * (sizeof(char *)/sizeof(TCHAR)); size--; p = cmdLine; for (argc = 0; argc < size; argc++) { argv[argc] = arg = argSpace; while ((*p == ' ') || (*p == '\t')) { /* INTL: ISO space. */ p++; } if (*p == '\0') { break; } inquote = 0; slashes = 0; while (1) { copy = 1; while (*p == '\\') { slashes++; p++; } if (*p == '"') { if ((slashes & 1) == 0) { copy = 0; if ((inquote) && (p[1] == '"')) { p++; copy = 1; } else { inquote = !inquote; } } slashes >>= 1; } while (slashes) { *arg = '\\'; arg++; slashes--; } if ((*p == '\0') || (!inquote && ((*p == ' ') || (*p == '\t')))) { /* INTL: ISO space. */ break; } if (copy != 0) { *arg = *p; arg++; } p++; |
︙ | ︙ |
Changes to win/tclWinFCmd.c.
︙ | ︙ | |||
1734 1735 1736 1737 1738 1739 1740 | if (interp != NULL) { StatError(interp, fileName); } goto cleanup; } nativeName = data.cAlternateFileName; if (longShort) { | | | | 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 | if (interp != NULL) { StatError(interp, fileName); } goto cleanup; } nativeName = data.cAlternateFileName; if (longShort) { if (data.cFileName[0] != '\0') { nativeName = data.cFileName; } } else { if (data.cAlternateFileName[0] == '\0') { nativeName = (TCHAR *) data.cFileName; } } /* * Purify reports a extraneous UMR in Tcl_WinTCharToUtf() trying * to dereference nativeName as a Unicode string. I have proven to |
︙ | ︙ |
Changes to win/tclWinFile.c.
︙ | ︙ | |||
1780 1781 1782 1783 1784 1785 1786 | { int len = _tcslen(path); if (len < 5) { return 0; } | | | 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 | { int len = _tcslen(path); if (len < 5) { return 0; } if (path[len-4] != '.') { return 0; } if ((_tcsicmp(path+len-3, TEXT("exe")) == 0) || (_tcsicmp(path+len-3, TEXT("com")) == 0) || (_tcsicmp(path+len-3, TEXT("bat")) == 0)) { return 1; |
︙ | ︙ |