mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-12 16:47:42 -05:00
Move all extern declarations into header files.
This is another cleanup I felt a need for while I was doing boolification. If you define a function or variable in one .c file and declare it extern in another, then nothing will check you haven't got the types of the two declarations mismatched - so when you're _changing_ the type, it's a pain to make sure you've caught all the copies of it. It's better to put all those extern declarations in header files, so that the declaration in the header is also in scope for the definition. Then the compiler will complain if they don't match, which is what I want.
This commit is contained in:
8
ssh.h
8
ssh.h
@ -185,6 +185,12 @@ void share_setup_x11_channel(ssh_sharing_connstate *cs, share_channel *chan,
|
||||
int protomajor, int protominor,
|
||||
const void *initial_data, int initial_len);
|
||||
|
||||
/* Per-application overrides for what roles we can take in connection
|
||||
* sharing, regardless of user configuration (e.g. pscp will never be
|
||||
* an upstream) */
|
||||
extern const bool share_can_be_downstream;
|
||||
extern const bool share_can_be_upstream;
|
||||
|
||||
struct X11Display;
|
||||
struct X11FakeAuth;
|
||||
|
||||
@ -418,6 +424,8 @@ struct ec_point {
|
||||
bool infinity;
|
||||
};
|
||||
|
||||
/* A couple of ECC functions exported for use outside sshecc.c */
|
||||
struct ec_point *ecp_mul(const struct ec_point *a, const Bignum b);
|
||||
void ec_point_free(struct ec_point *point);
|
||||
|
||||
/* Weierstrass form curve */
|
||||
|
Reference in New Issue
Block a user