diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2019-03-19 21:20:03 -0400 |
---|---|---|
committer | Thomas E. Dickey <dickey@his.com> | 2019-04-16 19:39:55 +0000 |
commit | 13ed4421006c3bc7743233a401ce80f849dd889b (patch) | |
tree | 9ca90cd942cb7f1c08be8ea5ebbbb32865c5c48b /src/Initialize.c | |
parent | d10e295117fdde9a085f12d90cab1adb978450bb (diff) |
This is a minimal change which compiles when predefining _CONST_X_STRING,
by changing some function parameters and struct-members to _XtString
(always "char*") from String (which may be "const char *"). There are
still many compiler warnings; subsequent commits will reduce those.
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
Diffstat (limited to 'src/Initialize.c')
-rw-r--r-- | src/Initialize.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Initialize.c b/src/Initialize.c index acfeaec..bc845bc 100644 --- a/src/Initialize.c +++ b/src/Initialize.c @@ -301,7 +301,7 @@ void XtToolkitInitialize(void) String _XtGetUserName( - String dest, + _XtString dest, int len) { #ifdef WIN32 @@ -335,7 +335,7 @@ String _XtGetUserName( static String GetRootDirName( - String dest, + _XtString dest, int len) { #ifdef WIN32 @@ -985,7 +985,7 @@ XtAppSetFallbackResources( Widget XtOpenApplication(XtAppContext *app_context_return, _Xconst char *application_class, XrmOptionDescRec *options, Cardinal num_options, - int *argc_in_out, String *argv_in_out, + int *argc_in_out, _XtString *argv_in_out, String *fallback_resources, WidgetClass widget_class, ArgList args_in, Cardinal num_args_in) { @@ -1029,7 +1029,7 @@ XtAppInitialize( XrmOptionDescRec *options, Cardinal num_options, int *argc_in_out, - String *argv_in_out, + _XtString *argv_in_out, String *fallback_resources, ArgList args_in, Cardinal num_args_in) @@ -1045,8 +1045,8 @@ XtAppInitialize( /*ARGSUSED*/ Widget XtInitialize( - _Xconst char* name, - _Xconst char* classname, + _Xconst _XtString name, + _Xconst _XtString classname, XrmOptionDescRec *options, Cardinal num_options, int *argc, |