all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: jasonr@btinternet.com
Cc: emacs-devel@gnu.org
Subject: RE: Need help with Windows implementation of play-sound
Date: Mon, 23 Sep 2002 09:31:25 +0100 (BST)	[thread overview]
Message-ID: <664979.1032769885981.JavaMail.root@127.0.0.1> (raw)

Please check the GNU coding standards (available as an info file from ftp.gnu.org) and where necessary change your layout and function/variable naming to match them. This will make less work if we decide to use your code.

>  from:    Ben Key <BenK@FreedomScientific.com>
>  date:    Sun, 22 Sep 2002 06:01:04
>  to:      Harald.Maier.BW@t-online.de
>  cc:      emacs-devel@gnu.org
>  subject: RE: Need help with Windows implementation of play-sound
> 
> Thanks.  I will try the change you suggested Monday.  If it works, I will
> attempt to gernerate a patch for Emacs that includes this and the changes to
> the make files, and send it to this list. 
> 
> -----Original Message-----
> From: Harald.Maier.BW@t-online.de
> To: Ben Key
> Cc: emacs-devel@gnu.org
> Sent: 9/21/02 5:34 AM
> Subject: Re: Need help with Windows implementation of play-sound
> 
> 
> Ben Key <BenK@FreedomScientific.com> writes:
> 
> > Can someone take a look at what I have done so far and give me a few 
> > pointers?
> 
> > {
> >   len=XSTRING(attrs[SOUND_FILE])->size;
> >   lpszFile=(char *)alloca(len 1);
> ...
> >   free(lpszFile);
> !!! remove that line !!!
> 
> >   unbind_to (count, Qnil);
> >   return Qnil;
> > }
> 
> You are using alloca so you don't have to call free. free is necessary
> by using malloc. The memory allocated by alloca will be automatically
> be freed by leaving the funciton.
> 
> I am very interested in testing this. 
> 
> Harald
> 
> 
> _______________________________________________
> Emacs-devel mailing list
> Emacs-devel@gnu.org
> http://mail.gnu.org/mailman/listinfo/emacs-devel

             reply	other threads:[~2002-09-23  8:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-23  8:31 jasonr [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-09-22  5:01 Need help with Windows implementation of play-sound Ben Key
2002-09-19 18:57 Ben Key
2002-09-19 18:53 Ben Key
2002-09-21  9:34 ` Harald.Maier.BW

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=664979.1032769885981.JavaMail.root@127.0.0.1 \
    --to=jasonr@btinternet.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.