Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(235)

Side by Side Diff: src/processor/basic_source_line_resolver.cc

Issue 1292503005: Don't use strtok_s for mingw builds (Closed) Base URL: http://google-breakpad.googlecode.com/svn/trunk/
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/processor/cfi_frame_info.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 Google Inc. 1 // Copyright (c) 2010 Google Inc.
2 // All rights reserved. 2 // All rights reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // * Redistributions of source code must retain the above copyright 8 // * Redistributions of source code must retain the above copyright
9 // notice, this list of conditions and the following disclaimer. 9 // notice, this list of conditions and the following disclaimer.
10 // * Redistributions in binary form must reproduce the above 10 // * Redistributions in binary form must reproduce the above
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 49
50 #include "processor/tokenize.h" 50 #include "processor/tokenize.h"
51 51
52 using std::map; 52 using std::map;
53 using std::vector; 53 using std::vector;
54 using std::make_pair; 54 using std::make_pair;
55 55
56 namespace google_breakpad { 56 namespace google_breakpad {
57 57
58 #ifdef _WIN32 58 #ifdef _WIN32
59 #ifdef _MSC_VER
59 #define strtok_r strtok_s 60 #define strtok_r strtok_s
61 #endif
60 #define strtoull _strtoui64 62 #define strtoull _strtoui64
61 #endif 63 #endif
62 64
63 static const char *kWhitespace = " \r\n"; 65 static const char *kWhitespace = " \r\n";
64 static const int kMaxErrorsPrinted = 5; 66 static const int kMaxErrorsPrinted = 5;
65 static const int kMaxErrorsBeforeBailing = 100; 67 static const int kMaxErrorsBeforeBailing = 100;
66 68
67 BasicSourceLineResolver::BasicSourceLineResolver() : 69 BasicSourceLineResolver::BasicSourceLineResolver() :
68 SourceLineResolverBase(new BasicModuleFactory) { } 70 SourceLineResolverBase(new BasicModuleFactory) { }
69 71
(...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after
600 602
601 // static 603 // static
602 bool SymbolParseHelper::IsValidAfterNumber(char *after_number) { 604 bool SymbolParseHelper::IsValidAfterNumber(char *after_number) {
603 if (after_number != NULL && strchr(kWhitespace, *after_number) != NULL) { 605 if (after_number != NULL && strchr(kWhitespace, *after_number) != NULL) {
604 return true; 606 return true;
605 } 607 }
606 return false; 608 return false;
607 } 609 }
608 610
609 } // namespace google_breakpad 611 } // namespace google_breakpad
OLDNEW
« no previous file with comments | « no previous file | src/processor/cfi_frame_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698