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

Side by Side Diff: third_party/libxml/xmlcatalog.c

Issue 2951008: Update libxml to 2.7.7. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 years, 5 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
OLDNEW
1 /* 1 /*
2 * xmlcatalog.c : a small utility program to handle XML catalogs 2 * xmlcatalog.c : a small utility program to handle XML catalogs
3 * 3 *
4 * See Copyright for the status of this software. 4 * See Copyright for the status of this software.
5 * 5 *
6 * daniel@veillard.com 6 * daniel@veillard.com
7 */ 7 */
8 8
9 #include "libxml.h" 9 #include "libxml.h"
10 10
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 (*cur != '\n') && (*cur != '\r')) { 117 (*cur != '\n') && (*cur != '\r')) {
118 if (*cur == 0) 118 if (*cur == 0)
119 break; 119 break;
120 command[i++] = *cur++; 120 command[i++] = *cur++;
121 } 121 }
122 command[i] = 0; 122 command[i] = 0;
123 if (i == 0) { 123 if (i == 0) {
124 free(cmdline); 124 free(cmdline);
125 continue; 125 continue;
126 } 126 }
127 nbargs++;
128 127
129 /* 128 /*
130 * Parse the argument string 129 * Parse the argument string
131 */ 130 */
132 memset(arg, 0, sizeof(arg)); 131 memset(arg, 0, sizeof(arg));
133 while ((*cur == ' ') || (*cur == '\t')) cur++; 132 while ((*cur == ' ') || (*cur == '\t')) cur++;
134 i = 0; 133 i = 0;
135 while ((*cur != '\n') && (*cur != '\r') && (*cur != 0)) { 134 while ((*cur != '\n') && (*cur != '\r') && (*cur != 0)) {
136 if (*cur == 0) 135 if (*cur == 0)
137 break; 136 break;
138 arg[i++] = *cur++; 137 arg[i++] = *cur++;
139 } 138 }
140 arg[i] = 0; 139 arg[i] = 0;
141 if (i != 0)
142 nbargs++;
143 140
144 /* 141 /*
145 * Parse the arguments 142 * Parse the arguments
146 */ 143 */
147 i = 0; 144 i = 0;
148 nbargs = 0; 145 nbargs = 0;
149 cur = arg; 146 cur = arg;
150 memset(argv, 0, sizeof(argv)); 147 memset(argv, 0, sizeof(argv));
151 while (*cur != 0) { 148 while (*cur != 0) {
152 while ((*cur == ' ') || (*cur == '\t')) cur++; 149 while ((*cur == ' ') || (*cur == '\t')) cur++;
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after
608 xmlCleanupParser(); 605 xmlCleanupParser();
609 xmlMemoryDump(); 606 xmlMemoryDump();
610 return(exit_value); 607 return(exit_value);
611 } 608 }
612 #else 609 #else
613 int main(int argc ATTRIBUTE_UNUSED, char **argv ATTRIBUTE_UNUSED) { 610 int main(int argc ATTRIBUTE_UNUSED, char **argv ATTRIBUTE_UNUSED) {
614 fprintf(stderr, "libxml was not compiled with catalog and output support\n") ; 611 fprintf(stderr, "libxml was not compiled with catalog and output support\n") ;
615 return(1); 612 return(1);
616 } 613 }
617 #endif 614 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698