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

Side by Side Diff: utils/archive/messaging.h

Issue 10824210: Fix the archive code so that it compiles in a stricter mode. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Small fixes Created 8 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 | « utils/archive/entry_request.dart ('k') | utils/archive/messaging.c » ('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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef DART_ARCHIVE_MESSAGING_H_ 5 #ifndef DART_ARCHIVE_MESSAGING_H_
6 #define DART_ARCHIVE_MESSAGING_H_ 6 #define DART_ARCHIVE_MESSAGING_H_
7 7
8 #include "dart_archive.h" 8 #include "dart_archive.h"
9 9
10 /** 10 /**
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 */ 114 */
115 Dart_CObject* getNullableStringArgument(Dart_Port p, Dart_CObject* request, 115 Dart_CObject* getNullableStringArgument(Dart_Port p, Dart_CObject* request,
116 int i); 116 int i);
117 117
118 /** 118 /**
119 * Gets the string value of [object] or `NULL` if it's null. Note that this does 119 * Gets the string value of [object] or `NULL` if it's null. Note that this does
120 * not validate the type of its argument. 120 * not validate the type of its argument.
121 */ 121 */
122 char* getNullableString(Dart_CObject* object); 122 char* getNullableString(Dart_CObject* object);
123 123
124 /**
125 * Gets the module, name, and value, for a libarchive `set_option` function
126 * call. Returns whether or not the arguments were parsed correctly.
127 */
128 bool getOptionArguments(Dart_Port p, Dart_CObject* request, char** module,
129 char** name, char** value);
130
124 /** Declares a null [Dart_CObject] named [name]. */ 131 /** Declares a null [Dart_CObject] named [name]. */
125 #define DART_NULL(name) \ 132 #define DART_NULL(name) \
126 Dart_CObject name; \ 133 Dart_CObject name; \
127 name.type = kNull; 134 name.type = kNull;
128 135
129 /** 136 /**
130 * Declares a [Dart_CObject] bool named [name] with value [val]. 137 * Declares a [Dart_CObject] bool named [name] with value [val].
131 * 138 *
132 * [val] should be a C boolean. 139 * [val] should be a C boolean.
133 */ 140 */
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 #define DART_STRING(name, val) \ 181 #define DART_STRING(name, val) \
175 Dart_CObject name; \ 182 Dart_CObject name; \
176 if (val == NULL) { \ 183 if (val == NULL) { \
177 name.type = kNull; \ 184 name.type = kNull; \
178 } else { \ 185 } else { \
179 name.type = kString; \ 186 name.type = kString; \
180 name.value.as_string = val; \ 187 name.value.as_string = val; \
181 } 188 }
182 189
183 #endif // DART_ARCHIVE_MESSAGING_H_ 190 #endif // DART_ARCHIVE_MESSAGING_H_
OLDNEW
« no previous file with comments | « utils/archive/entry_request.dart ('k') | utils/archive/messaging.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698