Changeset 8535
- Timestamp:
- Aug 23, 2006, 3:41:46 PM (20 years ago)
- Location:
- trunk/ippTools/src
- Files:
-
- 4 edited
-
Makefile.am (modified) (3 diffs)
-
chiptool.c (modified) (2 diffs)
-
chiptool.h (modified) (1 diff)
-
chiptoolConfig.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/Makefile.am
r8292 r8535 3 3 pzsearch \ 4 4 p0tool \ 5 p2 search\5 p2tool\ 6 6 dettool \ 7 7 pzgetexp \ … … 19 19 p0tool.h \ 20 20 p1search.h \ 21 p2 search.h \21 p2tool.h \ 22 22 dettool.h \ 23 23 pxinject.h … … 58 58 p1searchConfig.c 59 59 60 p2 search_CFLAGS = $(PSLIB_CFLAGS) $(PSMODULES_CFLAGS) $(IPPDB_CFLAGS) $(pxtools_CFLAGS)61 p2 search_LDADD = $(PSLIB_LIBS) $(PSMODULES_LIBS) $(IPPDB_LIBS) libpxtools.la62 p2 search_SOURCES = \63 p2 search.c \64 p2 searchConfig.c60 p2tool_CFLAGS = $(PSLIB_CFLAGS) $(PSMODULES_CFLAGS) $(IPPDB_CFLAGS) $(pxtools_CFLAGS) 61 p2tool_LDADD = $(PSLIB_LIBS) $(PSMODULES_LIBS) $(IPPDB_LIBS) libpxtools.la 62 p2tool_SOURCES = \ 63 p2tool.c \ 64 p2toolConfig.c 65 65 66 66 pxadmin_CFLAGS = $(PSLIB_CFLAGS) $(PSMODULES_CFLAGS) $(IPPDB_CFLAGS) $(pxtools_CFLAGS) -
trunk/ippTools/src/chiptool.c
r8120 r8535 6 6 7 7 #include "pxtools.h" 8 #include "p2 search.h"8 #include "p2tool.h" 9 9 10 10 static bool quickMode(pxConfig *config); … … 24 24 psLibInit(NULL); 25 25 26 pxConfig *config = p2 searchConfig(NULL, argc, argv);26 pxConfig *config = p2toolConfig(NULL, argc, argv); 27 27 28 28 switch (config->mode) { 29 MODECASE(P2 SEARCH_MODE_QUICK, quickMode);30 MODECASE(P2 SEARCH_MODE_DEFINE, defineMode);31 MODECASE(P2 SEARCH_MODE_PENDING, pendingMode);32 MODECASE(P2 SEARCH_MODE_DONE, doneMode);29 MODECASE(P2TOOL_MODE_QUICK, quickMode); 30 MODECASE(P2TOOL_MODE_DEFINE, defineMode); 31 MODECASE(P2TOOL_MODE_PENDING, pendingMode); 32 MODECASE(P2TOOL_MODE_DONE, doneMode); 33 33 default: 34 34 psAbort(argv[0], "invalid option (this should not happen)"); -
trunk/ippTools/src/chiptool.h
r7848 r8535 1 #ifndef P2 SEARCH_H2 #define P2 SEARCH_H 11 #ifndef P2TOOL_H 2 #define P2TOOL_H 1 3 3 4 4 #include "pxtools.h" 5 5 6 6 typedef enum { 7 P2 SEARCH_MODE_NONE = 0x0,8 P2 SEARCH_MODE_QUICK,9 P2 SEARCH_MODE_DEFINE,10 P2 SEARCH_MODE_PENDING,11 P2 SEARCH_MODE_DONE12 } p2 searchMode;7 P2TOOL_MODE_NONE = 0x0, 8 P2TOOL_MODE_QUICK, 9 P2TOOL_MODE_DEFINE, 10 P2TOOL_MODE_PENDING, 11 P2TOOL_MODE_DONE 12 } p2toolMode; 13 13 14 pxConfig *p2 searchConfig(pxConfig *config, int argc, char **argv);14 pxConfig *p2toolConfig(pxConfig *config, int argc, char **argv); 15 15 16 #endif // P2 SEARCH_H16 #endif // P2TOOL_H -
trunk/ippTools/src/chiptoolConfig.c
r8459 r8535 6 6 7 7 #include "pxtools.h" 8 #include "p2 search.h"8 #include "p2tool.h" 9 9 10 10 // this function can not fail -- exits on error 11 pxConfig *p2 searchConfig(pxConfig *config, int argc, char **argv) {11 pxConfig *p2toolConfig(pxConfig *config, int argc, char **argv) { 12 12 if (!config) { 13 13 config = pxConfigAlloc(); … … 58 58 } 59 59 60 PXTOOL_MODE("-quick", P2 SEARCH_MODE_QUICK, quickArgs);61 PXTOOL_MODE("-define", P2 SEARCH_MODE_DEFINE, defineArgs);62 PXTOOL_MODE("-pending", P2 SEARCH_MODE_PENDING, pendingArgs);63 PXTOOL_MODE("-done", P2 SEARCH_MODE_DONE, doneArgs);60 PXTOOL_MODE("-quick", P2TOOL_MODE_QUICK, quickArgs); 61 PXTOOL_MODE("-define", P2TOOL_MODE_DEFINE, defineArgs); 62 PXTOOL_MODE("-pending", P2TOOL_MODE_PENDING, pendingArgs); 63 PXTOOL_MODE("-done", P2TOOL_MODE_DONE, doneArgs); 64 64 65 65 bool argErr = false; 66 if (config->mode == P2 SEARCH_MODE_NONE) {66 if (config->mode == P2TOOL_MODE_NONE) { 67 67 argErr = true; 68 68 fprintf (stderr, "mode argument is required\n");
Note:
See TracChangeset
for help on using the changeset viewer.
