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

Rename most of the platform source files.

This gets rid of all those annoying 'win', 'ux' and 'gtk' prefixes
which made filenames annoying to type and to tab-complete. Also, as
with my other recent renaming sprees, I've taken the opportunity to
expand and clarify some of the names so that they're not such cryptic
abbreviations.
This commit is contained in:
Simon Tatham
2021-04-23 06:19:05 +01:00
parent d9f217323e
commit f39c51f9a7
92 changed files with 127 additions and 124 deletions

View File

@ -2,7 +2,7 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
add_sources_from_current_dir(utils
utils/arm_arch_queries.c
utils/capi.c
utils/cryptoapi.c
utils/defaults.c
utils/dll_hijacking_protection.c
utils/dputs.c
@ -26,38 +26,38 @@ add_sources_from_current_dir(utils
utils/split_into_argv.c
utils/version.c
utils/win_strerror.c
winucs.c)
unicode.c)
if(NOT HAVE_STRTOUMAX)
add_sources_from_current_dir(utils utils/strtoumax.c)
endif()
add_sources_from_current_dir(eventloop
wincliloop.c winhandl.c)
cliloop.c handle-io.c)
add_sources_from_current_dir(console
winselcli.c winnohlp.c wincons.c)
select-cli.c nohelp.c console.c)
add_sources_from_current_dir(settings
winstore.c)
storage.c)
add_sources_from_current_dir(network
winnet.c winhsock.c winnpc.c winnps.c winproxy.c winx11.c)
network.c handle-socket.c named-pipe-client.c named-pipe-server.c local-proxy.c x11.c)
add_sources_from_current_dir(sshcommon
winnoise.c)
noise.c)
add_sources_from_current_dir(sshclient
winpgntc.c wingss.c winshare.c)
agent-client.c gss.c sharing.c)
add_sources_from_current_dir(sftpclient
winsftp.c)
sftp.c)
add_sources_from_current_dir(otherbackends
winser.c)
serial.c)
add_sources_from_current_dir(agent
winpgntc.c)
agent-client.c)
add_sources_from_current_dir(guiterminal
windlg.c winctrls.c wincfg.c winprint.c winjump.c sizetip.c)
add_dependencies(guiterminal generated_licence_h) # windlg.c uses licence.h
dialog.c controls.c config.c printing.c jump-list.c sizetip.c)
add_dependencies(guiterminal generated_licence_h) # dialog.c uses licence.h
add_library(guimisc STATIC
winselgui.c)
select-gui.c)
add_executable(pageant
winpgnt.c
winhelp.c
pageant.c
help.c
pageant.rc)
add_dependencies(pageant generated_licence_h)
target_link_libraries(pageant
@ -69,10 +69,10 @@ set_target_properties(pageant PROPERTIES
installed_program(pageant)
add_executable(plink
winplink.c
plink.c
${CMAKE_SOURCE_DIR}/be_all_s.c
winnojmp.c
winnohlp.c
no-jump-list.c
nohelp.c
plink.rc)
add_dependencies(plink generated_licence_h)
target_link_libraries(plink
@ -84,8 +84,8 @@ installed_program(plink)
add_executable(pscp
${CMAKE_SOURCE_DIR}/pscp.c
${CMAKE_SOURCE_DIR}/be_ssh.c
winnojmp.c
winnohlp.c
no-jump-list.c
nohelp.c
pscp.rc)
add_dependencies(pscp generated_licence_h)
target_link_libraries(pscp
@ -96,8 +96,8 @@ installed_program(pscp)
add_executable(psftp
${CMAKE_SOURCE_DIR}/psftp.c
${CMAKE_SOURCE_DIR}/be_ssh.c
winnojmp.c
winnohlp.c
no-jump-list.c
nohelp.c
psftp.rc)
add_dependencies(psftp generated_licence_h)
target_link_libraries(psftp
@ -106,8 +106,8 @@ target_link_libraries(psftp
installed_program(psftp)
add_executable(psocks
winsocks.c
winnohlp.c
psocks.c
nohelp.c
${CMAKE_SOURCE_DIR}/psocks.c
${CMAKE_SOURCE_DIR}/norand.c
${CMAKE_SOURCE_DIR}/nocproxy.c
@ -118,7 +118,7 @@ target_link_libraries(psocks
add_executable(putty
window.c
winhelp.c
help.c
${CMAKE_SOURCE_DIR}/be_all_s.c
putty.rc)
add_dependencies(putty generated_licence_h)
@ -133,7 +133,7 @@ installed_program(putty)
add_executable(puttytel
window.c
winhelp.c
help.c
${CMAKE_SOURCE_DIR}/be_nos_s.c
${CMAKE_SOURCE_DIR}/nogss.c
${CMAKE_SOURCE_DIR}/norand.c
@ -149,15 +149,15 @@ set_target_properties(puttytel PROPERTIES
installed_program(puttytel)
add_executable(puttygen
winpgen.c
puttygen.c
${CMAKE_SOURCE_DIR}/notiming.c
winnoise.c
winnojmp.c
winstore.c
winhelp.c
noise.c
no-jump-list.c
storage.c
help.c
${CMAKE_SOURCE_DIR}/sshpubk.c
${CMAKE_SOURCE_DIR}/sshrand.c
winctrls.c
controls.c
puttygen.rc)
add_dependencies(puttygen generated_licence_h)
target_link_libraries(puttygen

View File

@ -9,8 +9,8 @@
#include "putty.h"
#include "pageant.h" /* for AGENT_MAX_MSGLEN */
#include "winsecur.h"
#include "wincapi.h"
#include "security-api.h"
#include "cryptoapi.h"
#define AGENT_COPYDATA_ID 0x804e50ba /* random goop */

View File

@ -1,5 +1,5 @@
/*
* wincapi.h: Windows Crypto API functions defined in wincapi.c that
* cryptoapi.h: Windows Crypto API functions defined in PuTTY that
* use the crypt32 library. Also centralises the machinery for
* dynamically loading that library, and our own functions using that
* in turn.

View File

@ -11,8 +11,8 @@
#include "putty.h"
#include "ssh.h"
#include "win_res.h"
#include "winseat.h"
#include "putty-rc.h"
#include "win-gui-seat.h"
#include "storage.h"
#include "dialog.h"
#include "licence.h"

View File

@ -8,7 +8,7 @@
#include <assert.h>
#include "putty.h"
#include "win_res.h"
#include "putty-rc.h"
#ifdef NO_HTMLHELP

View File

@ -1,5 +1,5 @@
/*
* winhelp.h - define Windows Help context names.
* help.h - define Windows Help context names.
* Each definition is simply a string which matches up with the
* section names in the Halibut source, and is used for HTML Help.
*/

View File

@ -1,4 +1,4 @@
#include "win_res.h"
#include "putty-rc.h"
#ifdef EMBEDDED_CHM_FILE
ID_CUSTOM_CHMFILE TYPE_CUSTOM_CHMFILE EMBEDDED_CHM_FILE

View File

@ -11,7 +11,7 @@
#include "proxy.h"
#include "ssh.h"
#include "winsecur.h"
#include "security-api.h"
HANDLE connect_to_named_pipe(const char *pipename, char **err)
{

View File

@ -11,7 +11,7 @@
#include "proxy.h"
#include "ssh.h"
#include "winsecur.h"
#include "security-api.h"
typedef struct NamedPipeServerSocket {
/* Parameters for (repeated) creation of named pipe objects */

View File

@ -13,8 +13,8 @@
#include "ssh.h"
#include "misc.h"
#include "tree234.h"
#include "winsecur.h"
#include "wincapi.h"
#include "security-api.h"
#include "cryptoapi.h"
#include "pageant.h"
#include "licence.h"
#include "pageant-rc.h"

View File

@ -9,7 +9,7 @@
#include "pageant-rc.h"
#include "winhelp.rc2"
#include "help.rc2"
IDI_MAINICON ICON "pageant.ico"
IDI_TRAYICON ICON "pageants.ico"

View File

@ -25,7 +25,7 @@
#include "tree234.h"
#include "winhelp.h"
#include "help.h"
#if defined _M_IX86 || defined _M_AMD64
#define BUILDINFO_PLATFORM "x86 Windows"

View File

@ -10,7 +10,7 @@
#include "putty.h"
#include "storage.h"
#include "tree234.h"
#include "winsecur.h"
#include "security-api.h"
void cmdline_error(const char *fmt, ...)
{

View File

@ -13,7 +13,7 @@
* from it (which happens if the extension is '.h').
*/
#include "win_res.h"
#include "putty-rc.h"
IDI_MAINICON ICON "putty.ico"

View File

@ -1,5 +1,5 @@
/*
* win_res.h - constants shared between win_res.rc2 and the C code.
* putty-rc.h - constants shared between putty-common.rc2 and the C code.
*/
#ifndef PUTTY_WIN_RES_H

View File

@ -3,8 +3,8 @@
#define APPNAME "PuTTY"
#define APPDESC "SSH, Telnet, Rlogin, and SUPDUP client"
#include "winhelp.rc2"
#include "win_res.rc2"
#include "help.rc2"
#include "putty-common.rc2"
#ifndef NO_MANIFESTS
1 RT_MANIFEST "putty.mft"

View File

@ -11,7 +11,7 @@
#include "ssh.h"
#include "sshkeygen.h"
#include "licence.h"
#include "winsecur.h"
#include "security-api.h"
#include "puttygen-rc.h"
#include <commctrl.h>

View File

@ -7,7 +7,7 @@
#define APPNAME "PuTTYgen"
#define APPDESC "PuTTY SSH key generation utility"
#include "winhelp.rc2"
#include "help.rc2"
#include "puttygen-rc.h"
200 ICON "puttygen.ico"

View File

@ -3,8 +3,8 @@
#define APPNAME "PuTTYtel"
#define APPDESC "Telnet and Rlogin client"
#include "winhelp.rc2"
#include "win_res.rc2"
#include "help.rc2"
#include "putty-common.rc2"
#ifndef NO_MANIFESTS
1 RT_MANIFEST "puttytel.mft"

View File

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

View File

@ -10,7 +10,7 @@
#include "putty.h"
#include "psftp.h"
#include "ssh.h"
#include "winsecur.h"
#include "security-api.h"
int filexfer_get_userpass_input(Seat *seat, prompts_t *p, bufchain *input)
{

View File

@ -11,8 +11,8 @@
#include "proxy.h"
#include "ssh.h"
#include "wincapi.h"
#include "winsecur.h"
#include "cryptoapi.h"
#include "security-api.h"
#define CONNSHARE_PIPE_PREFIX "\\\\.\\pipe\\putty-connshare"
#define CONNSHARE_MUTEX_PREFIX "Local\\putty-connshare-mutex"

View File

@ -1,5 +1,5 @@
/*
* windows/utils/capi.c: implementation of wincapi.h.
* windows/utils/cryptoapi.c: implementation of cryptoapi.h.
*/
#include "putty.h"
@ -7,7 +7,7 @@
#include "putty.h"
#include "ssh.h"
#include "wincapi.h"
#include "cryptoapi.h"
DEF_WINDOWS_FUNCTION(CryptProtectMemory);

View File

@ -1,5 +1,5 @@
/*
* windows/utils/security.c: implementation of winsecur.h.
* windows/utils/security.c: implementation of security-api.h.
*/
#include <stdio.h>
@ -7,7 +7,7 @@
#include "putty.h"
#include "winsecur.h"
#include "security-api.h"
/* Initialised once, then kept around to reuse forever */
static PSID worldsid, networksid, usersid;

View File

@ -15,9 +15,9 @@
#include "putty.h"
#include "terminal.h"
#include "storage.h"
#include "win_res.h"
#include "winsecur.h"
#include "winseat.h"
#include "putty-rc.h"
#include "security-api.h"
#include "win-gui-seat.h"
#include "tree234.h"
#ifdef NO_MULTIMON