[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-gnulib] addition: linebreak.h, linebreak.c
From: |
Bruno Haible |
Subject: |
Re: [Bug-gnulib] addition: linebreak.h, linebreak.c |
Date: |
Mon, 7 Apr 2003 13:17:00 +0200 (CEST) |
Paul Eggert writes:
> I generally omit the "extern " in declarations like that.
> "extern " adds nothing, and omitting it saves 7 columns.
I generally add the "extern " in declarations like that, for three
reasons:
* It makes it clear to the human reader that he should not expect the
implementation of the function in the same file.
* It makes declarations of variables and functions more consistent.
* It makes it easy to preprocess the file for use in Microsoft DLLs:
sed -e 's/extern /extern LIBXXX_DLL_EXPORTED /'
Bruno