dtcalc: Remove more 'extern' variables in .c files, by putting them in .h. Also reduce scope of vars and funcs with static.
This commit is contained in:
40
cde/programs/dtcalc/text.h
Normal file
40
cde/programs/dtcalc/text.h
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* CDE - Common Desktop Environment
|
||||
*
|
||||
* Copyright (c) 2021 Peter Howkins. All rights reserved.
|
||||
*
|
||||
* These libraries and programs are free software; you can
|
||||
* redistribute them and/or modify them under the terms of the GNU
|
||||
* Lesser General Public License as published by the Free Software
|
||||
* Foundation; either version 2 of the License, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* These libraries and programs are distributed in the hope that
|
||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See the GNU Lesser General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with these libraries and programs; if not, write
|
||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
||||
* Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
#ifndef __TEXT_H
|
||||
#define __TEXT_H
|
||||
|
||||
extern char *base_str[] ; /* Strings for each base value. */
|
||||
extern char *dtype_str[] ; /* Strings for each display mode value. */
|
||||
extern char *cmdstr[] ; /* Strings for each command line option. */
|
||||
extern char *calc_res[] ; /* Calctool X resources. */
|
||||
extern char *lstrs[] ; /* Labels for various Motif items. */
|
||||
extern char *mess[] ; /* Message strings. */
|
||||
extern char *mode_str[] ; /* Strings for each mode value. */
|
||||
extern char *ttype_str[] ; /* Strings for each trig type value. */
|
||||
extern char *vstrs[] ; /* Various strings. */
|
||||
extern char *mpstrs[] ; /* MP errors (visible with -D option). */
|
||||
extern char *pstrs[] ; /* Property sheet strings. */
|
||||
extern char *opts[] ; /* Command line option strings. */
|
||||
extern char *ustrs[] ; /* Usage message strings. */
|
||||
|
||||
#endif /* __TEXT_H */
|
||||
Reference in New Issue
Block a user