A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2009-January/084723.html below:

[Python-Dev] #ifdef __cplusplus?

[Python-Dev] #ifdef __cplusplus? [Python-Dev] #ifdef __cplusplus?Jim Jewett jimjjewett at gmail.com
Sat Jan 3 03:46:13 CET 2009
Alexander Belopolsky wrote:
> 4. Should exported symbols be always declared in headers or is it ok
> to just declare them as extern in .c files where they are used?

Is the concern that moving them to a header makes them part of the API?

In other words, does replacing

   PyObject *
   PyFile_FromString(char *name, char *mode)
   {
 	extern int fclose(FILE *);
   ...
   }

with

   #include <stdio.h>

mean that the <stdio.h> needs to be included from then on, even if
PyFile_FromString stops relying upon it?

-jJ
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4