Changeset 51770 in vbox for trunk/src/bldprogs
- Timestamp:
- Jul 1, 2014 6:14:02 PM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 94611
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/bird/hardenedwindows (added) merged: 92692-94610
- Property svn:mergeinfo changed
-
trunk/src/bldprogs/bin2c.c
r48959 r51770 57 57 " -width <n> number of bytes per line (default: 16)\n" 58 58 " -break <n> break every <n> lines (default: -1)\n" 59 " -ascii show ASCII representation of binary as comment\n", 60 argv0); 59 " -ascii show ASCII representation of binary as comment\n" 60 " -export emit DECLEXPORT\n" 61 " --append append to the output file (default: truncate)\n" 62 , argv0); 61 63 62 64 return 1; … … 72 74 size_t uMask = 0; 73 75 int fAscii = 0; 76 int fAppend = 0; 74 77 int fExport = 0; 75 78 long iBreakEvery = -1; … … 105 108 } 106 109 else if (!strcmp(argv[iArg], "-ascii")) 107 {108 110 fAscii = 1; 109 } 111 else if (!strcmp(argv[iArg], "--append")) 112 fAppend = 1; 110 113 else if (!strcmp(argv[iArg], "-export")) 111 {112 114 fExport = 1; 113 }114 115 else if (!strcmp(argv[iArg], "-width")) 115 116 { … … 153 154 } 154 155 155 pFileOut = fopen(argv[iArg+2], "wb");156 pFileOut = fopen(argv[iArg+2], fAppend ? "a" : "w"); /* no b! */ 156 157 if (!pFileOut) 157 158 {
Note:
See TracChangeset
for help on using the changeset viewer.