| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |