Sync src with amalgamated versions

Now src contains exactly what's embedded in mongoose.c and .h, nothing more.

Added `tools/amalgam.sh` to aamlgamate both files at once.

There are no functional changes to mongoose.c, .h in this PR, only slight filename changes.
This commit is contained in:
Deomid Ryabkov committed 2020-07-08 02:08:49 +01:00
1 parent 73a2b92278
commit b0a1cd7b0d
198 files changed
+2870 -23966

No files matched your search

+4 -4
View File
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
import sys
import re
import os
@@ -33,11 +33,11 @@ with open(fname) as f:
# open next file for writing
ofile = open(cur_src, "w")
print >>sys.stderr, '=> %s' % cur_src
print('=> %s' % cur_src, file=sys.stderr)
manifest.append(cur_src)
next(f)
elif ofile:
ofile.write(clean(l))
m = open('%s.manifest' % os.path.basename(fname), 'w')
print >>m, '\n'.join(manifest)
with open('src/%s.manifest' % os.path.basename(fname), 'w') as m:
print('\n'.join(manifest), file=m)