1. 17 Tem, 2002 1 kayıt (commit)
    • Jeremy Hylton's avatar
      staticforward bites the dust. · 938ace69
      Jeremy Hylton yazdı
      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.)
      
      I'm leaving staticforward and statichere defined in object.h as
      static.  This is only for backwards compatibility with C extensions
      that might still use it.
      
      XXX I haven't updated the documentation.
      938ace69
  2. 27 Nis, 2002 1 kayıt (commit)
    • Tim Peters's avatar
      Repair widespread misuse of _PyString_Resize. Since it's clear people · 5de9842b
      Tim Peters yazdı
      don't understand how this function works, also beefed up the docs.  The
      most common usage error is of this form (often spread out across gotos):
      
      	if (_PyString_Resize(&s, n) < 0) {
      		Py_DECREF(s);
      		s = NULL;
      		goto outtahere;
      	}
      
      The error is that if _PyString_Resize runs out of memory, it automatically
      decrefs the input string object s (which also deallocates it, since its
      refcount must be 1 upon entry), and sets s to NULL.  So if the "if"
      branch ever triggers, it's an error to call Py_DECREF(s):  s is already
      NULL!  A correct way to write the above is the simpler (and intended)
      
      	if (_PyString_Resize(&s, n) < 0)
      		goto outtahere;
      
      Bugfix candidate.
      5de9842b
  3. 12 Ock, 2002 1 kayıt (commit)
  4. 08 Ara, 2001 2 kayıt (commit)
    • Guido van Rossum's avatar
      Patch supplied by Burton Radons for his own SF bug #487390: Modifying · 14648396
      Guido van Rossum yazdı
      type.__module__ behavior.
      
      This adds the module name and a dot in front of the type name in every
      type object initializer, except for built-in types (and those that
      already had this).  Note that it touches lots of Mac modules -- I have
      no way to test these but the changes look right.  Apologies if they're
      not.  This also touches the weakref docs, which contains a sample type
      object initializer.  It also touches the mmap test output, because the
      mmap type's repr is included in that output.  It touches object.h to
      put the correct description in a comment.
      14648396
    • Guido van Rossum's avatar
      SF patch #489989 (Charles G Waldman) linuxaudiodev.c - fix initialization · 7745218c
      Guido van Rossum yazdı
      The OSS Programmer's Reference (www.4front-tech.com)
      states:
      
      *Setting Sampling Parameters
      
      There are three parameters which affect the sound
      quality (and therefore memory and bandwidth
      requirements) of sampled audio data. These are:
      
      ** sample format (sometimes called number of bits)
      ** number of channels (mono or stereo), and
      ** sampling rate (speed)
      
      NOTE:
      
      It is important to always set these parameters in the
      above order. Setting sampling rate before the number
      of channels doesn't work with all devices.
      7745218c
  5. 02 Nis, 2001 1 kayıt (commit)
    • Guido van Rossum's avatar
      Applying SF patch #412553 by Christopher Lee: fix linuxaudiodev · f5bd6843
      Guido van Rossum yazdı
      handling of EAGAIN.
      
      This may or may not fix the problem for me (Mandrake 7.2 on a Dell
      Optiplex GX110 desktop): I can't hear the output, but it does pass the
      test now.  It doesn't fix the problem for Fred (Mandrake 7.2 on a Dell
      Inspiron 7500 which has the Maestro sound drivers).  Fred suspects
      that it's the kernel version in combination with the driver.
      f5bd6843
  6. 17 Ock, 2001 1 kayıt (commit)
  7. 15 Ock, 2001 1 kayıt (commit)
  8. 08 Eki, 2000 1 kayıt (commit)
  9. 06 Eki, 2000 1 kayıt (commit)
    • Jeremy Hylton's avatar
      test_linuxaudio: · e2b7c4de
      Jeremy Hylton yazdı
          read the header from the .au file and do a sanity check
          pass only the data to the audio device
          call flush() so that program does not exit until playback is complete
          call all the other methods to verify that they work minimally
          call setparameters with a bunch of bugs arguments
      
      linuxaudiodev.c:
          use explicit O_WRONLY and O_RDONLY instead of 1 and 0
          add a string name to each of the entries in audio_types[]
          add AFMT_A_LAW to the list of known formats
          add x_mode attribute to lad object, stores imode from open call
          test ioctl return value as == -1, not < 0
          in read() method, resize string before return
          add getptr() method, that calls does ioctl on GETIPTR or GETOPTR
              depending on x_mode
          in setparameters() method, do better error checking and raise
              ValueErrors; also use ioctl calls recommended by Open Sound
              System Programmer's Guido (www.opensound.com)
          use PyModule_AddXXX to define names in module
      e2b7c4de
  10. 01 Eyl, 2000 2 kayıt (commit)
  11. 31 Agu, 2000 1 kayıt (commit)
  12. 18 Agu, 2000 1 kayıt (commit)
  13. 21 Tem, 2000 1 kayıt (commit)
    • Thomas Wouters's avatar
      Bunch of minor ANSIfications: 'void initfunc()' -> 'void initfunc(void)', · f3f33dcf
      Thomas Wouters yazdı
      and a couple of functions that were missed in the previous batches. Not
      terribly tested, but very carefully scrutinized, three times.
      
      All these were found by the little findkrc.py that I posted to python-dev,
      which means there might be more lurking. Cases such as this:
      
      long
      func(a, b)
      	long a;
      	long b; /* flagword */
      {
      
      and other cases where the last ; in the argument list isn't followed by a
      newline and an opening curly bracket. Regexps to catch all are welcome, of
      course ;)
      f3f33dcf
  14. 11 Tem, 2000 1 kayıt (commit)
  15. 08 Tem, 2000 1 kayıt (commit)
  16. 03 May, 2000 1 kayıt (commit)
    • Guido van Rossum's avatar
      Vladimir Marangozov's long-awaited malloc restructuring. · b18618da
      Guido van Rossum yazdı
      For more comments, read the patches@python.org archives.
      For documentation read the comments in mymalloc.h and objimpl.h.
      
      (This is not exactly what Vladimir posted to the patches list; I've
      made a few changes, and Vladimir sent me a fix in private email for a
      problem that only occurs in debug mode.  I'm also holding back on his
      change to main.c, which seems unnecessary to me.)
      b18618da
  17. 31 Mar, 2000 1 kayıt (commit)
  18. 30 Mar, 2000 1 kayıt (commit)