Commit Graph

  • ee138c0ddd These DISPLAY_* macro definitions are redundant, at least with Open Watcom 1.3. (And since it's a free compiler, I don't mind forcing people to upgrade.) William McBrine 2006-01-29 15:17:51 +00:00
  • b4df62c45c Formatting. William McBrine 2006-01-29 11:48:48 +00:00
  • 6e112a9e61 ANSIfied, formatted. William McBrine 2006-01-28 22:08:06 +00:00
  • 97c0d9b9d6 All ANSI platforms have memmove(); and memory.h is used (for now) only in DOS. William McBrine 2006-01-28 19:35:22 +00:00
  • 62b6ff87e3 Removed lines of asterisks from function headers; made spacing more consistent; minor code cleanups. William McBrine 2006-01-28 19:31:00 +00:00
  • add8dc21fd With ANSI as the new base requirement, PDC_memmove() is unneeded (memmove() is ANSI), and memory.h is _probably_ unneeded -- still have to check the 16-bit DOS compilers. William McBrine 2006-01-28 18:19:51 +00:00
  • a7a4b02a07 Removed lines of asterisks from function headers; made spacing consistent; updated build number. William McBrine 2006-01-28 17:41:25 +00:00
  • 1ebfbe37ef Removed non-ANSI prototypes and HAVE_PROTO. William McBrine 2006-01-28 16:53:26 +00:00
  • f70d43c751 Turn HAVE_PROTO on always, preparatory to removing it. William McBrine 2006-01-28 15:02:15 +00:00
  • b00304ab9f More boilerplate reformatting. William McBrine 2006-01-28 15:01:41 +00:00
  • 56cce59ec7 Abandon non-stdarg code (it didn't work right). May as well abandon all non-ANSI code now. William McBrine 2006-01-28 14:51:16 +00:00
  • c8d9143752 getsyx(), setsyx() -> macros only; macros -> 80 columns; other macro rearrangement. (cbreak() etc. macros were in an ifdef XCURSES section; this was a relic from the UNIX port, and never actually should've been applied to XCURSES.) William McBrine 2006-01-28 14:36:42 +00:00
  • 1d731a7b7a Formatting -- mainly, minor changes to the boilerplate box. William McBrine 2006-01-28 13:27:23 +00:00
  • 39d3ea464e Formatting. William McBrine 2006-01-28 12:52:36 +00:00
  • 4e7e074e9b Use getbegyx and getmaxyx instead of the individual x/y macros. getmaxyx is very slightly less efficient in this case, but now panel.c uses only standard macros. William McBrine 2006-01-28 10:28:59 +00:00
  • a2ea8cdef3 Rearranged macros, removed a few; updated build number. William McBrine 2006-01-28 01:23:38 +00:00
  • bcc1deea16 Another place to include stdlib.h. (Why on Earth does this only show up on my Mac?) William McBrine 2006-01-28 00:25:05 +00:00
  • eb6505ba4c Declarations for all standard functions, per the specs, with the notable exception of getch() and ungetch(). William McBrine 2006-01-27 21:42:46 +00:00
  • 46c9e97efc Per the spec, non-macro implementations for COLOR_PAIR(), PAIR_NUMBER(), getbkgd(), mvgetnstr(), mvwgetnstr(), vw_printw(), and vw_scanw(). William McBrine 2006-01-27 18:41:37 +00:00
  • 7b00053f56 Formatting, redundant code. William McBrine 2006-01-27 16:18:00 +00:00
  • 5c596fe1d4 mvhline(), mvvline(), mvwhline(), and mvwvline() functions; redundant code; formatting. William McBrine 2006-01-27 15:03:37 +00:00
  • 37cf96dc5b isendwin() returns bool. William McBrine 2006-01-27 04:43:59 +00:00
  • 085498dd05 Not-quite-accurate comment; no need for PDC_curs_set() in curses.h; formatting. William McBrine 2006-01-26 21:00:18 +00:00
  • b14843cd8a Arranged function blocks by the standards they conform to. To Do: Elaborate on the comments for each block. William McBrine 2006-01-26 20:50:41 +00:00
  • be0089660c Per the spec, slk_attr*() take a const chtype. Seems pointless, but harmless. Also, I moved the non-standard functions to the blocks below the standard ones. William McBrine 2006-01-26 20:31:23 +00:00
  • 91d1462ae0 pair_content() takes a short. William McBrine 2006-01-26 19:56:25 +00:00
  • 9e896cfa98 Bogus return values, since these are now void. William McBrine 2006-01-26 19:44:39 +00:00
  • 7507b75a34 The attr_t type is supposed to be used for WA_*-style attributes, but PDCurses was using it for A_*-style attributes, which really belong in a chtype. So before we can start using attr_t correctly, we need to stop using it incorrectly. It would be nice to maintain the distinction between functions that accept both attribute and character info, and those that only want attribute info; but this isn't the way. Note that in the standard, int is often used instead, where PDCurses was using attr_t; but that assumes that int and chtype are the same size -- not always true for PDCurses. I'd also like to redefine attr_t as a short (it only needs to cover 15 flags), but for the sake of backwards compatibility, I think I'd better keep it the same as chtype. :-( William McBrine 2006-01-26 19:40:48 +00:00
  • 5be2e6a9d5 Minor formatting. William McBrine 2006-01-26 18:35:25 +00:00
  • 9b10196ddc [w]timeout() is supposed to return void. William McBrine 2006-01-26 18:28:48 +00:00
  • 88218055ce Per the standard, idcok() and immedok() return void. Why the difference between these and, say, idlok()? Beats me. William McBrine 2006-01-26 18:07:08 +00:00
  • ff5ab99732 can_change_color() returns bool, not int. William McBrine 2006-01-26 17:55:00 +00:00
  • 04306eab4d Unneeded include of memory.h. William McBrine 2006-01-25 14:53:23 +00:00
  • 30337ac0d7 Replaced global c_printscanbuf with local buffers in vwprintw() and vwscanw(); also, minor formatting. William McBrine 2006-01-25 14:32:35 +00:00
  • c40895fafb New build number. William McBrine 2006-01-25 13:45:47 +00:00
  • 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. William McBrine 2006-01-25 13:41:35 +00:00
  • 3a4cf27d80 DJGPP, MinGW and Cygnus have vsscanf(). William McBrine 2006-01-24 07:05:58 +00:00
  • 19d71cd82e Combined redundant include os2.h sections. William McBrine 2006-01-24 06:21:40 +00:00
  • 97afefcab4 stdlib.h and string.h are already included where needed; NO_VSSCANF is an error. William McBrine 2006-01-24 05:48:18 +00:00
  • 94d853f58d PDCURSES is defined at the top, so this ifdef is not useful. I guess the intent was to mark these as PDCurses-specific? But a comment would be better for that. William McBrine 2006-01-23 22:34:50 +00:00
  • 4334202faa The printw() and scanw() family functions are built with or without HAVE_STDARG_H, so there's no reason to ifdef the declarations here. William McBrine 2006-01-23 22:30:56 +00:00
  • dced87d290 Comments, useless ifdef. William McBrine 2006-01-23 22:23:11 +00:00
  • 9645721eae Formatting, comments, changed "waitingtenths" to "waitcount" -- it counts twentieths, not tenths. William McBrine 2006-01-23 12:36:21 +00:00
  • 5920be55d6 Formatting -- mostly replacing spaces with tabs. It's amazing how many bytes this saves. Also updated build number. William McBrine 2006-01-23 11:19:08 +00:00
  • 35588b342f PDC_split_plane() is no longer used. William McBrine 2006-01-23 00:37:48 +00:00
  • 9180632209 Formatting. William McBrine 2006-01-22 21:48:23 +00:00
  • 1c53c35238 Moved history from header files to HISTORY. To Do: Incorporate contents of readme.2* files. William McBrine 2006-01-22 20:51:44 +00:00
  • 9fba8c4139 Incorrect prototype PDC_chg_attr() -> PDC_chg_attrs(). William McBrine 2006-01-22 20:36:39 +00:00
  • de468bd940 c_strbeg, PDC_backchar(), PDC_chg_attr_pair() not used. William McBrine 2006-01-22 20:34:30 +00:00
  • bd460a11fb "twin" has not been used since 2.1. William McBrine 2006-01-22 20:28:05 +00:00
  • 62691de292 XCURSCR macros from curspriv.h to x11/pdcx11.h. William McBrine 2006-01-22 20:22:08 +00:00
  • bf74b0a400 Formatting, redundant and dead code. William McBrine 2006-01-22 19:57:12 +00:00
  • f7d99d404d New build number (overdue). William McBrine 2006-01-20 01:43:06 +00:00
  • 64a00d3759 _NO_CHANGE is -1, so x will always be greater, and a separate test is not needed. Which makes it asymmetrical; and to depend on the known value of a define defeats the purpose of using a define; so I'd test it anyway, but this is a critical performance section. William McBrine 2006-01-18 19:40:08 +00:00
  • 54a90a9851 Simplified waddchnstr(). William McBrine 2006-01-18 19:30:22 +00:00
  • 2ce114d4df Unused. William McBrine 2006-01-18 09:49:32 +00:00
  • 5b0598806c Maximum compression for the precompiled binaries. William McBrine 2006-01-18 08:47:05 +00:00
  • 1377347fca Maximum compression for dist and zip targets. William McBrine 2006-01-18 02:36:49 +00:00
  • 36af46cba8 The icon data was duplicated in the .xbm files and in pdcx11.c; now, it's just the .xbms. Also, I renamed the .xbms for consistency with the internal labels, which are now based on what used to be in pdcx11.c. William McBrine 2006-01-18 01:16:27 +00:00
  • 19dca714bf wccos2.lrf is not needed. William McBrine 2006-01-18 00:00:28 +00:00
  • 016cb8887a Not needed. William McBrine 2006-01-17 23:53:39 +00:00
  • eb9e22156d wccwin32.lrf is not needed. William McBrine 2006-01-17 23:53:11 +00:00
  • 1976f6f35d Formatting, redundant code. William McBrine 2006-01-17 22:29:07 +00:00
  • 1d49f9a31b Redundant stdarg includes and defines (these are in curspriv.h). William McBrine 2006-01-15 23:17:35 +00:00
  • bdb665c8a0 Combined redundant include windows.h/undef MOUSE_MOVE sections. William McBrine 2006-01-15 22:50:46 +00:00
  • 540136eb22 Changed description of WIN32 define -- more generic, less pejorative. William McBrine 2006-01-15 21:38:03 +00:00
  • dd2e359043 FAST_VIDEO was used inconsistently -- some direct memory references were made without it. To Do: The checks (including the missing ones) could be performed at runtime instead, based on SP->direct_video. This might make BIOS mode more portable. William McBrine 2006-01-15 18:36:58 +00:00
  • 17d33eb901 Unneeded references to FAST_VIDEO. To Do: INT_MAX is not necessarily the best return value for baudrate(), although it's probably better than 19200 (which was being used for all ports except DOS). William McBrine 2006-01-15 18:20:24 +00:00
  • 7b819a0f36 stdio.h is already included by curses.h. (But I'm not doing the demos, just in case there's an implementation out there that doesn't include stdio.h in curses.h -- they should be as portable as possible.) William McBrine 2006-01-15 18:03:33 +00:00
  • fb84bc6a1d Another inconsistent include -- limits.h was ifdef'ed in pdcutil.c, but included unconditionally in termattr.c. Since this means that PDCurses already wouldn't build on systems without limits.h, I may as well chuck the ifdef. (I might feel differently if it weren't for the fact that limits.h is one of the ANSI headers, and I'm increasingly leaning towards ANSI as a minimum requirement. As it is, I doubt there are many non-ANSI compilers that could build it.) William McBrine 2006-01-15 17:53:21 +00:00
  • 7ac3ecf073 Don't need A_ALTCHARSET on the > 32 ACS defines for XCurses. William McBrine 2006-01-15 17:30:28 +00:00
  • 842b791d2b AFAICT, acs_map is a relic of the aborted Unix port, and is not needed for XCurses. William McBrine 2006-01-15 11:21:40 +00:00
  • 41288d88c1 Simplified ball initialization. William McBrine 2006-01-15 10:56:57 +00:00
  • d03d570731 Centered menu and ACS test. William McBrine 2006-01-15 09:21:17 +00:00
  • ac171be98c Added support for PgUp, PgDn, Home, and End. William McBrine 2006-01-15 07:50:46 +00:00
  • b91b75b393 Added new test: ACS character display. (Idea, but not code, from ncurses.) William McBrine 2006-01-15 07:37:31 +00:00
  • 2fa226f1b8 Scratch that -- I can't make it work consistently across fonts. Argh. William McBrine 2006-01-14 08:47:09 +00:00
  • dd2744c637 Make ACS_BLOCK display as a space with A_REVERSE in XCurses. (If A_REVERSE is already set on the chtype, it becomes a plain space with no reversal.) William McBrine 2006-01-14 08:32:29 +00:00
  • 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. William McBrine 2006-01-14 06:42:03 +00:00
  • 3c801a621d Formatting. William McBrine 2006-01-14 06:29:37 +00:00
  • 0ab2b20dd2 Fix for demos under Borland 4 -- it may link with the wrong model unless the correct one is specified. Reported by Erwin Waterlander. William McBrine 2006-01-14 02:47:52 +00:00
  • 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. William McBrine 2006-01-13 01:17:59 +00:00
  • 1a91a15740 CPLUSPLUS was defined (for Borland and DJGPP only) and then not used, anywhere -- not even for the extern "C" brackets. William McBrine 2006-01-12 07:34:09 +00:00
  • 7eb32fbef8 CURSES__32BIT__ is used only in the OS/2 port. Also, minor formatting changes. William McBrine 2006-01-12 07:23:54 +00:00
  • ef7c98ea3f string.h was freely included in many modules, so it seems pointless to ifdef it in others. (I could've gone the other way with this -- adding the ifdef where absent -- but I don't know what it would achieve. More support for those hypothetical pre-ANSI compilers?) William McBrine 2006-01-12 06:56:25 +00:00
  • 04950b45c6 Include stdlib.h only when necessary, not as part of curses.h. William McBrine 2006-01-12 06:45:43 +00:00
  • 0fdd3f4c1c done() is another relic of the looping version. William McBrine 2006-01-12 00:56:46 +00:00
  • fb5527cbe0 Obsolete comments about looping. More comment changes would be good. William McBrine 2006-01-12 00:32:20 +00:00
  • f30d9c8d1f HAVE_PROTO and non-ANSI declarations are used inconsistently. They're particularly sparse in the os2 and win32 directories, and probably safe to eliminate there. William McBrine 2006-01-12 00:20:14 +00:00
  • c70cb448d3 In the PDC_PRESERVE_SCREEN section, the current screen info was read, but nothing was done with it. (Equivalent code is now part of the PDC_RESTORE_SCREEN section, where that data is actually used.) William McBrine 2006-01-12 00:05:30 +00:00
  • 32fd15353e Formatting, cruft, dead code. Finally done. William McBrine 2006-01-11 23:19:53 +00:00
  • 167ec3d92b Removed outdated version numbers. William McBrine 2006-01-11 08:22:07 +00:00
  • f7380f324a Formatting, cruft. William McBrine 2006-01-11 08:15:47 +00:00
  • e4e27e2581 Formatting, cruft. William McBrine 2006-01-11 07:54:19 +00:00
  • 319ab8c51e New build number. I aim to do this every week or so, as long as it's been updated. William McBrine 2006-01-11 06:48:24 +00:00
  • ba9d6a46be Formatting, cruft, dead code. Also, I changed the default name from "main" to "PDCurses". I can't quite decide between that and "XCurses", but either is better than "main". William McBrine 2006-01-11 06:46:25 +00:00
  • d5860c11a4 Formatting, cruft, dead code. More to do in this regard. Re: formatting, my main aim is consistency. Several indenting styles were in use in different sections of the code, depending on the author and the time it was written. Also, I like my code to fit in 80 columns where practical. William McBrine 2006-01-08 11:53:43 +00:00
  • 3fde95d3f0 Formatting, cruft, dead code. William McBrine 2006-01-07 02:53:25 +00:00
  • ec5a8f3efb Mostly formatting. Removed some cruft and dead code. Fixed a few minor bugs. Hopefully didn't introduce any. :-) William McBrine 2006-01-06 10:32:16 +00:00
  • 585d7a1e86 Spacing. William McBrine 2006-01-06 10:23:28 +00:00