William McBrine
d75af9836e
Table markdown for "Portability" sections
2025-02-18 22:37:31 -05:00
William McBrine
3c67ce4471
Adding the NetBSD functions reminded me how outdated the "Portability"
...
tables were. Hopefully this is more useful, if still questionable.
2019-05-12 18:35:47 -04:00
William McBrine
a0b7d587c1
Inconsistent line wrap length and spacing in "man page" descriptions.
2019-05-11 20:34:11 -04:00
William McBrine
4a15672341
Rebranding -- it's still public domain, but I'll no longer refer to it
...
as "Public Domain Curses". (Outside of the official docs, no one ever
did, anyway.)
2019-01-30 15:32:02 -05:00
William McBrine
9759362144
Added a half-assed explanation of vwprintw() vs. vw_printw(). I don't
...
really want to go into it.
2019-01-21 11:58:14 -05:00
William McBrine
cb7d82fc4b
Man page sections reformatted slightly, markdown-style.
2016-01-07 10:44:04 -05:00
William McBrine
51fec8ee32
Id tags aren't useful with git.
2015-06-20 09:06:43 -04:00
William McBrine
649d5171fa
Abandoning tabs, and changing indent to 4 spaces -- part 1.
2008-07-13 16:08:18 +00:00
William McBrine
bdc31fad97
Removed maintain.er and boilerplate; integrated contents into README;
...
replaced boilerplate with "Public Domain Curses", which covers both the
name and the (lack of) copyright status. :-)
2008-07-13 06:36:32 +00:00
William McBrine
902553ba67
Include config.h only from curspriv.h. Hopefully this will facilitate
...
moving it in the future...
2007-11-07 04:55:21 +00:00
William McBrine
65c53f035a
Move man page comment blocks to just after the RCSID.
2007-06-14 14:11:31 +00:00
William McBrine
a0ad37d420
Oops... can't have RCSID before including the file where the macro is
...
defined!
2007-06-14 13:50:28 +00:00
William McBrine
8f80d32951
Changed RCSIDs to not end with a semicolon -- avoids warnings with
...
-pedantic. Also, as long as I'm changing them, I decided to move them
all to just below the boilerplate, to have them in a more consistent
location.
2007-06-14 13:36:36 +00:00
William McBrine
3d8eea8473
Documentation: Removed the distinction between "X/Open Description" and
...
"PDCurses Description"; various cleanup. The new policy is simply to
describe PDCurses' behavior; if anyone wants the canonical descriptions
(which these weren't, anyway), they can refer to X/Open directly.
2007-03-16 06:33:45 +00:00
William McBrine
65754acd63
Spacing -- made man page header consistent.
2006-12-25 14:27:13 +00:00
William McBrine
9790346bd3
Replaced "win == (WINDOW *)NULL" with "!win", etc. These were not used
...
consistently and, IMHO, are no more clear. To Do: Platform dirs.
2006-11-05 03:57:26 +00:00
William McBrine
b83a8af26f
Reordered functions -- if there's a core function, it goes at the top;
...
others below arranged by group. Use "%p" instead of "%x" for pointers.
Made man page prototypes match functions.
2006-11-04 12:59:03 +00:00
William McBrine
a3d640534b
Updated portability charts (removed "'88", flagged functions as Y in
...
X/Open column if they're in the current (1996) standard); removed
comments about macro implementation where no longer applicable.
2006-10-23 05:03:31 +00:00
William McBrine
1914c543c0
Dropped the "No distribution..." clause. It was widely violated anyway.
...
I only kept it in 2.8, rewriting it to mention trademark, to make it
clear that PDCurses was always public domain, despite the seemingly
contradictory wording in the boilerplate, and that trademark (not
copyright) was the only basis for restricting distribution in this case.
But I don't want to be like the Mozilla Foundation.
2006-10-15 02:42:26 +00:00
William McBrine
b228b60eea
Instead of defining CURSES_LIBRARY to include curspriv.h, include
...
curses.h (and define CURSES_LIBRARY) from curspriv.h. Also created
pdcwin.h, and moved some things there.
2006-10-08 20:54:30 +00:00
William McBrine
7f5298a7fa
Removed most macros -- all those covered by NOMACROS, plus get..y and
...
get..x. Also added getcury() and getcurx() functions. There were
numerous problems with the macros (poor maintainability, interference
with namespaces, bloated executables, etc.), and only one supposed
advantage: performance. Testing (even on a simulated 4 MHz machine) does
not show this advantage. The function call overhead is trivial compared
to other bottlenecks. The only other reason to keep them would be
tradition... and the faint possibility that someone, somewhere is
ifdef'ing off them (the same problem that undid my attempted enums). But
in this case, I really doubt it. Note that Larsson's Pccurses didn't use
the macros; comments by Frotz suggest he added them to conform to the
standard, but they aren't required by issue 4 version 2 (while the
functions are).
2006-09-24 21:22:33 +00:00
William McBrine
168e66f674
These functions are never defined as macros.
2006-08-20 21:48:36 +00:00
William McBrine
34f6b6d2ae
Useless comments.
2006-07-15 15:38:24 +00:00
William McBrine
8453b89ce2
New RCSID macro for RCS id strings; also added RCS id comments to the
...
remaining .h files. Note that the RCS ids are now static per module and
all have the same name.
2006-03-29 20:06:41 +00:00
William McBrine
de56ac93f8
Need to include config.h again.
2006-03-11 06:23:16 +00:00
William McBrine
4865dcc859
if -> ifdef, just for consistency.
2006-03-11 03:47:27 +00:00
William McBrine
d8379edab0
Use vsnprintf() when possible. To Do: Add it for the non-configure
...
builds.
2006-03-11 03:45:35 +00:00
William McBrine
d187b18759
Added const to *printw(). This is not in the standard, but I can see no
...
logical reason not to do it, and it's done by several other curses
implementations. To Do: *scanw(); but that will require altering
PDC_vsscanf() first, or removing it.
2006-02-27 08:38:14 +00:00
William McBrine
e5921a8c88
Formatting -- mainly shortening the man-start and man-end lines to match
...
the boilerplate box.
2006-02-23 01:46:54 +00:00
William McBrine
aff031cf7b
New format for the boilerplate; other formatting. Yes, I'm probably
...
spending too much time on this.
2006-02-22 06:09:47 +00:00
William McBrine
6e07b01950
Simplified and (hopefully) clarified the boilerplate.
2006-02-16 22:59:50 +00:00
William McBrine
b0ecceeae5
Removed PDC_CDECL. It was used only in Watcom/Win32, and that, only in
...
2.7 (it was commented out previously). I tried all combinations of the
supported Win32 compilers, and could not get any one to build binaries
against another's libraries, except LCC against MSVC libs (even the
reverse didn't work) -- and that didn't even involve cdecl. It's
possible this could be made to work, but clearly it will involve a lot
more than just PDC_CDECL. Meanwhile, it's... well, really ugly. So I'm
dumping it, and just advise you to build PDCurses with the same compiler
you use to build your app -- as far as I can tell, that's the only way
that's ever worked anyway.
2006-02-08 17:40:33 +00:00
William McBrine
57b7cd5403
Inclusion of config.h no longer needed here.
2006-02-06 01:13:18 +00:00
William McBrine
5a9c907701
Spacing on "Portability" sections. To Do: Update these for X/Open '96.
2006-01-30 12:17:18 +00:00
William McBrine
f370f911cc
"const" on rcsid tag strings, and break them after the equal sign to
...
keep them within 80 chars. Added rcsid to the X modules.
2006-01-30 02:10:55 +00:00
William McBrine
62b6ff87e3
Removed lines of asterisks from function headers; made spacing more
...
consistent; minor code cleanups.
2006-01-28 19:31:00 +00:00
William McBrine
b00304ab9f
More boilerplate reformatting.
2006-01-28 15:01:41 +00:00
William McBrine
56cce59ec7
Abandon non-stdarg code (it didn't work right). May as well abandon all
...
non-ANSI code now.
2006-01-28 14:51:16 +00:00
William McBrine
46c9e97efc
Per the spec, non-macro implementations for COLOR_PAIR(), PAIR_NUMBER(),
...
getbkgd(), mvgetnstr(), mvwgetnstr(), vw_printw(), and vw_scanw().
2006-01-27 18:41:37 +00:00
William McBrine
30337ac0d7
Replaced global c_printscanbuf with local buffers in vwprintw() and
...
vwscanw(); also, minor formatting.
2006-01-25 14:32:35 +00:00
William McBrine
e5c55b4eed
Added vwprintw() and vwscanw(); added macros for vw_printw and vw_scanw;
...
reworked other functions to use these. THESE are the last of the
non-attr_t, non-widechar functions from the standard, and I really mean
it this time.
2006-01-25 13:41:35 +00:00
William McBrine
1d49f9a31b
Redundant stdarg includes and defines (these are in curspriv.h).
2006-01-15 23:17:35 +00:00
William McBrine
ecdbfeb380
Reversing myself -- I had changed all move()'s to wmove(stdscr) (and
...
some already were that way), but it's no more direct, and move() is one
less parameter.
2006-01-14 06:42:03 +00:00
William McBrine
a611ccb3e5
Eliminated some redundant code; minor formatting changes. Also, some
...
routines accessed window structures in their variable declarations,
_before_ checking for a NULL window pointer.
2006-01-13 01:17:59 +00:00
William McBrine
ec5a8f3efb
Mostly formatting. Removed some cruft and dead code. Fixed a few minor
...
bugs. Hopefully didn't introduce any. :-)
2006-01-06 10:32:16 +00:00
William McBrine
1514521e2c
Replaced "if (trace_on) PDC_debug()" calls and surrounding ifdefs with
...
PDC_LOG() macro, just for neatness' sake. (First post-2.7 change.)
2006-01-03 07:34:43 +00:00
Mark Hessling
6b507fc980
Initial revision
2001-01-10 08:31:57 +00:00