dtappbuilder: make it build under autotools
This commit is contained in:
39
cde/programs/dtappbuilder/src/libABil/Makefile.am
Normal file
39
cde/programs/dtappbuilder/src/libABil/Makefile.am
Normal file
@@ -0,0 +1,39 @@
|
||||
MAINTAINERCLEANFILES = Makefile.in
|
||||
|
||||
ABINCLUDES = ../include
|
||||
|
||||
EXTRA_DEFINES = -D_POSIX_SOURCE=1
|
||||
|
||||
BUILT_SOURCES = bil_parse.h bil_parse.c
|
||||
CLEANFILES = bil_parse.h bil_parse.c
|
||||
AM_YFLAGS = -d
|
||||
|
||||
if HPUX
|
||||
CCOPTIONS = -Ae
|
||||
endif
|
||||
|
||||
noinst_LIBRARIES = libABil.a
|
||||
|
||||
#noinst_PROGRAMS = bil_test
|
||||
|
||||
libABil_a_CFLAGS = $(EXTRA_DEFINES) -I$(ABINCLUDES)
|
||||
|
||||
libABil_a_LIBADD =
|
||||
|
||||
libABil_a_SOURCES = bil_parse.y abuil_load.c abuil_print.c \
|
||||
abuil_resource_attr_map.c abuil_trav.c \
|
||||
abuil_widget_obj_map.c bil.c \
|
||||
bil_lexer.c bil_loadact.c \
|
||||
bil_loadatt.c bil_loadfile.c \
|
||||
bil_loadobj.c bil_parse.y \
|
||||
bil_store.c gil.c \
|
||||
gil_loadact.c gil_loadatt.c \
|
||||
gil_loadfile.c gil_loadobj.c \
|
||||
load.c
|
||||
|
||||
#bil_test_LDADD = ./libABil.a \
|
||||
# ../libABobjXm/libABobjXm.a \
|
||||
# ../libABobj/libABobj.a \
|
||||
# ../libAButil/libAButil.a
|
||||
|
||||
#bil_test_SOURCES = bil_test.c
|
||||
@@ -1,58 +0,0 @@
|
||||
/*
|
||||
* CDE - Common Desktop Environment
|
||||
*
|
||||
* Copyright (c) 1993-2012, The Open Group. 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
|
||||
*/
|
||||
/*
|
||||
* $XConsortium: abuil_load.h /main/3 1995/11/06 18:20:24 rswiston $
|
||||
*
|
||||
* %W% %G% cose/unity1/cde_app_builder/src/libABil
|
||||
*
|
||||
* RESTRICTED CONFIDENTIAL INFORMATION:
|
||||
*
|
||||
* The information in this document is subject to special
|
||||
* restrictions in a confidential disclosure agreement between
|
||||
* HP, IBM, Sun, USL, SCO and Univel. Do not distribute this
|
||||
* document outside HP, IBM, Sun, USL, SCO, or Univel without
|
||||
* Sun's specific written approval. This document and all copies
|
||||
* and derivative works thereof must be returned or destroyed at
|
||||
* Sun's request.
|
||||
*
|
||||
* Copyright 1993 Sun Microsystems, Inc. All rights reserved.
|
||||
*
|
||||
*/
|
||||
#ifndef _ABIL_LOAD_UIL_H
|
||||
#define _ABIL_LOAD_UIL_H
|
||||
|
||||
/*
|
||||
* This file declares the API of the uil load component
|
||||
*/
|
||||
#include <ab_private/obj.h>
|
||||
|
||||
extern ABObjPtr abuil_get_uil_file(
|
||||
STRING uil_file_path,
|
||||
ABObjPtr ab_project
|
||||
);
|
||||
|
||||
extern void abuil_trav_uil_tree(
|
||||
void *uil_root
|
||||
);
|
||||
|
||||
#endif /* _ABIL_LOAD_UIL_H */
|
||||
@@ -58,7 +58,7 @@
|
||||
#include <ab_private/abio.h>
|
||||
#include <ab_private/objxm.h>
|
||||
#include <ab_private/istr.h>
|
||||
#include "abuil_print.h"
|
||||
#include <ab_private/abuil_print.h>
|
||||
#include "../libABobj/obj_utils.h"
|
||||
|
||||
#include <Xm/Xm.h>
|
||||
|
||||
@@ -1,54 +0,0 @@
|
||||
/*
|
||||
* CDE - Common Desktop Environment
|
||||
*
|
||||
* Copyright (c) 1993-2012, The Open Group. 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
|
||||
*/
|
||||
/*
|
||||
* $XConsortium: abuil_print.h /main/3 1995/11/06 18:21:09 rswiston $
|
||||
*
|
||||
* @(#)abuil_print.h 1.9 25 Aug 1994 cose/unity1/cde_app_builder/src/libABil
|
||||
*
|
||||
* RESTRICTED CONFIDENTIAL INFORMATION:
|
||||
*
|
||||
* The information in this document is subject to special
|
||||
* restrictions in a confidential disclosure agreement between
|
||||
* HP, IBM, Sun, USL, SCO and Univel. Do not distribute this
|
||||
* document outside HP, IBM, Sun, USL, SCO, or Univel without
|
||||
* Sun's specific written approval. This document and all copies
|
||||
* and derivative works thereof must be returned or destroyed at
|
||||
* Sun's request.
|
||||
*
|
||||
* Copyright 1993 Sun Microsystems, Inc. All rights reserved.
|
||||
*
|
||||
*/
|
||||
#ifndef _ABIL_PRINT_UIL_H
|
||||
#define _ABIL_PRINT_UIL_H
|
||||
|
||||
/*
|
||||
* This file declares the API for the print uil component
|
||||
*/
|
||||
#include <ab_private/obj.h>
|
||||
|
||||
extern void abuil_obj_print_uil(
|
||||
FILE *fp,
|
||||
ABObjPtr ab_project
|
||||
);
|
||||
|
||||
#endif /* _ABIL_PRINT_UIL_H */
|
||||
@@ -1,80 +0,0 @@
|
||||
/*
|
||||
* CDE - Common Desktop Environment
|
||||
*
|
||||
* Copyright (c) 1993-2012, The Open Group. 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
|
||||
*/
|
||||
/*
|
||||
* $XConsortium: bil.h /main/3 1995/11/06 18:23:13 rswiston $
|
||||
*
|
||||
* @(#)bil.h 1.11 14 Feb 1994 cde_app_builder/src/libABil
|
||||
*
|
||||
* RESTRICTED CONFIDENTIAL INFORMATION:
|
||||
*
|
||||
* The information in this document is subject to special
|
||||
* restrictions in a confidential disclosure agreement between
|
||||
* HP, IBM, Sun, USL, SCO and Univel. Do not distribute this
|
||||
* document outside HP, IBM, Sun, USL, SCO, or Univel without
|
||||
* Sun's specific written approval. This document and all copies
|
||||
* and derivative works thereof must be returned or destroyed at
|
||||
* Sun's request.
|
||||
*
|
||||
* Copyright 1993 Sun Microsystems, Inc. All rights reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef _ABIL_BIL_H_
|
||||
#define _ABIL_BIL_H_
|
||||
|
||||
#include <X11/Intrinsic.h>
|
||||
#include <ab_private/bil_parse.h>
|
||||
|
||||
typedef enum
|
||||
{
|
||||
BIL_SAVE_UNDEF = 0,
|
||||
BIL_SAVE_DUMP, /* just dump the whole thing */
|
||||
BIL_SAVE_FILE_PER_MODULE, /* assume 1 project file, 1 for each module */
|
||||
BIL_SAVE_ENCAPSULATED, /* assume everything goes in one file */
|
||||
BIL_SAVE_TYPE_NUM_VALUES
|
||||
} BIL_SAVE_TYPE;
|
||||
|
||||
|
||||
extern ABObj bil_load_file(
|
||||
STRING path,
|
||||
FILE *inFile,
|
||||
ABObj proj,
|
||||
ABObjList *compObjsOut /* composite objs loaded */
|
||||
);
|
||||
extern int bil_load_file_and_resolve_all(
|
||||
STRING fileName,
|
||||
FILE *inFile,
|
||||
ABObj *newProjectPtr
|
||||
);
|
||||
extern int bil_save_tree(
|
||||
ABObj root,
|
||||
STRING filename,
|
||||
STRING old_proj_dir,
|
||||
BIL_SAVE_TYPE type
|
||||
);
|
||||
extern STRING bil_get_filename(
|
||||
ABObj proj,
|
||||
ABObj module
|
||||
);
|
||||
|
||||
#endif /* _ABIL_BIL_H_ */
|
||||
@@ -47,7 +47,7 @@
|
||||
|
||||
#include <stdio.h>
|
||||
#include <nl_types.h>
|
||||
#include <ab_private/bil_parse.h>
|
||||
#include "bil_parse.h"
|
||||
#include <ab/util_types.h>
|
||||
#include <ab_private/obj.h>
|
||||
#include "loadP.h"
|
||||
@@ -81,8 +81,8 @@ typedef struct
|
||||
/*
|
||||
* Symbols generated by lex/yacc
|
||||
*/
|
||||
extern int AByyparse(void);
|
||||
extern FILE *AByyin;
|
||||
extern int yyparse(void);
|
||||
extern FILE *yyin;
|
||||
|
||||
/*
|
||||
* module global vars
|
||||
|
||||
@@ -58,7 +58,7 @@
|
||||
/*
|
||||
* Public symbols
|
||||
*/
|
||||
FILE *AByyin = NULL;
|
||||
FILE *yyin = NULL;
|
||||
|
||||
#define MAX_TOKEN_LEN 1023
|
||||
#define MAX_TOKEN_SIZE (MAX_TOKEN_LEN + 1) /* len+1 for NULL */
|
||||
@@ -108,9 +108,9 @@ static int get_(FILE *file, int lastChar);
|
||||
|
||||
|
||||
int
|
||||
AByylex(void)
|
||||
yylex(void)
|
||||
{
|
||||
return get_token(AByyin);
|
||||
return get_token(yyin);
|
||||
}
|
||||
|
||||
|
||||
@@ -370,7 +370,7 @@ get_string(FILE *file, int lastChar)
|
||||
* Called by the lexical analyzer or parser whenever an error occurs.
|
||||
*/
|
||||
void
|
||||
AByyerror(const char *message)
|
||||
yyerror(const char *message)
|
||||
{
|
||||
char tokenMsg[1024] = "";
|
||||
char errMsg[1024] = "";
|
||||
|
||||
@@ -255,7 +255,7 @@ bilP_load_att_class(BIL_TOKEN valueToken)
|
||||
* This skips the rest of the BIL file and prints out
|
||||
* an error message.
|
||||
*/
|
||||
fseek(AByyin, SEEK_END, 0);
|
||||
fseek(yyin, SEEK_END, 0);
|
||||
abil_print_load_err(ERR_NOT_PROJECT);
|
||||
}
|
||||
else
|
||||
@@ -281,7 +281,7 @@ bilP_load_att_class(BIL_TOKEN valueToken)
|
||||
* project into another project. This skips the
|
||||
* rest of the BIL file and prints out an error.
|
||||
*/
|
||||
fseek(AByyin, SEEK_END, 0);
|
||||
fseek(yyin, SEEK_END, 0);
|
||||
abil_print_load_err(ERR_NOT_MODULE);
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -144,7 +144,7 @@ bil_load_file(
|
||||
if (inFile == NULL)
|
||||
{
|
||||
/* Open the input file. */
|
||||
errmsg = abio_open_bil_input(bil_file, &lineNumber, &AByyin);
|
||||
errmsg = abio_open_bil_input(bil_file, &lineNumber, &yyin);
|
||||
if (errmsg != NULL)
|
||||
{
|
||||
LoadErr = TRUE;
|
||||
@@ -162,7 +162,7 @@ bil_load_file(
|
||||
goto epilogue;
|
||||
}
|
||||
else
|
||||
AByyin = inFile;
|
||||
yyin = inFile;
|
||||
}
|
||||
++lineNumber;
|
||||
|
||||
@@ -171,7 +171,7 @@ bil_load_file(
|
||||
*/
|
||||
bilP_load_reset();
|
||||
bilP_load_set_line_number(lineNumber);
|
||||
if ((success = AByyparse()) != 0)
|
||||
if ((success = yyparse()) != 0)
|
||||
{
|
||||
abio_close_input(inFile);
|
||||
LoadErr = TRUE;
|
||||
@@ -204,7 +204,7 @@ bil_load_file(
|
||||
#endif /* BOGUS */
|
||||
|
||||
/* Close the input file. */
|
||||
abio_close_input(AByyin);
|
||||
abio_close_input(yyin);
|
||||
|
||||
if (bilP_load.project == NULL)
|
||||
{
|
||||
@@ -402,7 +402,7 @@ bilP_load_end_of_file(void)
|
||||
int
|
||||
bilP_load_end_of_data(void)
|
||||
{
|
||||
fseek(AByyin, 0, SEEK_END); /* move to end of file */
|
||||
fseek(yyin, 0, SEEK_END); /* move to end of file */
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <ab_private/bil_parse.h>
|
||||
#include "bil_parse.h"
|
||||
#include <ab/util_types.h>
|
||||
#include "bil_loadattP.h"
|
||||
|
||||
|
||||
@@ -1,72 +0,0 @@
|
||||
/*
|
||||
* CDE - Common Desktop Environment
|
||||
*
|
||||
* Copyright (c) 1993-2012, The Open Group. 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
|
||||
*/
|
||||
|
||||
/*
|
||||
* $XConsortium: gil.h /main/3 1995/11/06 18:27:23 rswiston $
|
||||
*
|
||||
* @(#)gil.h 1.8 02 Feb 1995 cde_app_builder/src/libABobj
|
||||
*
|
||||
* RESTRICTED CONFIDENTIAL INFORMATION:
|
||||
*
|
||||
* The information in this document is subject to special
|
||||
* restrictions in a confidential disclosure agreement between
|
||||
* HP, IBM, Sun, USL, SCO and Univel. Do not distribute this
|
||||
* document outside HP, IBM, Sun, USL, SCO, or Univel without
|
||||
* Sun's specific written approval. This document and all copies
|
||||
* and derivative works thereof must be returned or destroyed at
|
||||
* Sun's request.
|
||||
*
|
||||
* Copyright 1993 Sun Microsystems, Inc. All rights reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
* gil.h - gil file defines, et cetera.
|
||||
*/
|
||||
#ifndef _ABIL_GIL_H_
|
||||
#define _ABIL_GIL_H_
|
||||
|
||||
#include <ab_private/obj.h>
|
||||
|
||||
#define GIL_MAX_NAME_LENGTH 1023
|
||||
#define GIL_MAX_NAME_SIZE (GIL_MAX_NAME_LENGTH + 1)/*size includes NULL*/
|
||||
|
||||
int gil_init(void); /* CALL THIS FIRST! */
|
||||
|
||||
extern ABObj gil_load_file(
|
||||
STRING interfaceFilePath,
|
||||
FILE *inFile,
|
||||
ABObj project
|
||||
);
|
||||
extern int gil_load_project_file(
|
||||
STRING projectFilePath,
|
||||
FILE *inFile,
|
||||
ABObj *projectOut
|
||||
);
|
||||
extern int gil_load_project_file_and_resolve_all(
|
||||
STRING projectFilePath,
|
||||
FILE *inFile,
|
||||
ABObj *projectOut
|
||||
);
|
||||
|
||||
#endif /* _ABIL_GIL_H_ */
|
||||
@@ -55,7 +55,7 @@
|
||||
#include <ab_private/util.h>
|
||||
#include <ab_private/istr.h>
|
||||
#include "../libABobj/obj_utils.h"
|
||||
#include "gil.h"
|
||||
#include <ab_private/gil.h>
|
||||
#include "gilP.h"
|
||||
#include "load.h"
|
||||
#include "loadP.h"
|
||||
|
||||
@@ -58,7 +58,7 @@
|
||||
#include <ab_private/trav.h>
|
||||
#include <ab_private/istr.h>
|
||||
#include "../libABobj/obj_utils.h"
|
||||
#include "gil.h"
|
||||
#include <ab_private/gil.h>
|
||||
#include "gilP.h"
|
||||
#include "gil_loadattP.h"
|
||||
#include "load.h"
|
||||
|
||||
Reference in New Issue
Block a user