Ticket #23348: patch-int-to-extern-int.diff

File patch-int-to-extern-int.diff, 5.5 KB (added by cerieljacobs@…, 15 years ago)
  • erts/emulator/beam/global.h

    diff --git erts/emulator/beam/global.h erts/emulator/beam/global.h
    index 62a788c..87e83e3 100644
    void erts_bif_trace_init(void); 
    16581658/*
    16591659** Call_trace uses this API for the parameter matching functions
    16601660*/
    1661     struct erl_heap_fragment* saved_program_buf;
     1661/*    struct erl_heap_fragment* saved_program_buf; */
    16621662
    16631663#define MatchSetRef(MPSP)                       \
    16641664do {                                            \
  • lib/erl_interface/src/misc/ei_internal.h

    diff --git lib/erl_interface/src/misc/ei_internal.h lib/erl_interface/src/misc/ei_internal.h
    index 9f51d1f..f7805ef 100644
     
    149149  {if (ei_tracelevel >= 5) ei_trace_printf(NAME,1,FORMAT,ARG1,ARG2,ARG3,ARG4, \
    150150                                                         ARG5,ARG6,ARG7);}
    151151
    152 int ei_tracelevel;
     152extern int ei_tracelevel;
    153153
    154154void ei_trace_printf(const char *name, int level, const char *format, ...);
    155155
  • lib/ssl/c_src/debuglog.h

    diff --git lib/ssl/c_src/debuglog.h lib/ssl/c_src/debuglog.h
    index 5699e6b..e98b3fe 100644
     
    3434#define SSLDEBUGF()  if (debug) { esock_ssl_print_errors_fp(stderr); \
    3535    if (ssllogfp) esock_ssl_print_errors_fp(ssllogfp); }
    3636
    37 int  debug;
    38 int  debugmsg;
    39 FILE *ssllogfp;
    40 FILE *__locallogfp;
     37extern int  debug;
     38extern int  debugmsg;
     39extern FILE *ssllogfp;
     40extern FILE *__locallogfp;
    4141
    42 void open_ssllog(char *path);
    43 void close_ssllog(void);
    44 FILE *openlog(char *);
    45 void closelog(FILE *);
    46 int __debugprintf(const char *, ...);
    47 int __debugprintclistf(const char *, ...);
    48 int __debuglogf(const char *, ...);
     42extern void open_ssllog(char *path);
     43extern void close_ssllog(void);
     44extern FILE *openlog(char *);
     45extern void closelog(FILE *);
     46extern int __debugprintf(const char *, ...);
     47extern int __debugprintclistf(const char *, ...);
     48extern int __debuglogf(const char *, ...);
    4949
    5050#endif
  • lib/ssl/c_src/esock_ssl.h

    diff --git lib/ssl/c_src/esock_ssl.h lib/ssl/c_src/esock_ssl.h
    index 535e9a6..ac2dd09 100644
    typedef struct { 
    3434} esock_version;
    3535
    3636/* Variables to be set by certain functions (see below) */
    37 char *esock_ssl_errstr;
     37extern char *esock_ssl_errstr;
    3838
    3939/* Ephemeral RSA and DH */
    40 int ephemeral_rsa, ephemeral_dh;
     40extern int ephemeral_rsa, ephemeral_dh;
    4141
    4242/* Protocol version (sslv2, sslv3, tlsv1) */
    43 int protocol_version;
     43extern int protocol_version;
    4444
    4545/* version info */
    46 esock_version *esock_ssl_version(void);
     46extern esock_version *esock_ssl_version(void);
    4747
    4848/* ciphers info */
    49 char *esock_ssl_ciphers(void);
     49extern char *esock_ssl_ciphers(void);
    5050
    5151/* seeding */
    52 void esock_ssl_seed(void *buf, int len);
     52extern void esock_ssl_seed(void *buf, int len);
    5353
    5454/* Initialization and finalization of SSL */
    5555
    56 int esock_ssl_init(void);
    57 void esock_ssl_finish(void);
     56extern int esock_ssl_init(void);
     57extern void esock_ssl_finish(void);
    5858
    5959/* Freeing of SSL resources for a connection */
    6060
    61 void esock_ssl_free(Connection *cp);
     61extern void esock_ssl_free(Connection *cp);
    6262
    6363/* Print error diagnostics to a file pointer */
    6464
    65 void esock_ssl_print_errors_fp(FILE *fp);
     65extern void esock_ssl_print_errors_fp(FILE *fp);
    6666
    6767/* All functions below have to return >= 0 on success, and < 0 on
    6868 * failure.
    void esock_ssl_print_errors_fp(FILE *fp); 
    7676 * short diagnostic string describing the error.
    7777 */
    7878
    79 int esock_ssl_accept_init(Connection *cp, void *listenssl);
    80 int esock_ssl_connect_init(Connection *cp);
    81 int esock_ssl_listen_init(Connection *cp);
     79extern int esock_ssl_accept_init(Connection *cp, void *listenssl);
     80extern int esock_ssl_connect_init(Connection *cp);
     81extern int esock_ssl_listen_init(Connection *cp);
    8282
    8383/* All functions below may involve non-blocking I/O with a temporary
    8484 * failure.  Hence they have to have the error context set to
    int esock_ssl_listen_init(Connection *cp); 
    8787 * value is 0, cp->eof and cp->bp are set, if appropritate.
    8888 */
    8989
    90 int esock_ssl_accept(Connection *cp);
    91 int esock_ssl_connect(Connection *cp);
     90extern int esock_ssl_accept(Connection *cp);
     91extern int esock_ssl_connect(Connection *cp);
    9292
    93 int esock_ssl_read(Connection *cp, char *buf, int len);
    94 int esock_ssl_write(Connection *cp, char *buf, int len);
     93extern int esock_ssl_read(Connection *cp, char *buf, int len);
     94extern int esock_ssl_write(Connection *cp, char *buf, int len);
    9595
    96 int esock_ssl_shutdown(Connection *cp);
     96extern int esock_ssl_shutdown(Connection *cp);
    9797
    9898/* Peer certificate */
    9999
    100 int esock_ssl_getpeercert(Connection *cp, unsigned char **buf);
    101 int esock_ssl_getpeercertchain(Connection *cp, unsigned char **buf);
     100extern int esock_ssl_getpeercert(Connection *cp, unsigned char **buf);
     101extern int esock_ssl_getpeercertchain(Connection *cp, unsigned char **buf);
    102102
    103103/* Sessions */
    104 int esock_ssl_session_reused(Connection *cp);
     104extern int esock_ssl_session_reused(Connection *cp);
    105105
    106106/* Protocol version and cipher of established connection */
    107 int esock_ssl_getprotocol_version(Connection *cp, char **buf);
    108 int esock_ssl_getcipher(Connection *cp, char **buf);
     107extern int esock_ssl_getprotocol_version(Connection *cp, char **buf);
     108extern int esock_ssl_getcipher(Connection *cp, char **buf);
    109109
    110110#endif
  • erts/emulator/hipe/hipe_mode_switch.h

    diff -u erts/emulator/hipe/hipe_mode_switch.h erts/emulator/hipe/hipe_mode_switch.h 
     
    4848
    4949#include "error.h"
    5050
    51 int hipe_modeswitch_debug;
     51extern int hipe_modeswitch_debug;
    5252
    5353void hipe_mode_switch_init(void);
    5454void hipe_set_call_trap(Uint *bfun, void *nfun, int is_closure);