diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2002-06-13 20:33:02 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2002-06-13 20:33:02 (GMT) |
commit | 14f8b4cfcb98de74b9c6e9316539be9e2a5cd31f (patch) | |
tree | 7b150133cdd51df851c6bdaf261cd9ea30c149af /PC/winsound.c | |
parent | 654c11ee3a2c9b72c040524c9cc4f95a1858f20b (diff) | |
download | cpython-14f8b4cfcb98de74b9c6e9316539be9e2a5cd31f.zip cpython-14f8b4cfcb98de74b9c6e9316539be9e2a5cd31f.tar.gz cpython-14f8b4cfcb98de74b9c6e9316539be9e2a5cd31f.tar.bz2 |
Patch #568124: Add doc string macros.
Diffstat (limited to 'PC/winsound.c')
-rw-r--r-- | PC/winsound.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/PC/winsound.c b/PC/winsound.c index 704af6c..26508b6 100644 --- a/PC/winsound.c +++ b/PC/winsound.c @@ -40,13 +40,13 @@ #include <conio.h> /* port functions on Win9x */ #include <Python.h> -static char sound_playsound_doc[] = +PyDoc_STRVAR(sound_playsound_doc, "PlaySound(sound, flags) - a wrapper around the Windows PlaySound API\n" "\n" "The sound argument can be a filename, data, or None.\n" -"For flag values, ored together, see module documentation.\n"; +"For flag values, ored together, see module documentation."); -static char sound_beep_doc[] = +PyDoc_STRVAR(sound_beep_doc, "Beep(frequency, duration) - a wrapper around the Windows Beep API\n" "\n" "The frequency argument specifies frequency, in hertz, of the sound.\n" @@ -54,9 +54,9 @@ static char sound_beep_doc[] = "The duration argument specifies the number of milliseconds.\n" "On WinNT and 2000, the platform Beep API is used directly. Else funky\n" "code doing direct port manipulation is used; it's unknown whether that\n" -"will work on all systems.\n"; +"will work on all systems."); -static char sound_module_doc[] = +PyDoc_STRVAR(sound_module_doc, "PlaySound(sound, flags) - play a sound\n" "SND_FILENAME - sound is a wav file name\n" "SND_ALIAS - sound is a registry sound association name\n" @@ -68,7 +68,7 @@ static char sound_module_doc[] = "SND_NOSTOP - Do not interrupt any sounds currently playing\n" // Raising RuntimeError if needed "SND_NOWAIT - Return immediately if the sound driver is busy\n" // Without any errors "\n" -"Beep(frequency, duration) - Make a beep through the PC speaker.\n"; +"Beep(frequency, duration) - Make a beep through the PC speaker."); PyObject * sound_playsound(PyObject *s, PyObject *args) |