diff options
| author | Neal Norwitz <nnorwitz@gmail.com> | 2006-03-22 07:18:02 +0000 | 
|---|---|---|
| committer | Neal Norwitz <nnorwitz@gmail.com> | 2006-03-22 07:18:02 +0000 | 
| commit | 57c179c5b92f1cbe21e23b514f34f75e0d32bbfb (patch) | |
| tree | 9500c78afa0bbbfcc982ba50899fc5c74cc8ed20 | |
| parent | f84c38a39ad9b870a43d35fba7d0f3586a492176 (diff) | |
| download | cpython-git-57c179c5b92f1cbe21e23b514f34f75e0d32bbfb.tar.gz | |
Remove staticforward and statichere
| -rw-r--r-- | Include/object.h | 15 | ||||
| -rw-r--r-- | Misc/NEWS | 2 | ||||
| -rw-r--r-- | Modules/_sre.c | 6 | 
3 files changed, 5 insertions, 18 deletions
| diff --git a/Include/object.h b/Include/object.h index 184d4c65f3..573965149c 100644 --- a/Include/object.h +++ b/Include/object.h @@ -685,21 +685,6 @@ PyAPI_DATA(PyObject) _Py_NotImplementedStruct; /* Don't use this directly */   */  PyAPI_DATA(int) _Py_SwappedOp[]; -/* -Define staticforward and statichere for source compatibility with old -C extensions. - -The staticforward define was needed to support certain broken C -compilers (notably SCO ODT 3.0, perhaps early AIX as well) botched the -static keyword when it was used with a forward declaration of a static -initialized structure.  Standard C allows the forward declaration with -static, and we've decided to stop catering to broken C compilers. -(In fact, we expect that the compilers are all fixed eight years later.) -*/ - -#define staticforward static -#define statichere static -  /*  More conventions @@ -47,6 +47,8 @@ Core and Builtins  - input(), raw_input() and apply() are gone. +- Removed staticforward and statichere macros. +  Extension Modules  ----------------- diff --git a/Modules/_sre.c b/Modules/_sre.c index 413ae09af5..c167210749 100644 --- a/Modules/_sre.c +++ b/Modules/_sre.c @@ -2770,7 +2770,7 @@ pattern_getattr(PatternObject* self, char* name)      return NULL;  } -statichere PyTypeObject Pattern_Type = { +static PyTypeObject Pattern_Type = {      PyObject_HEAD_INIT(NULL)      0, "_" SRE_MODULE ".SRE_Pattern",      sizeof(PatternObject), sizeof(SRE_CODE), @@ -3251,7 +3251,7 @@ match_getattr(MatchObject* self, char* name)  /* FIXME: implement setattr("string", None) as a special case (to     detach the associated string, if any */ -statichere PyTypeObject Match_Type = { +static PyTypeObject Match_Type = {      PyObject_HEAD_INIT(NULL)      0, "_" SRE_MODULE ".SRE_Match",      sizeof(MatchObject), sizeof(int), @@ -3361,7 +3361,7 @@ scanner_getattr(ScannerObject* self, char* name)      return NULL;  } -statichere PyTypeObject Scanner_Type = { +static PyTypeObject Scanner_Type = {      PyObject_HEAD_INIT(NULL)      0, "_" SRE_MODULE ".SRE_Scanner",      sizeof(ScannerObject), 0, | 
