mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
Fixed linkage.
charset.c: cp_display and cp_source variables are made global not static and... charset.h: ...defined here as extern. search.h: added required #include's. search.c: fixed cp_display and cp_source variables declaration.
This commit is contained in:
parent
ab729f822a
commit
2ad5d2e919
@ -39,8 +39,8 @@ struct codepage_desc *codepages;
|
||||
unsigned char conv_displ[256];
|
||||
unsigned char conv_input[256];
|
||||
|
||||
static const char *cp_display = NULL;
|
||||
static const char *cp_source = NULL;
|
||||
const char *cp_display = NULL;
|
||||
const char *cp_source = NULL;
|
||||
|
||||
|
||||
int
|
||||
|
@ -16,6 +16,8 @@ struct codepage_desc {
|
||||
char *name;
|
||||
};
|
||||
|
||||
extern const char *cp_display;
|
||||
extern const char *cp_source;
|
||||
extern struct codepage_desc *codepages;
|
||||
|
||||
const char *get_codepage_id (const int n);
|
||||
|
@ -57,8 +57,8 @@ typedef enum {
|
||||
|
||||
/*** file scope variables ************************************************************************/
|
||||
|
||||
extern const char *cp_source;
|
||||
extern const char *cp_display;
|
||||
const char *cp_source;
|
||||
const char *cp_display;
|
||||
|
||||
/*** file scope functions ************************************************************************/
|
||||
|
||||
|
@ -1,6 +1,10 @@
|
||||
#ifndef MC__SEARCH_H
|
||||
#define MC__SEARCH_H
|
||||
|
||||
#include <config.h>
|
||||
|
||||
#include "../src/global.h" /* <glib.h> */
|
||||
|
||||
/*** typedefs(not structures) and defined constants **********************************************/
|
||||
|
||||
typedef int (*mc_search_fn) (const void *user_data, gsize char_offset);
|
||||
|
Loading…
Reference in New Issue
Block a user