Patchwork [2,of,3] cext: move util.h to cext tree

login
register
mail settings
Submitter Yuya Nishihara
Date May 21, 2017, 6:02 a.m.
Message ID <ab99b86d9016ba51467e.1495346523@mimosa>
Download mbox | patch
Permalink /patch/20782/
State Accepted
Headers show

Comments

Yuya Nishihara - May 21, 2017, 6:02 a.m.
# HG changeset patch
# User Yuya Nishihara <yuya@tcha.org>
# Date 1495341319 -32400
#      Sun May 21 13:35:19 2017 +0900
# Node ID ab99b86d9016ba51467e7f2359fc21a751f4f82d
# Parent  429ef6c0fa3c16ff776cd6aeff27d2f27c2fc7d3
cext: move util.h to cext tree

Since util.h isn't useful in plain C module, it should be placed in CPython
extension directory.

Patch

diff --git a/mercurial/util.h b/mercurial/cext/util.h
rename from mercurial/util.h
rename to mercurial/cext/util.h
diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -591,7 +591,7 @@  packages = ['mercurial',
 
 common_depends = ['mercurial/bitmanipulation.h',
                   'mercurial/compat.h',
-                  'mercurial/util.h']
+                  'mercurial/cext/util.h']
 common_include_dirs = ['mercurial']
 
 osutil_cflags = []