Added (void) to parameterless function prototypes in CSFML
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1518 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
parent
a48f71ee8e
commit
1d9feb6e01
50 changed files with 57 additions and 57 deletions
|
@ -45,7 +45,7 @@ CSFML_API void sfListener_SetGlobalVolume(float volume);
|
|||
/// \return Current global volume, in the range [0, 100]
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_API float sfListener_GetGlobalVolume();
|
||||
CSFML_API float sfListener_GetGlobalVolume(void);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Change the position of the listener
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
/// \return A new sfSound object (NULL if failed)
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_API sfSound* sfSound_Create();
|
||||
CSFML_API sfSound* sfSound_Create(void);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Copy an existing sound
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
/// \return A new sfSoundBufferRecorder object (NULL if failed)
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_API sfSoundBufferRecorder* sfSoundBufferRecorder_Create();
|
||||
CSFML_API sfSoundBufferRecorder* sfSoundBufferRecorder_Create(void);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Destroy an existing sound buffer recorder
|
||||
|
|
|
@ -97,7 +97,7 @@ CSFML_API unsigned int sfSoundRecorder_GetSampleRate(const sfSoundRecorder* soun
|
|||
/// \return sfTrue if audio capture is supported
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_API sfBool sfSoundRecorder_IsAvailable();
|
||||
CSFML_API sfBool sfSoundRecorder_IsAvailable(void);
|
||||
|
||||
|
||||
#endif // SFML_SOUNDRECORDER_H
|
||||
|
|
|
@ -126,7 +126,7 @@ CSFML_API const sfImage* sfFont_GetImage(sfFont* font, unsigned int characterSiz
|
|||
/// \return Pointer to the default font
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_API const sfFont* sfFont_GetDefaultFont();
|
||||
CSFML_API const sfFont* sfFont_GetDefaultFont(void);
|
||||
|
||||
|
||||
#endif // SFML_IMAGE_H
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
/// \return A new sfImage object, or NULL if it failed
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_API sfImage* sfImage_Create();
|
||||
CSFML_API sfImage* sfImage_Create(void);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Create a new image filled with a color
|
||||
|
@ -178,7 +178,7 @@ CSFML_API sfColor sfImage_GetPixel(const sfImage* image, unsigned int x, unsigne
|
|||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Get a read-only pointer to the array of pixels of an image (8 bits integers RGBA)
|
||||
/// Array size is sfImage_GetWidth() x sfImage_GetHeight() x 4
|
||||
/// Array size is sfImage_GetWidth(img) x sfImage_GetHeight(img) x 4
|
||||
/// This pointer becomes invalid if you reload or resize the image
|
||||
///
|
||||
/// \param image : Image to read
|
||||
|
|
|
@ -208,7 +208,7 @@ CSFML_API const sfImage* sfRenderImage_GetImage(const sfRenderImage* renderImage
|
|||
/// \return sfTrue if the RenderImage class can be used
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_API sfBool sfRenderImage_IsAvailable();
|
||||
CSFML_API sfBool sfRenderImage_IsAvailable(void);
|
||||
|
||||
|
||||
#endif // SFML_RENDERIMAGE_H
|
||||
|
|
|
@ -142,7 +142,7 @@ CSFML_API void sfShader_Unbind(const sfShader* shader);
|
|||
/// \return sfTrue if the system can use shaders
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_API sfBool sfShader_IsAvailable();
|
||||
CSFML_API sfBool sfShader_IsAvailable(void);
|
||||
|
||||
|
||||
#endif // SFML_SHADER_H
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
/// \return A new sfShape object, or NULL if it failed
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_API sfShape* sfShape_Create();
|
||||
CSFML_API sfShape* sfShape_Create(void);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Create a new shape made of a single line
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
/// \return A new sfSprite object, or NULL if it failed
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_API sfSprite* sfSprite_Create();
|
||||
CSFML_API sfSprite* sfSprite_Create(void);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Copy an existing sprite
|
||||
|
|
|
@ -53,7 +53,7 @@ typedef enum
|
|||
/// \return A new sfText object, or NULL if it failed
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_API sfText* sfText_Create();
|
||||
CSFML_API sfText* sfText_Create(void);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Copy an existing text
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
/// Construct a default view (1000x1000)
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_API sfView* sfView_Create();
|
||||
CSFML_API sfView* sfView_Create(void);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Construct a view from a rectangle
|
||||
|
|
|
@ -266,7 +266,7 @@ CSFML_API const char* sfFtpResponse_GetMessage(const sfFtpResponse* ftpResponse)
|
|||
/// \return Pointer to the new Ftp
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_API sfFtp* sfFtp_Create();
|
||||
CSFML_API sfFtp* sfFtp_Create(void);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Destroy an existing Ftp
|
||||
|
|
|
@ -85,7 +85,7 @@ enum sfHttpStatus
|
|||
/// \return Pointer to the new Http request
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_API sfHttpRequest* sfHttpRequest_Create();
|
||||
CSFML_API sfHttpRequest* sfHttpRequest_Create(void);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Destroy an existing Http request
|
||||
|
@ -216,7 +216,7 @@ CSFML_API const char* sfHttpResponse_GetBody(const sfHttpResponse* httpResponse)
|
|||
/// \return Pointer to the new Http
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_API sfHttp* sfHttp_Create();
|
||||
CSFML_API sfHttp* sfHttp_Create(void);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Destroy an existing Http object
|
||||
|
|
|
@ -96,7 +96,7 @@ CSFML_API sfUint32 sfIpAddress_ToInteger(sfIpAddress address);
|
|||
/// \return Local IP address
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_API sfIpAddress sfIpAddress_GetLocalAddress();
|
||||
CSFML_API sfIpAddress sfIpAddress_GetLocalAddress(void);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Get the computer's public IP address (from the web point of view).
|
||||
|
@ -117,7 +117,7 @@ CSFML_API sfIpAddress sfIpAddress_GetPublicAddress(float timeout);
|
|||
/// \return Local host IP address (127.0.0.1, or "localhost")
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_API sfIpAddress sfIpAddress_LocalHost();
|
||||
CSFML_API sfIpAddress sfIpAddress_LocalHost(void);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Get the empty/invalid address
|
||||
|
@ -125,7 +125,7 @@ CSFML_API sfIpAddress sfIpAddress_LocalHost();
|
|||
/// \return Empty object that represents invalid addresses
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_API sfIpAddress sfIpAddress_None();
|
||||
CSFML_API sfIpAddress sfIpAddress_None(void);
|
||||
|
||||
|
||||
#endif // SFML_IPADDRESS_H
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
/// \return A new sfPacket object
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_API sfPacket* sfPacket_Create();
|
||||
CSFML_API sfPacket* sfPacket_Create(void);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Copy an existing packet
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
/// \return A new sfSelector object
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_API sfSocketSelector* sfSocketSelector_Create();
|
||||
CSFML_API sfSocketSelector* sfSocketSelector_Create(void);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Copy an existing selector
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
/// \return Pointer to the new socket
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_API sfTcpListener* sfTcpListener_Create();
|
||||
CSFML_API sfTcpListener* sfTcpListener_Create(void);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Destroy an existing TCP socket
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
/// \return Pointer to the new socket
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_API sfTcpSocket* sfTcpSocket_Create();
|
||||
CSFML_API sfTcpSocket* sfTcpSocket_Create(void);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Destroy an existing TCP socket
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
/// \return Pointer to the new socket
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_API sfUdpSocket* sfUdpSocket_Create();
|
||||
CSFML_API sfUdpSocket* sfUdpSocket_Create(void);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Destroy an existing UDP socket
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
/// \return A new sfClock object
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_API sfClock* sfClock_Create();
|
||||
CSFML_API sfClock* sfClock_Create(void);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Copy an existing clock
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
/// \return A new sfMutex object
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_API sfMutex* sfMutex_Create();
|
||||
CSFML_API sfMutex* sfMutex_Create(void);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Destroy an existing mutex
|
||||
|
|
|
@ -46,7 +46,7 @@ CSFML_API void sfRandom_SetSeed(unsigned int seed);
|
|||
/// \return Current seed
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_API unsigned int sfRandom_GetSeed();
|
||||
CSFML_API unsigned int sfRandom_GetSeed(void);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Get a random float number in a given range
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
/// \return New context
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_API sfContext* sfContext_Create();
|
||||
CSFML_API sfContext* sfContext_Create(void);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Destroy an existing context
|
||||
|
|
|
@ -49,7 +49,7 @@ typedef struct
|
|||
/// \return Current desktop video mode
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_API sfVideoMode sfVideoMode_GetDesktopMode();
|
||||
CSFML_API sfVideoMode sfVideoMode_GetDesktopMode(void);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Get all the supported video modes for fullscreen mode.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue