aboutsummaryrefslogtreecommitdiffhomepage
path: root/input.c
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2005-10-05 20:00:14 +1000
committerGravatar axel <axel@liljencrantz.se>2005-10-05 20:00:14 +1000
commit5628a2ce6609eb18fa5543f97e91af6b7e8ad320 (patch)
treef8a4afb535a110258eeccdc93df4513a84f269e7 /input.c
parent921f0f02c3f447cff9130951c2078e99da232370 (diff)
Rename preprocessor symbols to avoid nameclash with ncurses
darcs-hash:20051005100014-ac50b-49dbcfa23c609aa0ea4a791a6c9acbae54875f67.gz
Diffstat (limited to 'input.c')
-rw-r--r--input.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/input.c b/input.c
index 888d38f1..8176c783 100644
--- a/input.c
+++ b/input.c
@@ -69,11 +69,11 @@ typedef struct
/**
Symbolic names for some acces-modifiers used when parsing symbolic sequences
*/
-#define CTRL L"Control-"
+#define CTRL_SYMBOL L"Control-"
/**
Symbolic names for some acces-modifiers used when parsing symbolic sequences
*/
-#define META L"Meta-"
+#define META_SYMBOL L"Meta-"
/**
Names of all the readline functions supported
@@ -378,19 +378,19 @@ static wchar_t *input_symbolic_sequence( const wchar_t *in )
debug( 4, L"Try to parse symbolic sequence %ls", in );
- if( wcsncmp( in, CTRL, wcslen(CTRL) ) == 0 )
+ if( wcsncmp( in, CTRL_SYMBOL, wcslen(CTRL_SYMBOL) ) == 0 )
{
int has_meta=0;
- in += wcslen(CTRL);
+ in += wcslen(CTRL_SYMBOL);
/*
Control-Meta- Should be rearranged to Meta-Control, this
special-case must be handled manually.
*/
- if( wcsncmp( in, META, wcslen(META) ) == 0 )
+ if( wcsncmp( in, META_SYMBOL, wcslen(META_SYMBOL) ) == 0 )
{
- in += wcslen(META);
+ in += wcslen(META_SYMBOL);
has_meta=1;
}
@@ -414,9 +414,9 @@ static wchar_t *input_symbolic_sequence( const wchar_t *in )
debug( 4, L"Got control sequence %d", res[0] );
}
- else if( wcsncmp( in, META, wcslen(META) ) == 0 )
+ else if( wcsncmp( in, META_SYMBOL, wcslen(META_SYMBOL) ) == 0 )
{
- in += wcslen(META);
+ in += wcslen(META_SYMBOL);
res = wcsdup( L"\e" );
debug( 4, L"Got meta" );
}