Changeset 76479 in vbox for trunk/src/VBox/ExtPacks
- Timestamp:
- Dec 26, 2018 2:00:32 AM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 127780
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_lex.l
r76346 r76479 305 305 #ifdef VBOX 306 306 int rc; 307 uint64_t uTmp = 0; 307 308 #endif 308 309 if (isdigit(v[0])) … … 314 315 errno = 0; 315 316 yylval.l_int = strtoull(v, &p, 0); 316 #else317 {318 uint64_t uTmp = 0;319 rc = RTStrToUInt64Ex(v, &p, 0, &uTmp);320 yylval.l_int = uTmp;321 }322 #endif323 317 (void) strncpy(yyintsuffix, p, 324 318 sizeof (yyintsuffix)); 325 319 yyintdecimal = *v != '0'; 326 327 #ifndef VBOX328 320 if (errno == ERANGE) 329 321 #else 322 rc = RTStrToUInt64Ex(v, &p, 0, &uTmp); 323 yylval.l_int = uTmp; 324 RTStrCopy(yyintsuffix, sizeof(yyintsuffix), p); 325 yyintdecimal = *v != '0'; 330 326 if (rc == VWRN_NUMBER_TOO_BIG || rc == VWRN_NEGATIVE_UNSIGNED) 331 327 #endif … … 407 403 errno = 0; 408 404 yylval.l_int = strtoull(yytext, &p, 0); 405 yyintprefix = 0; 406 (void) strncpy(yyintsuffix, p, sizeof (yyintsuffix)); 407 yyintdecimal = yytext[0] != '0'; 408 if (errno == ERANGE) 409 409 #else 410 410 uint64_t uTmp = 0; 411 411 int rc = RTStrToUInt64Ex(yytext, &p, 0, &uTmp); 412 412 yylval.l_int = uTmp; 413 #endif414 413 yyintprefix = 0; 415 (void) strncpy(yyintsuffix, p, sizeof (yyintsuffix));414 RTStrCopy(yyintsuffix, sizeof(yyintsuffix), p); 416 415 yyintdecimal = yytext[0] != '0'; 417 418 #ifndef VBOX419 if (errno == ERANGE)420 #else421 416 if (rc == VWRN_NUMBER_TOO_BIG || rc == VWRN_NEGATIVE_UNSIGNED) 422 417 #endif
Note:
See TracChangeset
for help on using the changeset viewer.