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

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
« no previous file with comments | « ports/avrdude/build.sh ('k') | ports/babl/build.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 diff --git a/Makefile.in b/Makefile.in 1 diff --git a/Makefile.in b/Makefile.in
2 --- a/Makefile.in 2 --- a/Makefile.in
3 +++ b/Makefile.in 3 +++ b/Makefile.in
4 @@ -708,7 +708,7 @@ clean-binPROGRAMS: 4 @@ -708,7 +708,7 @@ clean-binPROGRAMS:
5 5
6 avrdude$(EXEEXT): $(avrdude_OBJECTS) $(avrdude_DEPENDENCIES) $(EXTRA_avrdude_DE PENDENCIES) 6 avrdude$(EXEEXT): $(avrdude_OBJECTS) $(avrdude_DEPENDENCIES) $(EXTRA_avrdude_DE PENDENCIES)
7 @rm -f avrdude$(EXEEXT) 7 @rm -f avrdude$(EXEEXT)
8 - $(AM_V_CCLD)$(avrdude_LINK) $(avrdude_OBJECTS) $(avrdude_LDADD) $(LIBS) 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) 9 +» $(AM_V_CCLD)$(avrdude_LINK) $(avrdude_OBJECTS) $(LIBS) $(avrdude_LDADD)
10 10
11 mostlyclean-compile: 11 mostlyclean-compile:
12 -rm -f *.$(OBJEXT) 12 -rm -f *.$(OBJEXT)
13 diff --git a/dfu.c b/dfu.c 13 diff --git a/dfu.c b/dfu.c
14 --- a/dfu.c 14 --- a/dfu.c
15 +++ b/dfu.c 15 +++ b/dfu.c
16 @@ -36,13 +36,13 @@ 16 @@ -36,13 +36,13 @@
17 17
18 #ifndef HAVE_LIBUSB 18 #ifndef HAVE_LIBUSB
19 19
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 struct flip2_cmd cmd = { 251 struct flip2_cmd cmd = {
252 FLIP2_CMD_GROUP_DOWNLOAD, FLIP2_CMD_PROG_START, { 0, 0, 0, 0 } 252 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, 253 @@ -866,6 +880,7 @@ int flip2_write_max1k(struct dfu_dev *dfu,
254 flip2_status_str(&status)); 254 flip2_status_str(&status));
255 dfu_clrstatus(dfu); 255 dfu_clrstatus(dfu);
256 } 256 }
257 +#endif 257 +#endif
258 258
259 return cmd_result; 259 return cmd_result;
260 } 260 }
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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698