Mercurial > cpython-lru_cache-weakref
annotate Python/getplatform.c @ 51197:359394b63a23 3.0
Merged revisions 69117 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r69117 | hirokazu.yamamoto | 2009-01-30 12:15:05 +0900 | 1 line
Issue #5041: Fixed memory leak.
........
| author | Hirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp> |
|---|---|
| date | Fri, 30 Jan 2009 11:05:53 +0000 |
| parents | 6f6f965c5e2d |
| children |
| rev | line source |
|---|---|
|
3621
f158edccc72c
grand renaming; added copyright to some files
Guido van Rossum <guido@python.org>
parents:
2896
diff
changeset
|
1 |
|
f158edccc72c
grand renaming; added copyright to some files
Guido van Rossum <guido@python.org>
parents:
2896
diff
changeset
|
2 #include "Python.h" |
|
f158edccc72c
grand renaming; added copyright to some files
Guido van Rossum <guido@python.org>
parents:
2896
diff
changeset
|
3 |
| 2896 | 4 #ifndef PLATFORM |
| 5 #define PLATFORM "unknown" | |
| 6 #endif | |
| 7 | |
|
5860
728a083242a2
Make it return a _const_ char*.
Guido van Rossum <guido@python.org>
parents:
4503
diff
changeset
|
8 const char * |
|
13658
f79434ee41fa
Mass ANSIfication of function definitions. Doesn't cover all 'extern'
Thomas Wouters <thomas@python.org>
parents:
13256
diff
changeset
|
9 Py_GetPlatform(void) |
| 2896 | 10 { |
| 11 return PLATFORM; | |
| 12 } |
