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

Side by Side Diff: ports/avrdude/nacl.patch

Issue 1417223003: Switch from using 'nacl_main' to 'main' entry point (Closed) Base URL: https://chromium.googlesource.com/external/naclports.git@master
Patch Set: Created 5 years, 1 month 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
OLDNEW
1 diff --git a/Makefile.in b/Makefile.in
2 --- a/Makefile.in
3 +++ b/Makefile.in
4 @@ -708,7 +708,7 @@ clean-binPROGRAMS:
5
6 avrdude$(EXEEXT): $(avrdude_OBJECTS) $(avrdude_DEPENDENCIES) $(EXTRA_avrdude_DE PENDENCIES)
7 @rm -f avrdude$(EXEEXT)
8 - $(AM_V_CCLD)$(avrdude_LINK) $(avrdude_OBJECTS) $(avrdude_LDADD) $(LIBS)
9 + $(AM_V_CCLD)$(avrdude_LINK) $(avrdude_OBJECTS) $(EXTRA_LIBS) $(avrdude_L DADD) $(LIBS)
binji 2015/10/27 21:52:38 remove definition of EXTRA_LIBS too?
Sam Clegg 2015/10/28 17:06:30 It was removed from ports/avrdude/build.sh. It wa
10
11 mostlyclean-compile:
12 -rm -f *.$(OBJEXT)
13 diff --git a/dfu.c b/dfu.c 1 diff --git a/dfu.c b/dfu.c
14 --- a/dfu.c 2 --- a/dfu.c
15 +++ b/dfu.c 3 +++ b/dfu.c
16 @@ -36,13 +36,13 @@ 4 @@ -36,13 +36,13 @@
17 5
18 #ifndef HAVE_LIBUSB 6 #ifndef HAVE_LIBUSB
19 7
20 -int dfu_open(struct dfu_dev *dfu, char *port_name) { 8 -int dfu_open(struct dfu_dev *dfu, char *port_name) {
21 +struct dfu_dev *dfu_open(char *port_name) { 9 +struct dfu_dev *dfu_open(char *port_name) {
22 fprintf(stderr, "%s: Error: No USB support in this compile of avrdude\n", 10 fprintf(stderr, "%s: Error: No USB support in this compile of avrdude\n",
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 struct flip2_cmd cmd = { 239 struct flip2_cmd cmd = {
252 FLIP2_CMD_GROUP_DOWNLOAD, FLIP2_CMD_PROG_START, { 0, 0, 0, 0 } 240 FLIP2_CMD_GROUP_DOWNLOAD, FLIP2_CMD_PROG_START, { 0, 0, 0, 0 }
253 @@ -866,6 +880,7 @@ int flip2_write_max1k(struct dfu_dev *dfu, 241 @@ -866,6 +880,7 @@ int flip2_write_max1k(struct dfu_dev *dfu,
254 flip2_status_str(&status)); 242 flip2_status_str(&status));
255 dfu_clrstatus(dfu); 243 dfu_clrstatus(dfu);
256 } 244 }
257 +#endif 245 +#endif
258 246
259 return cmd_result; 247 return cmd_result;
260 } 248 }
261 diff --git a/main.c b/main.c
262 --- a/main.c
263 +++ b/main.c
264 @@ -297,7 +297,11 @@ static void cleanup_main(void)
265 /*
266 * main routine
267 */
268 +#if defined(__native_client__)
269 +int nacl_main(int argc, char **argv)
270 +#else
271 int main(int argc, char * argv [])
272 +#endif
273 {
274 int rc; /* general return code checking */
275 int exitrc; /* exit code for main() */
OLDNEW
« no previous file with comments | « ports/avrdude/build.sh ('k') | ports/babl/build.sh » ('j') | ports/binutils-2.25/build.sh » ('J')

Powered by Google App Engine
This is Rietveld 408576698