1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-01 03:22:48 -05:00

Update source file names in comments and docs.

Correcting a source file name in the docs just now reminded me that
I've seen a lot of outdated source file names elsewhere in the code,
due to all the reorganisation since we moved to cmake. Here's a giant
pass of trying to make them all accurate again.
This commit is contained in:
Simon Tatham
2022-01-22 15:38:53 +00:00
parent 81391e3f23
commit 5935c68288
68 changed files with 196 additions and 196 deletions

View File

@ -1,5 +1,5 @@
/*
* wincfg.c - the Windows-specific parts of the PuTTY configuration
* config.c - the Windows-specific parts of the PuTTY configuration
* box.
*/

View File

@ -1,5 +1,5 @@
/*
* wincons.c - various interactive-prompt routines shared between
* console.c - various interactive-prompt routines shared between
* the Windows console PuTTY tools
*/

View File

@ -1,5 +1,5 @@
/*
* winctrls.c: routines to self-manage the controls in a dialog
* controls.c: routines to self-manage the controls in a dialog
* box.
*/

View File

@ -1,5 +1,5 @@
/*
* windlg.c - dialogs for PuTTY(tel), including the configuration dialog.
* dialog.c - dialogs for PuTTY(tel), including the configuration dialog.
*/
#include <stdio.h>

View File

@ -1,5 +1,5 @@
/*
* winhandl.c: Module to give Windows front ends the general
* handle-io.c: Module to give Windows front ends the general
* ability to deal with consoles, pipes, serial ports, or any other
* type of data stream accessed through a Windows API HANDLE rather
* than a WinSock SOCKET.

View File

@ -17,7 +17,7 @@
* thread as blocking system calls and so once one is in progress it
* can't sensibly be interrupted. Hence, after the user tries to
* freeze one of these sockets, it's unavoidable that we may receive
* one more load of data before we manage to get winhandl.c to stop
* one more load of data before we manage to get handle-io.c to stop
* reading.
*/
typedef enum HandleSocketFreezeState {
@ -82,7 +82,7 @@ static size_t handle_gotdata(
if (hs->frozen == FREEZING) {
/*
* If we've received data while this socket is supposed to
* be frozen (because the read winhandl.c started before
* be frozen (because the read handle-io.c started before
* sk_set_frozen was called has now returned) then buffer
* the data for when we unfreeze.
*/
@ -248,7 +248,7 @@ static void sk_handle_set_frozen(Socket *s, bool is_frozen)
case THAWING:
/*
* We were in the middle of emptying our bufchain, and got
* frozen again. In that case, winhandl.c is already
* frozen again. In that case, handle-io.c is already
* throttled, so just return to FROZEN state. The toplevel
* callback will notice and disable itself.
*/

View File

@ -1,5 +1,5 @@
/*
* winhelp.c: centralised functions to launch Windows HTML Help files.
* help.c: centralised functions to launch Windows HTML Help files.
*/
#include <stdio.h>

View File

@ -1,5 +1,5 @@
/*
* winjump.c: support for Windows 7 jump lists.
* jump-list.c: support for Windows 7 jump lists.
*
* The Windows 7 jumplist is a customizable list defined by the
* application. It is persistent across application restarts: the OS

View File

@ -1,6 +1,6 @@
/*
* winproxy.c: Windows implementation of platform_new_connection(),
* supporting an OpenSSH-like proxy command via the winhandl.c
* local-proxy.c: Windows implementation of platform_new_connection(),
* supporting an OpenSSH-like proxy command via the handle-io.c
* mechanism.
*/

View File

@ -38,11 +38,11 @@ HANDLE connect_to_named_pipe(const char *pipename, char **err)
}
/*
* If we got ERROR_PIPE_BUSY, wait for the server to
* create a new pipe instance. (Since the server is
* expected to be winnps.c, which will do that immediately
* after a previous connection is accepted, that shouldn't
* take excessively long.)
* If we got ERROR_PIPE_BUSY, wait for the server to create a
* new pipe instance. (Since the server is expected to be
* named-pipe-server.c, which will do that immediately after a
* previous connection is accepted, that shouldn't take
* excessively long.)
*/
if (!WaitNamedPipe(pipename, NMPWAIT_USE_DEFAULT_WAIT)) {
*err = dupprintf(

View File

@ -1,6 +1,6 @@
/*
* winnojmp.c: stub jump list functions for Windows executables that
* don't update the jump list.
* no-jump-list.c: stub jump list functions for Windows executables
* that don't update the jump list.
*/
void add_session_to_jumplist(const char * const sessionname) {}

View File

@ -1,6 +1,6 @@
/*
* nohelp.c: implement the has_embedded_chm() function for
* applications that have no help file at all, so that misc.c's
* applications that have no help file at all, so that buildinfo.c's
* buildinfo string knows not to talk meaninglessly about whether the
* nonexistent help file is present.
*/

View File

@ -187,7 +187,8 @@ static void end_passphrase_dialog(HWND hwnd, INT_PTR result)
} else {
/*
* Destroy this passphrase dialog box before passing the
* results back to pageant.c, to avoid re-entrancy issues.
* results back to the main pageant.c, to avoid re-entrancy
* issues.
*
* If we successfully got a passphrase from the user, but it
* was _wrong_, then pageant_passphrase_request_success will
@ -828,7 +829,7 @@ static void update_sessions(void)
* communications. For backwards compatibility, and more particularly
* for compatibility with derived works of PuTTY still using the old
* Pageant client code, we accept it as an alternative to the one
* returned from get_user_sid() in winpgntc.c.
* returned from get_user_sid().
*/
PSID get_default_sid(void)
{

View File

@ -207,7 +207,7 @@ typedef void *Ssh_gss_name;
extern HINSTANCE hinst;
/*
* Help file stuff in winhelp.c.
* Help file stuff in help.c.
*/
void init_help(void);
void shutdown_help(void);
@ -217,7 +217,7 @@ void quit_help(HWND hwnd);
int has_embedded_chm(void); /* 1 = yes, 0 = no, -1 = N/A */
/*
* GUI seat methods in windlg.c, so that the vtable definition in
* GUI seat methods in dialog.c, so that the vtable definition in
* window.c can refer to them.
*/
SeatPromptResult win_seat_confirm_ssh_host_key(
@ -232,7 +232,7 @@ SeatPromptResult win_seat_confirm_weak_cached_hostkey(
void (*callback)(void *ctx, SeatPromptResult result), void *ctx);
/*
* Windows-specific clipboard helper function shared with windlg.c,
* Windows-specific clipboard helper function shared with dialog.c,
* which takes the data string in the system code page instead of
* Unicode.
*/
@ -242,7 +242,7 @@ void write_aclip(int clipboard, char *, int, bool);
/*
* On Windows, we send MA_2CLK as the only event marking the second
* press of a mouse button. Compare unix.h.
* press of a mouse button. Compare unix/platform.h.
*/
#define MULTICLICK_ONLY_EVENT 1
@ -278,14 +278,14 @@ void write_aclip(int clipboard, char *, int, bool);
"All Files (*.*)\0*\0\0\0")
/*
* Exports from winnet.c.
* Exports from network.c.
*/
/* Report an event notification from WSA*Select */
void select_result(WPARAM, LPARAM);
/* Enumerate all currently live OS-level SOCKETs */
SOCKET first_socket(int *);
SOCKET next_socket(int *);
/* Ask winnet.c whether we currently want to try to write to a SOCKET */
/* Ask network.c whether we currently want to try to write to a SOCKET */
bool socket_writable(SOCKET skt);
/* Force a refresh of the SOCKET list by re-calling do_select for each one */
void socket_reselect_all(void);
@ -295,7 +295,7 @@ SockAddr *sk_namedpipe_addr(const char *pipename);
const char *winsock_error_string(int error);
/*
* winnet.c dynamically loads WinSock 2 or WinSock 1 depending on
* network.c dynamically loads WinSock 2 or WinSock 1 depending on
* what it can get, which means any WinSock routines used outside
* that module must be exported from it as function pointers. So
* here they are.
@ -321,13 +321,13 @@ DECL_WINDOWS_FUNCTION(extern, int, select,
#endif
/*
* Implemented differently depending on the client of winnet.c, and
* called by winnet.c to turn on or off WSA*Select for a given socket.
* Implemented differently depending on the client of network.c, and
* called by network.c to turn on or off WSA*Select for a given socket.
*/
const char *do_select(SOCKET skt, bool enable);
/*
* Exports from winselgui.c and winselcli.c, each of which provides an
* Exports from select-{gui,cli}.c, each of which provides an
* implementation of do_select.
*/
void winselgui_set_hwnd(HWND hwnd);
@ -350,14 +350,14 @@ void setup_handle_socket(Socket *s, HANDLE send_H, HANDLE recv_H,
Socket *new_named_pipe_client(const char *pipename, Plug *plug); /* winnpc */
Socket *new_named_pipe_listener(const char *pipename, Plug *plug); /* winnps */
/* A lower-level function in winnpc.c, which does most of the work of
* new_named_pipe_client (including checking the ownership of what
* it's connected to), but returns a plain HANDLE instead of wrapping
* it into a Socket. */
/* A lower-level function in named-pipe-client.c, which does most of
* the work of new_named_pipe_client (including checking the ownership
* of what it's connected to), but returns a plain HANDLE instead of
* wrapping it into a Socket. */
HANDLE connect_to_named_pipe(const char *pipename, char **err);
/*
* Exports from winctrls.c.
* Exports from controls.c.
*/
struct ctlpos {
@ -372,7 +372,7 @@ struct ctlpos {
void init_common_controls(void); /* also does some DLL-loading */
/*
* Exports from winutils.c.
* Exports from utils.
*/
typedef struct filereq_tag filereq; /* cwd for file requester */
bool request_file(filereq *state, OPENFILENAME *of, bool preserve, bool save);
@ -422,7 +422,7 @@ struct dlgparam {
};
/*
* Exports from winctrls.c.
* Exports from controls.c.
*/
void ctlposinit(struct ctlpos *cp, HWND hwnd,
int leftborder, int rightborder, int topborder);
@ -547,13 +547,13 @@ void dp_add_tree(struct dlgparam *dp, struct winctrls *tree);
void dp_cleanup(struct dlgparam *dp);
/*
* Exports from wincfg.c.
* Exports from config.c.
*/
void win_setup_config_box(struct controlbox *b, HWND *hwndp, bool has_help,
bool midsession, int protocol);
/*
* Exports from windlg.c.
* Exports from dialog.c.
*/
void defuse_showwindow(void);
bool do_config(Conf *);
@ -566,7 +566,7 @@ void show_help(HWND hwnd);
HWND event_log_window(void);
/*
* Exports from winmisc.c.
* Exports from utils.
*/
extern DWORD osMajorVersion, osMinorVersion, osPlatformId;
void init_winver(void);
@ -610,7 +610,7 @@ struct unicode_data;
void init_ucs(Conf *, struct unicode_data *);
/*
* Exports from winhandl.c.
* Exports from handle-io.c.
*/
#define HANDLE_FLAG_OVERLAPPED 1
#define HANDLE_FLAG_IGNOREEOF 2
@ -661,12 +661,12 @@ char *agent_mutex_name(void);
char *agent_named_pipe_name(void);
/*
* Exports from winser.c.
* Exports from serial.c.
*/
extern const struct BackendVtable serial_backend;
/*
* Exports from winjump.c.
* Exports from jump-list.c.
*/
#define JUMPLIST_SUPPORTED /* suppress #defines in putty.h */
void add_session_to_jumplist(const char * const sessionname);
@ -675,12 +675,12 @@ void clear_jumplist(void);
bool set_explicit_app_user_model_id(void);
/*
* Exports from winnoise.c.
* Exports from noise.c.
*/
bool win_read_random(void *buf, unsigned wanted); /* returns true on success */
/*
* Extra functions in winstore.c over and above the interface in
* Extra functions in storage.c over and above the interface in
* storage.h.
*
* These functions manipulate the Registry section which mirrors the
@ -713,10 +713,10 @@ char *get_jumplist_registry_entries(void);
#define CLIPUI_DEFAULT_MOUSE CLIPUI_EXPLICIT
#define CLIPUI_DEFAULT_INS CLIPUI_EXPLICIT
/* In winmisc.c */
/* In utils */
char *registry_get_string(HKEY root, const char *path, const char *leaf);
/* In wincliloop.c */
/* In cliloop.c */
typedef bool (*cliloop_pre_t)(void *vctx, const HANDLE **extra_handles,
size_t *n_extra_handles);
typedef bool (*cliloop_post_t)(void *vctx, size_t extra_handle_index);

View File

@ -1,6 +1,6 @@
/*
* security-api.h: some miscellaneous security-related helper functions,
* defined in winsecur.c, that use the advapi32 library. Also
* defined in utils/security.c, that use the advapi32 library. Also
* centralises the machinery for dynamically loading that library.
*/

View File

@ -1,5 +1,5 @@
/*
* Implementation of do_select() for winnet.c to use, suitable for use
* Implementation of do_select() for network.c to use, suitable for use
* when there's no GUI window to have network activity reported to.
*
* It uses WSAEventSelect, where available, to convert network

View File

@ -1,5 +1,5 @@
/*
* Implementation of do_select() for winnet.c to use, that uses
* Implementation of do_select() for network.c to use, that uses
* WSAAsyncSelect to convert network activity into window messages,
* for integration into a GUI event loop.
*/

View File

@ -1,5 +1,5 @@
/*
* winsftp.c: the Windows-specific parts of PSFTP and PSCP.
* sftp.c: the Windows-specific parts of PSFTP and PSCP.
*/
#include <winsock2.h> /* need to put this first, for winelib builds */

View File

@ -1,5 +1,5 @@
/*
* winstore.c: Windows-specific implementation of the interface
* storage.c: Windows-specific implementation of the interface
* defined in storage.h.
*/

View File

@ -1,6 +1,6 @@
/*
* Small implementation of Seat and LogPolicy shared between window.c
* and windlg.c.
* and dialog.c.
*/
typedef struct WinGuiSeat WinGuiSeat;
@ -11,4 +11,4 @@ struct WinGuiSeat {
LogPolicy logpolicy;
};
extern const LogPolicyVtable win_gui_logpolicy_vt; /* in windlg.c */
extern const LogPolicyVtable win_gui_logpolicy_vt; /* in dialog.c */

View File

@ -1,5 +1,5 @@
/*
* winx11.c: fetch local auth data for X forwarding.
* x11.c: fetch local auth data for X forwarding.
*/
#include <ctype.h>