Commit Graph

4 Commits

Author SHA1 Message Date
Adam Simpkins
c19eaaec97 fix a warning about an ignored const keyword
Summary:
Declaring a return value as `const` doesn't really make sense, and the
compiler simply ignores the keyword.

This removes the `const` keyword so that the code compiles cleanly when built
with `-Wignored-qualifiers`

Reviewed By: quark-zju

Differential Revision: D16635863

fbshipit-source-id: 5c1fd3689c7e8f5a68ba9211d6581b3a59f9cf28
2019-08-05 12:10:41 -07:00
Wez Furlong
31bcfbe58e hg: disable check-code tests for C code
Summary:
They're actively fighting against the clang-format config
and don't have an auto-fix.

Reviewed By: quark-zju

Differential Revision: D8283622

fbshipit-source-id: 2de45f50e6370a5ed14915c6ff23dc843ff14e8a
2018-06-05 19:21:43 -07:00
Kostia Balytskyi
0ef59877cd hg: some portability fixes to py-cdatapack.h
Summary:
1. Variable Length Arrays are not supported by MSVC, but since this is a C++ code, we can just use heap allocation
2. Replacing `inet` with portability version

Depends on D7196403

Reviewed By: quark-zju

Differential Revision: D7196605

fbshipit-source-id: a0d88b6e06f255ef648c0b35a99b42ba3bee538a
2018-04-13 21:51:24 -07:00
Durham Goode
eb099b7fe1 cdatapack: move to lib/
Summary:
This moves the cdatapack code to the new lib/ directory and adds it to the main
setup.py.

Test Plan: hg purge --all && make local && cd tests && ./run-tests.py -S -j 48

Reviewers: #mercurial

Differential Revision: https://phabricator.intern.facebook.com/D6677491
2018-01-08 17:55:53 -08:00