mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-04 02:08:30 +00:00
Fix build and delete superfluous files
- Make Python make formatting pristine - Add missing `#pragma weak` to Python source - Fix Clang script flake due to missing directory
This commit is contained in:
parent
295b3d6ca5
commit
798d542f15
901 changed files with 683 additions and 455657 deletions
|
@ -24,7 +24,11 @@
|
|||
|
||||
int main(int argc, char *argv[]) {
|
||||
long x, sum = 0;
|
||||
while (scanf("%ld", &x) > 0) sum += x;
|
||||
if (argc == 2 && !strcmp(argv[1], "-x")) {
|
||||
while (scanf("%lx", &x) > 0) sum += x;
|
||||
} else {
|
||||
while (scanf("%ld", &x) > 0) sum += x;
|
||||
}
|
||||
printf("%,ld\n", sum);
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue