This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2007年11月28日 14:14 by JosephArmbruster, last changed 2022年04月11日 14:56 by admin. This issue is now closed.
| Messages (3) | |||
|---|---|---|---|
| msg57913 - (view) | Author: Joseph Armbruster (JosephArmbruster) | Date: 2007年11月28日 14:14 | |
Question: Is there any harm in removing this block from pyconfig.h? #ifndef PY_LONG_LONG # define PY_LONG_LONG __int64 # define PY_LLONG_MAX _I64_MAX # define PY_LLONG_MIN _I64_MIN # define PY_ULLONG_MAX _UI64_MAX #endif pyconfig.h contains this small snippet: /* 64 bit ints are usually spelt __int64 unless compiler has overridden */ #define HAVE_LONG_LONG 1 #ifndef PY_LONG_LONG # define PY_LONG_LONG __int64 # define PY_LLONG_MAX _I64_MAX # define PY_LLONG_MIN _I64_MIN # define PY_ULLONG_MAX _UI64_MAX #endif However, in pyport.h, I can see that PY_LONG_LONG may also be defined here, except the tokens are slightly different: #ifdef HAVE_LONG_LONG #ifndef PY_LONG_LONG #define PY_LONG_LONG long long #if defined(LLONG_MAX) /* If LLONG_MAX is defined in limits.h, use that. */ #define PY_LLONG_MIN LLONG_MIN #define PY_LLONG_MAX LLONG_MAX #define PY_ULLONG_MAX ULLONG_MAX #elif defined(__LONG_LONG_MAX__) /* Otherwise, if GCC has a builtin define, use that. */ #define PY_LLONG_MAX __LONG_LONG_MAX__ #define PY_LLONG_MIN (-PY_LLONG_MAX-1) #define PY_ULLONG_MAX (__LONG_LONG_MAX__*2ULL + 1ULL) #else /* Otherwise, rely on two's complement. */ #define PY_ULLONG_MAX (~0ULL) #define PY_LLONG_MAX ((long long)(PY_ULLONG_MAX>>1)) #define PY_LLONG_MIN (-PY_LLONG_MAX-1) #endif /* LLONG_MAX */ #endif #endif /* HAVE_LONG_LONG */ |
|||
| msg99850 - (view) | Author: A.M. Kuchling (akuchling) * (Python committer) | Date: 2010年02月22日 22:07 | |
This turns out to refer to PC/pyconfig.h, not the top-level pyconfig.h. It's not clear to me why you say that block of code is no longer used; can you expand on why that's the case? |
|||
| msg106145 - (view) | Author: Martin v. Löwis (loewis) * (Python committer) | Date: 2010年05月20日 12:46 | |
I think there is harm in removing this block; it would cause PY_LONG_LONG not to be defined anymore. Closing as invalid. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:56:28 | admin | set | github: 45853 |
| 2010年05月20日 12:46:07 | loewis | set | status: open -> closed resolution: not a bug messages: + msg106145 |
| 2010年02月22日 22:07:04 | akuchling | set | nosy:
+ akuchling messages: + msg99850 |
| 2009年03月30日 22:20:42 | ajaksu2 | set | stage: test needed type: enhancement versions: + Python 3.1, Python 2.7, - Python 3.0 |
| 2007年11月28日 14:23:11 | christian.heimes | set | priority: low assignee: loewis nosy: + loewis |
| 2007年11月28日 14:14:07 | JosephArmbruster | create | |