Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(7)

Side by Side Diff: processor/postfix_evaluator.h

Issue 400002: Mechanical change to allow the co-existance of std::string with a global ::string class (Closed) Base URL: http://google-breakpad.googlecode.com/svn/trunk/src/
Patch Set: Extended the impact of this change to a couple of more files under src/client Created 12 years, 9 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « processor/pathname_stripper.h ('k') | processor/postfix_evaluator_unittest.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 // -*- mode: C++ -*- 1 // -*- mode: C++ -*-
2 2
3 // Copyright (c) 2010 Google Inc. 3 // Copyright (c) 2010 Google Inc.
4 // All rights reserved. 4 // All rights reserved.
5 // 5 //
6 // Redistribution and use in source and binary forms, with or without 6 // Redistribution and use in source and binary forms, with or without
7 // modification, are permitted provided that the following conditions are 7 // modification, are permitted provided that the following conditions are
8 // met: 8 // met:
9 // 9 //
10 // * Redistributions of source code must retain the above copyright 10 // * Redistributions of source code must retain the above copyright
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 // Author: Mark Mentovai 67 // Author: Mark Mentovai
68 68
69 #ifndef PROCESSOR_POSTFIX_EVALUATOR_H__ 69 #ifndef PROCESSOR_POSTFIX_EVALUATOR_H__
70 #define PROCESSOR_POSTFIX_EVALUATOR_H__ 70 #define PROCESSOR_POSTFIX_EVALUATOR_H__
71 71
72 72
73 #include <map> 73 #include <map>
74 #include <string> 74 #include <string>
75 #include <vector> 75 #include <vector>
76 76
77 #include "common/using_std_string.h"
78
77 namespace google_breakpad { 79 namespace google_breakpad {
78 80
79 using std::map; 81 using std::map;
80 using std::string;
81 using std::vector; 82 using std::vector;
82 83
83 class MemoryRegion; 84 class MemoryRegion;
84 85
85 template<typename ValueType> 86 template<typename ValueType>
86 class PostfixEvaluator { 87 class PostfixEvaluator {
87 public: 88 public:
88 typedef map<string, ValueType> DictionaryType; 89 typedef map<string, ValueType> DictionaryType;
89 typedef map<string, bool> DictionaryValidityType; 90 typedef map<string, bool> DictionaryValidityType;
90 91
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 // The stack contains state information as execution progresses. Values 170 // The stack contains state information as execution progresses. Values
170 // are pushed on to it as the expression string is read and as operations 171 // are pushed on to it as the expression string is read and as operations
171 // yield values; values are popped when used as operands to operators. 172 // yield values; values are popped when used as operands to operators.
172 vector<string> stack_; 173 vector<string> stack_;
173 }; 174 };
174 175
175 } // namespace google_breakpad 176 } // namespace google_breakpad
176 177
177 178
178 #endif // PROCESSOR_POSTFIX_EVALUATOR_H__ 179 #endif // PROCESSOR_POSTFIX_EVALUATOR_H__
OLDNEW
« no previous file with comments | « processor/pathname_stripper.h ('k') | processor/postfix_evaluator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld 1004:630ec63f810e-tainted