delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1999/01/06/04:38:07

Date: Wed, 6 Jan 1999 11:37:41 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Martin Str|mberg <ams AT ludd DOT luth DOT se>
cc: DJGPP-WORKERS <djgpp-workers AT delorie DOT com>
Subject: Re: Function names
In-Reply-To: <199901051807.TAA20966@father.ludd.luth.se>
Message-ID: <Pine.SUN.3.91.990106113718.8103O-100000@is>
MIME-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com

On Tue, 5 Jan 1999, Martin Str|mberg wrote:

> How many underscores should my two new functions begin with? What is
> the rule?

ANSI says that anything that begins with an underscore can be used by
the library implementation for internal purposes.  So one underscore
is enough.

I believe the DJGPP practice is to have one underscore on functions
that an application might want to call, and two underscores for
functions that aren't supposed to be called directly by application
code.

DJ, is that right?  I don't think it's written anywhere, but the
pattern seems consistent.

Hmm, the `__dpmi_...' functions seem to be one exception from this
rule.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019