9 Commits

Author SHA1 Message Date
Mark Charney
e7d734962c update legal header & date for py3 ported files
Change-Id: I166833daaa56c33eca01bdf7b9aa6e74a490ba9a
(cherry picked from commit 1212ba962dff6dfbfa0bd2469327ff447ce59058)
2017-06-12 14:41:24 -04:00
Mark Charney
9983af67b9 ctables: string/bytes confusion. genutil:funcs for idioms I keep replacing
Change-Id: Ic1bce8efd82be80b9911b62d0b932eba0a08ed08
(cherry picked from commit adb6a4f9032feef846f6e81660424963c18cf7da)
2017-06-12 14:41:24 -04:00
Mark Charney
0e3904c7e9 more replacing file(fn).readline with open(fn,r).readline...
Change-Id: Id703f961092b33ebc2703158b0706e87194021e3
(cherry picked from commit ae122603a801f87c53619df54827417f561cce5a)
2017-06-12 14:41:24 -04:00
Mark Charney
0d5fd4a040 more replacing of map(str with list comprehension
Change-Id: I0b3832f5e30c35927c46d177b7b3b13692c6d306
(cherry picked from commit 34c9f848802827bf4699c06b97a732ef79875218)
2017-06-12 14:41:24 -04:00
Mark Charney
99e3abea6d 2to3 types fixer for removed types
Change-Id: I5e7941e2e316c40ac731b5cf2bfc48a6500d56e5
(cherry picked from commit abc4de852029e7a17f1bdd342814d74262449a11)
2017-06-12 14:41:23 -04:00
Mark Charney
4eccd7d1a4 2to3 dict transform
Change-Id: I06e7019fbe8d1331751c6ec091817c24c4e1b590
(cherry picked from commit 28d7094f0e2d78c3397a5edf0fbe96085732bedf)
2017-06-12 14:41:23 -04:00
Mark Charney
a3a015df71 filter() -> map(filter( ; lambda(x) -> lambda x, map(lambda -> list comprehension
Change-Id: Iea61822578f708a1485c528ed008340e2d44a687
(cherry picked from commit 369e1c06f7c70f743f7c2d92f336b3fe2a5ef07e)
2017-06-12 14:41:22 -04:00
Mark Charney
fcd2d41b2b moving headers to xed/ directory for install & kit. DISRUPTIVE CHANGE
* compiled kit users must refer to "#include "xed/xed-interface.h"
      and xed/ on any other public headers that they reference as part
      of the kit or new /usr/local installs.  Or they can change their
      -I flag to include the xed/ path component.  All the examples
      use xed/ in the #include statements now.

    * new knob --prefix=/usr/local (for example) that puts the
      compiled library in /usr/local/lib and the headers in
      /usr/local/include/xed .

    * To install in /usr/local, one typically must sudo.  If you do
      the whole build at sudo, then it'll create root-owned files in
      your build directory whic you might not want.  So I suggest
      first building as the local user and then sudo only for the
      final install.

         > ./mfile.py
	 > sudo ./mfile.py --prefix=/usr/local

    * There is also a --prefix-lib-dir knob to specify something other
      than "lib" for /usr/local/lib. Some systems use lib, lib32 or
      lib64 and I don't know how to tell which is which so I give
      users a knob so they can decide for themselves.

         > ./mfile.py --host-cpu=ia32
	 > sudo ./mfile.py --prefix=/usr/local --prefix-lib-dir=lib32
         > ./mfile.py --host-cpu=intel64
	 > sudo ./mfile.py --prefix=/usr/local --prefix-lib-dir=lib64

    * added xed-util.h to xed-interface.h

    * moved headers from include/public to include/public/xed

    * genutil minor cleanup

Change-Id: I3786d2280f24ff8d7e075fa7a75d90f3b28dd8c3
2016-12-21 13:53:14 -05:00
Mark Charney
ffd94e705c initial commit
Change-Id: I32a6db1a17988d9df8ff69aa1672dbf08b108e8a
2016-12-16 16:09:38 -05:00