code stringlengths 1 2.01M | repo_name stringlengths 3 62 | path stringlengths 1 267 | language stringclasses 231
values | license stringclasses 13
values | size int64 1 2.01M |
|---|---|---|---|---|---|
/**
* @FILE:
* @BRIEF:
* @Copyright (C) 2011 .
* @AUTHOR: WX
* @DATE: 2011-02-28
* @VERSION: 1.0
* @REF:this file depends by STL and WIN API.
*/
#include <windows.h>
#include <iostream>
#include <string>
#include <list>
using namespace std;
#define ENABLE_DEBUG_OUTPUT
#define Debug_OutPut(s) \
{\
cout << s << endl;\
}
#define MyFileApi(_fun_) (File_##_fun_)
/**
* @BRIEF: Get Sub Dir (without recursion )
* @AUTHOR: WX
* @DATE: 2011-02-28
* @PARAM string searchPathRoot:root dir for search
* @PARAM list<string> & pathlist:Sting List For Store The All SubDir FullPath Of Search Result
* @RETURN int:The Count Of Search Result
*/
int MyFileApi(SearchSubDir)(string searchPathRoot,list<string> &pathlist)
{
WIN32_FIND_DATA FindFileData;
HANDLE hFind=NULL;
int count = 0;
string fullPath;
searchPathRoot += "\\";
fullPath = searchPathRoot + "*.*";
hFind=FindFirstFile(fullPath.c_str(),&FindFileData);
if (INVALID_HANDLE_VALUE == hFind)
{
#ifdef ENABLE_DEBUG_OUTPUT
cout << "Error:" << fullPath << "Find Nothing" <<endl;
#endif
return 0;
}
do
{
if ('.' == FindFileData.cFileName[0])
{
continue;
}
if (FindFileData.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)
{
count++;
fullPath = searchPathRoot + FindFileData.cFileName;
pathlist.push_back(fullPath);
#ifdef ENABLE_DEBUG_OUTPUT
Debug_OutPut(fullPath);
#endif
}
} while(FindNextFile(hFind, &FindFileData));
FindClose(hFind);
return count;
}
/**
* @BRIEF: Get Sub Dir With Depth limit
* @AUTHOR: WX
* @DATE: 2011-02-28
* @PARAM string searchPath:root dir for search
* @PARAM list<string> &Searchlist:Sting List For Store The All SubDir FullPath Of Search Result
* @PARAM maxDepth:the max Depth of Search Level.(if maxDepth eque 0,that meaning without any limit)
* @RETURN int:The Count Of Search Result
*/
int MyFileApi(FindAllSubDir)(string searchPath,list<string> &Searchlist,int maxDepth)
{
string tmpPath;
int i,j,SubDirCount,count;
list<string> pathlist;
list<string>::iterator pathIterator;
pathlist.push_front(searchPath);
SubDirCount = 0;
count = 0;
for (i=0;(i<maxDepth) || (0 == maxDepth);i++)
{
SubDirCount = 0;
while (!pathlist.empty())
{
pathIterator = pathlist.begin();
SubDirCount += MyFileApi(SearchSubDir)(*pathIterator,Searchlist);
pathlist.pop_front();
}
if ((!Searchlist.empty()) && (SubDirCount > 0))
{
count += SubDirCount;
pathIterator = Searchlist.end();
for (j=0;j<SubDirCount;j++)
{
pathIterator--;
pathlist.push_front(*pathIterator);
}
}
else
{
#ifdef ENABLE_DEBUG_OUTPUT
cout << "############# Find Finished ["<< count << "]Dirs ############" <<endl;
#endif
break;
}
}
return count;
}
int main()
{
list<string> pathlist;
File_FindAllSubDir("C:",pathlist,0);//C:\\TestDir
return 0;
}
| 1001-collection-codelet | Windows文件夹遍历/MyProgTest_getSubDir.cpp | C++ | gpl3 | 2,982 |
/* Getopt for GNU.
NOTE: gnu_getopt is now part of the C library, so if you don't know what
"Keep this file name-space clean" means, talk to roland@gnu.ai.mit.edu
before changing it!
Copyright (C) 1987, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97
Free Software Foundation, Inc.
This file is part of the GNU C Library. Its master source is NOT part of
the C library, however. The master source lives in /gd/gnu/lib.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public License as
published by the Free Software Foundation; either version 2 of the
License, or (at your option) any later version.
The GNU C Library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with the GNU C Library; see the file COPYING.LIB. If not,
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
/*
* modified July 9, 1999 by mark gates <mgates@nlanr.net>
* Dec 17, 1999
*
* renamed all functions and variables by prepending "gnu_"
* removed/redid a bunch of stuff under the assumption we're
* using a modern standard C compiler.
* add #include <string.h> here for strncmp(). Originally
* it was included only under special conditions.
*
* $Id: gnu_getopt.c,v 1.1.1.1 2004/05/18 01:50:44 kgibbs Exp $
*/
#include <stdio.h>
#include <stdlib.h>
#ifndef _MSC_VER /* Visual C++ doesn't have unistd.h */
#include <unistd.h>
#endif
#include <string.h>
#ifndef _
/* This is for other GNU distributions with internationalized messages.
When compiling libc, the _ macro is predefined. */
#ifdef HAVE_LIBINTL_H
#include <libintl.h>
#define _(msgid) gettext (msgid)
#else
#define _(msgid) (msgid)
#endif
#endif
/* This version of `gnu_getopt' appears to the caller like standard
Unix `getopt' but it behaves differently for the user, since it
allows the user to intersperse the options with the other
arguments.
As `gnu_getopt' works, it permutes the elements of ARGV so that,
when it is done, all the options precede everything else. Thus
all application programs are extended to handle flexible argument order.
Setting the environment variable POSIXLY_CORRECT disables permutation.
Then the behavior is completely standard.
GNU application programs can use a third alternative mode in which
they can distinguish the relative order of options and other arguments. */
#include "gnu_getopt.h"
#ifdef __cplusplus
extern "C" {
#endif
/* For communication from `gnu_getopt' to the caller.
When `gnu_getopt' finds an option that takes an argument,
the argument value is returned here.
Also, when `ordering' is RETURN_IN_ORDER,
each non-option ARGV-element is returned here. */
char *gnu_optarg = NULL;
/* Index in ARGV of the next element to be scanned.
This is used for communication to and from the caller
and for communication between successive calls to `gnu_getopt'.
On entry to `gnu_getopt', zero means this is the first call; initialize.
When `gnu_getopt' returns -1, this is the index of the first of the
non-option elements that the caller should itself scan.
Otherwise, `gnu_optind' communicates from one call to the next
how much of ARGV has been scanned so far. */
/* 1003.2 says this must be 1 before any call. */
int gnu_optind = 1;
/* Formerly, initialization of gnu_getopt depended on gnu_optind==0, which
causes problems with re-calling gnu_getopt as programs generally don't
know that. */
int __gnu_getopt_initialized = 0;
/* The next char to be scanned in the option-element
in which the last option character we returned was found.
This allows us to pick up the scan where we left off.
If this is zero, or a null string, it means resume the scan
by advancing to the next ARGV-element. */
static char *nextchar;
/* Callers store zero here to inhibit the error message
for unrecognized options. */
int gnu_opterr = 1;
/* Set to an option character which was unrecognized.
This must be initialized on some systems to avoid linking in the
system's own gnu_getopt implementation. */
int gnu_optopt = '?';
/* Describe how to deal with options that follow non-option ARGV-elements.
If the caller did not specify anything,
the default is REQUIRE_ORDER if the environment variable
POSIXLY_CORRECT is defined, PERMUTE otherwise.
REQUIRE_ORDER means don't recognize them as options;
stop option processing when the first non-option is seen.
This is what Unix does.
This mode of operation is selected by either setting the environment
variable POSIXLY_CORRECT, or using `+' as the first character
of the list of option characters.
PERMUTE is the default. We permute the contents of ARGV as we scan,
so that eventually all the non-options are at the end. This allows options
to be given in any order, even with programs that were not written to
expect this.
RETURN_IN_ORDER is an option available to programs that were written
to expect options and other ARGV-elements in any order and that care about
the ordering of the two. We describe each non-option ARGV-element
as if it were the argument of an option with character code 1.
Using `-' as the first character of the list of option characters
selects this mode of operation.
The special argument `--' forces an end of option-scanning regardless
of the value of `ordering'. In the case of RETURN_IN_ORDER, only
`--' can cause `gnu_getopt' to return -1 with `gnu_optind' != ARGC. */
static enum {
REQUIRE_ORDER, PERMUTE, RETURN_IN_ORDER
} ordering;
/* Value of POSIXLY_CORRECT environment variable. */
static char *posixly_correct;
/* Avoid depending on library functions or files
whose names are inconsistent. */
static char *
my_index( const char* str, int chr ) {
while ( *str ) {
if ( *str == chr )
return(char *) str;
str++;
}
return 0;
}
/* Handle permutation of arguments. */
/* Describe the part of ARGV that contains non-options that have
been skipped. `first_nonopt' is the index in ARGV of the first of them;
`last_nonopt' is the index after the last of them. */
static int first_nonopt;
static int last_nonopt;
/* Exchange two adjacent subsequences of ARGV.
One subsequence is elements [first_nonopt,last_nonopt)
which contains all the non-options that have been skipped so far.
The other is elements [last_nonopt,gnu_optind), which contains all
the options processed since those non-options were skipped.
`first_nonopt' and `last_nonopt' are relocated so that they describe
the new indices of the non-options in ARGV after they are moved. */
static void exchange( char **argv );
static void
exchange( char **argv ) {
int bottom = first_nonopt;
int middle = last_nonopt;
int top = gnu_optind;
char *tem;
/* Exchange the shorter segment with the far end of the longer segment.
That puts the shorter segment into the right place.
It leaves the longer segment in the right place overall,
but it consists of two parts that need to be swapped next. */
while ( top > middle && middle > bottom ) {
if ( top - middle > middle - bottom ) {
/* Bottom segment is the short one. */
int len = middle - bottom;
register int i;
/* Swap it with the top part of the top segment. */
for ( i = 0; i < len; i++ ) {
tem = argv[bottom + i];
argv[bottom + i] = argv[top - (middle - bottom) + i];
argv[top - (middle - bottom) + i] = tem;
}
/* Exclude the moved bottom segment from further swapping. */
top -= len;
} else {
/* Top segment is the short one. */
int len = top - middle;
register int i;
/* Swap it with the bottom part of the bottom segment. */
for ( i = 0; i < len; i++ ) {
tem = argv[bottom + i];
argv[bottom + i] = argv[middle + i];
argv[middle + i] = tem;
}
/* Exclude the moved top segment from further swapping. */
bottom += len;
}
}
/* Update records for the slots the non-options now occupy. */
first_nonopt += (gnu_optind - last_nonopt);
last_nonopt = gnu_optind;
}
/* Initialize the internal data when the first call is made. */
static const char *
_gnu_getopt_initialize( int argc,
char *const * argv,
const char *optstring );
static const char *
_gnu_getopt_initialize( int argc,
char *const * argv,
const char *optstring ) {
/* Start processing options with ARGV-element 1 (since ARGV-element 0
is the program name); the sequence of previously skipped
non-option ARGV-elements is empty. */
first_nonopt = last_nonopt = gnu_optind = 1;
nextchar = NULL;
posixly_correct = getenv ("POSIXLY_CORRECT");
/* Determine how to handle the ordering of options and nonoptions. */
if ( optstring[0] == '-' ) {
ordering = RETURN_IN_ORDER;
++optstring;
} else if ( optstring[0] == '+' ) {
ordering = REQUIRE_ORDER;
++optstring;
} else if ( posixly_correct != NULL )
ordering = REQUIRE_ORDER;
else
ordering = PERMUTE;
return optstring;
}
/* Scan elements of ARGV (whose length is ARGC) for option characters
given in OPTSTRING.
If an element of ARGV starts with '-', and is not exactly "-" or "--",
then it is an option element. The characters of this element
(aside from the initial '-') are option characters. If `gnu_getopt'
is called repeatedly, it returns successively each of the option characters
from each of the option elements.
If `gnu_getopt' finds another option character, it returns that character,
updating `gnu_optind' and `nextchar' so that the next call to `gnu_getopt' can
resume the scan with the following option character or ARGV-element.
If there are no more option characters, `gnu_getopt' returns -1.
Then `gnu_optind' is the index in ARGV of the first ARGV-element
that is not an option. (The ARGV-elements have been permuted
so that those that are not options now come last.)
OPTSTRING is a string containing the legitimate option characters.
If an option character is seen that is not listed in OPTSTRING,
return '?' after printing an error message. If you set `gnu_opterr' to
zero, the error message is suppressed but we still return '?'.
If a char in OPTSTRING is followed by a colon, that means it wants an arg,
so the following text in the same ARGV-element, or the text of the following
ARGV-element, is returned in `gnu_optarg'. Two colons mean an option that
wants an optional arg; if there is text in the current ARGV-element,
it is returned in `gnu_optarg', otherwise `gnu_optarg' is set to zero.
If OPTSTRING starts with `-' or `+', it requests different methods of
handling the non-option ARGV-elements.
See the comments about RETURN_IN_ORDER and REQUIRE_ORDER, above.
Long-named options begin with `--' instead of `-'.
Their names may be abbreviated as long as the abbreviation is unique
or is an exact match for some defined option. If they have an
argument, it follows the option name in the same ARGV-element, separated
from the option name by a `=', or else the in next ARGV-element.
When `gnu_getopt' finds a long-named option, it returns 0 if that option's
`flag' field is nonzero, the value of the option's `val' field
if the `flag' field is zero.
The elements of ARGV aren't really const, because we permute them.
But we pretend they're const in the prototype to be compatible
with other systems.
LONGOPTS is a vector of `struct option' terminated by an
element containing a name which is zero.
LONGIND returns the index in LONGOPT of the long-named option found.
It is only valid when a long-named option has been found by the most
recent call.
If LONG_ONLY is nonzero, '-' as well as '--' can introduce
long-named options. */
int
_gnu_getopt_internal( int argc,
char *const *argv,
const char *optstring,
const struct option *longopts,
int *longind,
int long_only ) {
gnu_optarg = NULL;
if ( !__gnu_getopt_initialized || gnu_optind == 0 ) {
optstring = _gnu_getopt_initialize (argc, argv, optstring);
gnu_optind = 1; /* Don't scan ARGV[0], the program name. */
__gnu_getopt_initialized = 1;
}
/* Test whether ARGV[gnu_optind] points to a non-option argument.
Either it does not have option syntax, or there is an environment flag
from the shell indicating it is not an option. The later information
is only used when the used in the GNU libc. */
#define NONOPTION_P (argv[gnu_optind][0] != '-' || argv[gnu_optind][1] == '\0')
if ( nextchar == NULL || *nextchar == '\0' ) {
/* Advance to the next ARGV-element. */
/* Give FIRST_NONOPT & LAST_NONOPT rational values if OPTIND has been
moved back by the user (who may also have changed the arguments). */
if ( last_nonopt > gnu_optind )
last_nonopt = gnu_optind;
if ( first_nonopt > gnu_optind )
first_nonopt = gnu_optind;
if ( ordering == PERMUTE ) {
/* If we have just processed some options following some non-options,
exchange them so that the options come first. */
if ( first_nonopt != last_nonopt && last_nonopt != gnu_optind )
exchange ((char **) argv);
else if ( last_nonopt != gnu_optind )
first_nonopt = gnu_optind;
/* Skip any additional non-options
and extend the range of non-options previously skipped. */
while ( gnu_optind < argc && NONOPTION_P )
gnu_optind++;
last_nonopt = gnu_optind;
}
/* The special ARGV-element `--' means premature end of options.
Skip it like a null option,
then exchange with previous non-options as if it were an option,
then skip everything else like a non-option. */
if ( gnu_optind != argc && !strcmp (argv[gnu_optind], "--") ) {
gnu_optind++;
if ( first_nonopt != last_nonopt && last_nonopt != gnu_optind )
exchange ((char **) argv);
else if ( first_nonopt == last_nonopt )
first_nonopt = gnu_optind;
last_nonopt = argc;
gnu_optind = argc;
}
/* If we have done all the ARGV-elements, stop the scan
and back over any non-options that we skipped and permuted. */
if ( gnu_optind == argc ) {
/* Set the next-arg-index to point at the non-options
that we previously skipped, so the caller will digest them. */
if ( first_nonopt != last_nonopt )
gnu_optind = first_nonopt;
return -1;
}
/* If we have come to a non-option and did not permute it,
either stop the scan or describe it to the caller and pass it by. */
if ( NONOPTION_P ) {
if ( ordering == REQUIRE_ORDER )
return -1;
gnu_optarg = argv[gnu_optind++];
return 1;
}
/* We have found another option-ARGV-element.
Skip the initial punctuation. */
nextchar = (argv[gnu_optind] + 1
+ (longopts != NULL && argv[gnu_optind][1] == '-'));
}
/* Decode the current option-ARGV-element. */
/* Check whether the ARGV-element is a long option.
If long_only and the ARGV-element has the form "-f", where f is
a valid short option, don't consider it an abbreviated form of
a long option that starts with f. Otherwise there would be no
way to give the -f short option.
On the other hand, if there's a long option "fubar" and
the ARGV-element is "-fu", do consider that an abbreviation of
the long option, just like "--fu", and not "-f" with arg "u".
This distinction seems to be the most useful approach. */
if ( longopts != NULL
&& (argv[gnu_optind][1] == '-'
|| (long_only && (argv[gnu_optind][2] || !my_index (optstring, argv[gnu_optind][1])))) ) {
char *nameend;
const struct option *p;
const struct option *pfound = NULL;
int exact = 0;
int ambig = 0;
int indfound = -1;
int option_index;
for ( nameend = nextchar; *nameend && *nameend != '='; nameend++ )
/* Do nothing. */ ;
/* Test all long options for either exact match
or abbreviated matches. */
for ( p = longopts, option_index = 0; p->name; p++, option_index++ )
if ( !strncmp (p->name, nextchar, nameend - nextchar) ) {
if ( (unsigned int) (nameend - nextchar)
== (unsigned int) strlen (p->name) ) {
/* Exact match found. */
pfound = p;
indfound = option_index;
exact = 1;
break;
} else if ( pfound == NULL ) {
/* First nonexact match found. */
pfound = p;
indfound = option_index;
} else
/* Second or later nonexact match found. */
ambig = 1;
}
if ( ambig && !exact ) {
if ( gnu_opterr )
fprintf (stderr, _("%s: option `%s' is ambiguous\n"),
argv[0], argv[gnu_optind]);
nextchar += strlen (nextchar);
gnu_optind++;
gnu_optopt = 0;
return '?';
}
if ( pfound != NULL ) {
option_index = indfound;
gnu_optind++;
if ( *nameend ) {
/* Don't test has_arg with >, because some C compilers don't
allow it to be used on enums. */
if ( pfound->has_arg )
gnu_optarg = nameend + 1;
else {
if ( gnu_opterr ) {
if ( argv[gnu_optind - 1][1] == '-' ) {
/* --option */
fprintf (stderr,
_("%s: option `--%s' doesn't allow an argument\n"),
argv[0], pfound->name);
} else {
/* +option or -option */
fprintf (stderr,
_("%s: option `%c%s' doesn't allow an argument\n"),
argv[0], argv[gnu_optind - 1][0], pfound->name);
}
}
nextchar += strlen (nextchar);
gnu_optopt = pfound->val;
return '?';
}
} else if ( pfound->has_arg == 1 ) {
if ( gnu_optind < argc )
gnu_optarg = argv[gnu_optind++];
else {
if ( gnu_opterr )
fprintf (stderr,
_("%s: option `%s' requires an argument\n"),
argv[0], argv[gnu_optind - 1]);
nextchar += strlen (nextchar);
gnu_optopt = pfound->val;
return optstring[0] == ':' ? ':' : '?';
}
}
nextchar += strlen (nextchar);
if ( longind != NULL )
*longind = option_index;
if ( pfound->flag ) {
*(pfound->flag) = pfound->val;
return 0;
}
return pfound->val;
}
/* Can't find it as a long option. If this is not gnu_getopt_long_only,
or the option starts with '--' or is not a valid short
option, then it's an error.
Otherwise interpret it as a short option. */
if ( !long_only || argv[gnu_optind][1] == '-'
|| my_index (optstring, *nextchar) == NULL ) {
if ( gnu_opterr ) {
if ( argv[gnu_optind][1] == '-' )
/* --option */
fprintf (stderr, _("%s: unrecognized option `--%s'\n"),
argv[0], nextchar);
else
/* +option or -option */
fprintf (stderr, _("%s: unrecognized option `%c%s'\n"),
argv[0], argv[gnu_optind][0], nextchar);
}
nextchar = (char *) "";
gnu_optind++;
gnu_optopt = 0;
return '?';
}
}
/* Look at and handle the next short option-character. */
{
char c = *nextchar++;
char *temp = my_index (optstring, c);
/* Increment `gnu_optind' when we start to process its last character. */
if ( *nextchar == '\0' )
++gnu_optind;
if ( temp == NULL || c == ':' ) {
if ( gnu_opterr ) {
if ( posixly_correct )
/* 1003.2 specifies the format of this message. */
fprintf (stderr, _("%s: illegal option -- %c\n"),
argv[0], c);
else
fprintf (stderr, _("%s: invalid option -- %c\n"),
argv[0], c);
}
gnu_optopt = c;
return '?';
}
/* Convenience. Treat POSIX -W foo same as long option --foo */
if ( temp[0] == 'W' && temp[1] == ';' ) {
char *nameend;
const struct option *p;
const struct option *pfound = NULL;
int exact = 0;
int ambig = 0;
int indfound = 0;
int option_index;
/* This is an option that requires an argument. */
if ( *nextchar != '\0' ) {
gnu_optarg = nextchar;
/* If we end this ARGV-element by taking the rest as an arg,
we must advance to the next element now. */
gnu_optind++;
} else if ( gnu_optind == argc ) {
if ( gnu_opterr ) {
/* 1003.2 specifies the format of this message. */
fprintf (stderr, _("%s: option requires an argument -- %c\n"),
argv[0], c);
}
gnu_optopt = c;
if ( optstring[0] == ':' )
c = ':';
else
c = '?';
return c;
} else
/* We already incremented `gnu_optind' once;
increment it again when taking next ARGV-elt as argument. */
gnu_optarg = argv[gnu_optind++];
/* gnu_optarg is now the argument, see if it's in the
table of longopts. */
for ( nextchar = nameend = gnu_optarg; *nameend && *nameend != '='; nameend++ )
/* Do nothing. */ ;
/* Test all long options for either exact match
or abbreviated matches. */
for ( p = longopts, option_index = 0; p->name; p++, option_index++ )
if ( !strncmp (p->name, nextchar, nameend - nextchar) ) {
if ( (unsigned int) (nameend - nextchar) == strlen (p->name) ) {
/* Exact match found. */
pfound = p;
indfound = option_index;
exact = 1;
break;
} else if ( pfound == NULL ) {
/* First nonexact match found. */
pfound = p;
indfound = option_index;
} else
/* Second or later nonexact match found. */
ambig = 1;
}
if ( ambig && !exact ) {
if ( gnu_opterr )
fprintf (stderr, _("%s: option `-W %s' is ambiguous\n"),
argv[0], argv[gnu_optind]);
nextchar += strlen (nextchar);
gnu_optind++;
return '?';
}
if ( pfound != NULL ) {
option_index = indfound;
if ( *nameend ) {
/* Don't test has_arg with >, because some C compilers don't
allow it to be used on enums. */
if ( pfound->has_arg )
gnu_optarg = nameend + 1;
else {
if ( gnu_opterr )
fprintf (stderr, _("\
%s: option `-W %s' doesn't allow an argument\n"),
argv[0], pfound->name);
nextchar += strlen (nextchar);
return '?';
}
} else if ( pfound->has_arg == 1 ) {
if ( gnu_optind < argc )
gnu_optarg = argv[gnu_optind++];
else {
if ( gnu_opterr )
fprintf (stderr,
_("%s: option `%s' requires an argument\n"),
argv[0], argv[gnu_optind - 1]);
nextchar += strlen (nextchar);
return optstring[0] == ':' ? ':' : '?';
}
}
nextchar += strlen (nextchar);
if ( longind != NULL )
*longind = option_index;
if ( pfound->flag ) {
*(pfound->flag) = pfound->val;
return 0;
}
return pfound->val;
}
nextchar = NULL;
return 'W'; /* Let the application handle it. */
}
if ( temp[1] == ':' ) {
if ( temp[2] == ':' ) {
/* This is an option that accepts an argument optionally. */
if ( *nextchar != '\0' ) {
gnu_optarg = nextchar;
gnu_optind++;
} else
gnu_optarg = NULL;
nextchar = NULL;
} else {
/* This is an option that requires an argument. */
if ( *nextchar != '\0' ) {
gnu_optarg = nextchar;
/* If we end this ARGV-element by taking the rest as an arg,
we must advance to the next element now. */
gnu_optind++;
} else if ( gnu_optind == argc ) {
if ( gnu_opterr ) {
/* 1003.2 specifies the format of this message. */
fprintf (stderr,
_("%s: option requires an argument -- %c\n"),
argv[0], c);
}
gnu_optopt = c;
if ( optstring[0] == ':' )
c = ':';
else
c = '?';
} else
/* We already incremented `gnu_optind' once;
increment it again when taking next ARGV-elt as argument. */
gnu_optarg = argv[gnu_optind++];
nextchar = NULL;
}
}
return c;
}
}
int
gnu_getopt ( int argc,
char *const *argv,
const char *optstring ) {
return _gnu_getopt_internal (argc, argv, optstring,
(const struct option *) 0,
(int *) 0,
0);
}
#ifdef __cplusplus
} /* end extern "C" */
#endif
#ifdef TEST
/* Compile with -DTEST to make an executable for use in testing
the above definition of `gnu_getopt'. */
int
main (argc, argv)
int argc;
char **argv;
{
int c;
int digit_optind = 0;
while ( 1 ) {
int this_option_optind = gnu_optind ? gnu_optind : 1;
c = gnu_getopt (argc, argv, "abc:d:0123456789");
if ( c == -1 )
break;
switch ( c ) {
case '0':
case '1':
case '2':
case '3':
case '4':
case '5':
case '6':
case '7':
case '8':
case '9':
if ( digit_optind != 0 && digit_optind != this_option_optind )
fprintf ( stderr, "digits occur in two different argv-elements.\n");
digit_optind = this_option_optind;
fprintf ( stderr, "option %c\n", c);
break;
case 'a':
fprintf ( stderr, "option a\n");
break;
case 'b':
fprintf ( stderr, "option b\n");
break;
case 'c':
fprintf ( stderr, "option c with value `%s'\n", gnu_optarg);
break;
case '?':
break;
default:
fprintf ( stderr, "?? gnu_getopt returned character code 0%o ??\n", c);
}
}
if ( gnu_optind < argc ) {
fprintf (stderr, "non-option ARGV-elements: ");
while ( gnu_optind < argc )
fprintf ( stderr, "%s ", argv[gnu_optind++]);
fprintf ( stderr, "\n");
}
exit (0);
}
#endif /* TEST */
| 1001-collection-codelet | gnu_getopt/gnu_getopt.c | C | gpl3 | 30,171 |
/* Declarations for gnu_getopt.
Copyright (C) 1989,90,91,92,93,94,96,97 Free Software Foundation, Inc.
This file is part of the GNU C Library. Its master source is NOT part of
the C library, however. The master source lives in /gd/gnu/lib.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public License as
published by the Free Software Foundation; either version 2 of the
License, or (at your option) any later version.
The GNU C Library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with the GNU C Library; see the file COPYING.LIB. If not,
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
/*
* modified July 9, 1999 by mark gates <mgates@nlanr.net>
* Dec 17, 1999
*
* renamed all functions and variables by prepending "gnu_"
* removed/redid a bunch of stuff under the assumption we're
* using a modern standard C compiler.
*
* $Id: gnu_getopt.h,v 1.1.1.1 2004/05/18 01:50:44 kgibbs Exp $
*/
#ifndef _GETOPT_H
#define _GETOPT_H 1
#ifdef __cplusplus
extern "C" {
#endif
/* For communication from `gnu_getopt' to the caller.
When `gnu_getopt' finds an option that takes an argument,
the argument value is returned here.
Also, when `ordering' is RETURN_IN_ORDER,
each non-option ARGV-element is returned here. */
extern char *gnu_optarg;
/* Index in ARGV of the next element to be scanned.
This is used for communication to and from the caller
and for communication between successive calls to `gnu_getopt'.
On entry to `gnu_getopt', zero means this is the first call; initialize.
When `gnu_getopt' returns -1, this is the index of the first of the
non-option elements that the caller should itself scan.
Otherwise, `gnu_optind' communicates from one call to the next
how much of ARGV has been scanned so far. */
extern int gnu_optind;
/* Callers store zero here to inhibit the error message `gnu_getopt' prints
for unrecognized options. */
extern int gnu_opterr;
/* Set to an option character which was unrecognized. */
extern int gnu_optopt;
/* Describe the long-named options requested by the application.
The LONG_OPTIONS argument to gnu_getopt_long or getopt_long_only is a vector
of `struct option' terminated by an element containing a name which is
zero.
The field `has_arg' is:
no_argument (or 0) if the option does not take an argument,
required_argument (or 1) if the option requires an argument,
optional_argument (or 2) if the option takes an optional argument.
If the field `flag' is not NULL, it points to a variable that is set
to the value given in the field `val' when the option is found, but
left unchanged if the option is not found.
To have a long-named option do something other than set an `int' to
a compiled-in constant, such as set a value from `gnu_optarg', set the
option's `flag' field to zero and its `val' field to a nonzero
value (the equivalent single-letter option character, if there is
one). For long options that have a zero `flag' field, `gnu_getopt'
returns the contents of the `val' field. */
/* has_arg can't be an enum because some compilers complain about
type mismatches in all the code that assumes it is an int. */
struct option {
const char *name;
int has_arg;
int *flag;
int val;
};
/* Names for the values of the `has_arg' field of `struct option'. */
#define no_argument 0
#define required_argument 1
#define optional_argument 2
int gnu_getopt( int argc,
char *const *argv,
const char *shortopts );
int gnu_getopt_long( int argc,
char *const *argv,
const char *shortopts,
const struct option *longopts,
int *longind );
int gnu_getopt_long_only( int argc,
char *const *argv,
const char *shortopts,
const struct option *longopts,
int *longind );
/* Internal only. Users should not call this directly. */
int _gnu_getopt_internal( int argc,
char *const *argv,
const char *shortopts,
const struct option *longopts,
int *longind,
int long_only );
#ifdef __cplusplus
} /* end extern "C" */
#endif
#endif /* _GETOPT_H */
| 1001-collection-codelet | gnu_getopt/gnu_getopt.h | C | gpl3 | 4,838 |
/* gnu_getopt_long and getopt_long_only entry points for GNU getopt.
Copyright (C) 1987,88,89,90,91,92,93,94,96,97 Free Software Foundation, Inc.
This file is part of the GNU C Library. Its master source is NOT part of
the C library, however. The master source lives in /gd/gnu/lib.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public License as
published by the Free Software Foundation; either version 2 of the
License, or (at your option) any later version.
The GNU C Library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with the GNU C Library; see the file COPYING.LIB. If not,
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
/*
* modified July 9, 1999 by mark gates <mgates@nlanr.net>
* Dec 17, 1999
*
* renamed all functions and variables by prepending "gnu_"
* removed/redid a bunch of stuff under the assumption we're
* using a modern standard C compiler.
* renamed file to gnu_getopt_long.c (from gnu_getopt1.c)
*
* $Id: gnu_getopt_long.c,v 1.1.1.1 2004/05/18 01:50:44 kgibbs Exp $
*/
#include "gnu_getopt.h"
#include <stdio.h>
#include <stdlib.h>
#ifdef __cplusplus
extern "C" {
#endif
int
gnu_getopt_long( int argc,
char *const *argv,
const char *options,
const struct option *long_options,
int *opt_index ) {
return _gnu_getopt_internal (argc, argv, options, long_options, opt_index, 0);
}
/* Like gnu_getopt_long, but '-' as well as '--' can indicate a long option.
If an option that starts with '-' (not '--') doesn't match a long option,
but does match a short option, it is parsed as a short option
instead. */
int
gnu_getopt_long_only( int argc,
char *const *argv,
const char *options,
const struct option *long_options,
int *opt_index ) {
return _gnu_getopt_internal (argc, argv, options, long_options, opt_index, 1);
}
#ifdef __cplusplus
} /* end extern "C" */
#endif
#if 1//def TEST
#include <stdio.h>
int
main (argc, argv)
int argc;
char **argv;
{
int c;
int digit_optind = 0;
while ( 1 ) {
int this_option_optind = gnu_optind ? gnu_optind : 1;
int option_index = 0;
static struct option long_options[] =
{
{"add", 1, 0, 0},
{"append", 0, 0, 0},
{"delete", 1, 0, 0},
{"verbose", 0, 0, 0},
{"create", 0, 0, 0},
{"file", 1, 0, 0},
{0, 0, 0, 0}
};
c = gnu_getopt_long (argc, argv, "abc:d:0123456789",
long_options, &option_index);
if ( c == -1 )
break;
switch ( c ) {
case 0:
fprintf ( stderr, "option %s", long_options[option_index].name);
if ( gnu_optarg )
fprintf ( stderr, " with arg %s", gnu_optarg);
fprintf ( stderr, "\n");
break;
case '0':
case '1':
case '2':
case '3':
case '4':
case '5':
case '6':
case '7':
case '8':
case '9':
if ( digit_optind != 0 && digit_optind != this_option_optind )
fprintf ( stderr, "digits occur in two different argv-elements.\n");
digit_optind = this_option_optind;
fprintf ( stderr, "option %c\n", c);
break;
case 'a':
fprintf ( stderr, "option a\n");
break;
case 'b':
fprintf ( stderr, "option b\n");
break;
case 'c':
fprintf ( stderr, "option c with value `%s'\n", gnu_optarg);
break;
case 'd':
fprintf ( stderr, "option d with value `%s'\n", gnu_optarg);
break;
case '?':
break;
default:
fprintf ( stderr, "?? gnu_getopt returned character code 0%o ??\n", c);
}
}
if ( gnu_optind < argc ) {
fprintf ( stderr, "non-option ARGV-elements: ");
while ( gnu_optind < argc )
fprintf ( stderr, "%s ", argv[gnu_optind++]);
fprintf ( stderr, "\n");
}
exit (0);
}
#endif /* TEST */
| 1001-collection-codelet | gnu_getopt/gnu_getopt_long.c | C | gpl3 | 4,537 |
#include "gifDecode.h"
#define WX_GIF_DEBUG
#define PATH_MAXLEN_DECODE 30
#define NAME_MAXLEN_DECODE 10
static struct tag_gifgce gif89a_gce = { -1, -1, -1, 0 };
static struct tag_gifsdesc gif_sdesc;
static BYTE gifOutfilePath[PATH_MAXLEN_DECODE];
static BOOL verbose = FALSE;
static BOOL showComment= FALSE;
static int LWZ_ReadByte ( struct BYTESTREAM *fd, int flag, int input_code_size );
static int LWZ_GetCode ( struct BYTESTREAM *fd, int code_size, int flag );
static int gif_Decode(struct BYTESTREAM *srcStream, struct tag_gifBmpList *outputList);
static void gif_ReadImage ( struct BYTESTREAM *fd, struct BYTESTREAM *desBmpStrm, int len, int height, RGBQUAD *cmap, int bpp, int interlace, int ignore);
static int gif_GetColorMap ( struct BYTESTREAM *fd, int number, RGBQUAD *b);
static int gif_DoExtension ( struct BYTESTREAM *fd, int label );
static int gif_GetDataBlock ( struct BYTESTREAM *fd, unsigned char *buf );
//================================================
void gif_SetDecodeOutputPath(BYTE * outputfile)
{
int strLen= 0;
strLen = strlen(outputfile)+1;
memset(gifOutfilePath,'\0',PATH_MAXLEN_DECODE);
memcpy(gifOutfilePath,outputfile,(strLen<PATH_MAXLEN_DECODE)?strLen:(PATH_MAXLEN_DECODE));
}
int gif_CreateBmpPlayList(BYTE *srcDataOrName,struct_gifBmpList **outputbmpList,DWORD srcArraySize,BOOL srcIsFile,BOOL outputIsFile)
{
struct BYTESTREAM *srcStream=NULL;
int decodenum=0;
if (srcIsFile) {
if(!Create_ByteStrm(&srcStream,srcDataOrName , 0, STRM_FILE_R)){// "..\\3_2.gif"
return 0;
}
} else {
if(!Create_ByteStrm(&srcStream,srcDataOrName , srcArraySize, STRM_BUF_S)){
return 0;
}
}
if (NULL == srcStream) {
return 0;
}
(*outputbmpList)=(struct tag_gifBmpList *)malloc(sizeof(struct tag_gifBmpList));
if (NULL == (*outputbmpList)){
printf("bmplist Error\n");
return 0;
}
(*outputbmpList)->allBmpListHead = NULL;
(*outputbmpList)->nframe = 0;
(*outputbmpList)->isFile = outputIsFile;
decodenum=gif_Decode(srcStream,(*outputbmpList));
srcStream->Close(&srcStream,TRUE);
return decodenum;
}
static BOOL gif_AddOneBmpToPlayList(struct tag_gifBmpList *giflist,void *frameData,DWORD length,int delayTime)
{
struct tag_gifBmpBuf *newbmpCell =NULL;
struct tag_gifBmpBuf *bmpListHeadBackup =NULL;
int filenamelen =0;
if(NULL == giflist){
return FALSE;
}
newbmpCell = (struct tag_gifBmpBuf*)malloc(sizeof(struct tag_gifBmpBuf));
if(NULL==newbmpCell){
return FALSE;
}
if(giflist->isFile) {
filenamelen = strlen(frameData);
newbmpCell->bmpData=(BYTE*)malloc(filenamelen+1);
memset(newbmpCell->bmpData,'\0',filenamelen+1);
memcpy(newbmpCell->bmpData,frameData,filenamelen);
} else {
newbmpCell->bmpData=(BYTE*)frameData;
}
newbmpCell->dataLength=length;
//if(0>delayTime) {delayTime=0;}//delay time will less than Zero
newbmpCell->delayTime = delayTime;
newbmpCell->nextBmp =NULL;
if (NULL==giflist->allBmpListHead){
giflist->allBmpListHead= newbmpCell;
giflist->nframe =1;
}else{
bmpListHeadBackup=giflist->allBmpListHead;
while(NULL!=(giflist->allBmpListHead->nextBmp)){
giflist->allBmpListHead = giflist->allBmpListHead->nextBmp;
}
giflist->allBmpListHead->nextBmp = newbmpCell;
giflist->allBmpListHead = bmpListHeadBackup;
giflist->nframe += 1;
}
return TRUE;
}
BOOL gif_DestoryBmpPlayList(struct_gifBmpList **gifList)
{
struct tag_gifBmpBuf *bmpListHeadBackup =NULL;
BOOL isFile=FALSE;
if (NULL ==(*gifList)){
return FALSE;
}
isFile = (*gifList)->isFile;
while(NULL!=((*gifList)->allBmpListHead)) {
bmpListHeadBackup = (*gifList)->allBmpListHead;
(*gifList)->allBmpListHead = (*gifList)->allBmpListHead->nextBmp;
if(NULL!=bmpListHeadBackup->bmpData) {
#ifndef WX_GIF_DEBUG
if(isFile) {
remove(bmpListHeadBackup->bmpData);
}
#endif
free(bmpListHeadBackup->bmpData);//free data
}
free(bmpListHeadBackup);//free cell
}
free(*gifList);//free list
(*gifList) = NULL;
return TRUE;
}
//================================================
int gif_Decode(struct BYTESTREAM *srcStream, struct tag_gifBmpList *outputList)
{
struct BYTESTREAM *desBmpStrm=NULL;
BYTE outputBmpName[NAME_MAXLEN_DECODE+PATH_MAXLEN_DECODE];
int gifFrameCount=0;
BYTE testDump[20];
BYTE buf[16];
BYTE c;
static RGBQUAD localColorMap[MAXSIZE_COLORMAP];
int useGlobalColormap;
int bitPixel;
char version[4];
gifFrameCount=0;
if (!ReadOK(srcStream,buf,6))
Print_errorMsg("error reading magic number" );
if (strncmp((char *)buf,"GIF",3) != 0)
Print_errorMsg("not a GIF file" );
strncpy(version, (char *)buf + 3, 3);
version[3] = '\0';
if ((strcmp(version, "87a") != 0) && (strcmp(version, "89a") != 0))
Print_errorMsg("bad version number, not '87a' or '89a'" );
if (! ReadOK(srcStream,buf,7))
Print_errorMsg("failed to read screen descriptor" );
gif_sdesc.Width = MU8_TO_U16(buf[0],buf[1]);
gif_sdesc.Height = MU8_TO_U16(buf[2],buf[3]);
gif_sdesc.BitPixel = 2<<(buf[4]&0x07);
gif_sdesc.ColorResolution = (((buf[4]&0x70)>>3)+1);
gif_sdesc.Background = buf[5];
gif_sdesc.AspectRatio = buf[6]; //screen height:width
if (BitSet(buf[4], LOCALCOLORMAP))
{ /* Global Colormap */
// printf("gif_sdesc.BitPixel is %d\n,gif_sdesc.Width is %d\n,gif_sdesc.Height is %d\n",gif_sdesc.BitPixel,gif_sdesc.Width,gif_sdesc.Height);
if (gif_GetColorMap(srcStream,gif_sdesc.BitPixel, gif_sdesc.ColorMap))
Print_errorMsg("error reading global colormap" );
}
for (;;)
{
if (!ReadOK(srcStream,&c,1))
Print_errorMsg("EOF / read error on image data" );
if (c == ';')
{ /* GIF terminator */
//if (gifFrameCount < imageNumber)
//{
// fprintf(stderr, "only %d image%s found in file\n",
// gifFrameCount, gifFrameCount>1?"s":"" );
// exit(1);
//}
printf("image count is %d\n",gifFrameCount);
return gifFrameCount;
}
if (c == '!')
{ /* Extension */
if (!ReadOK(srcStream,&c,1))
Print_errorMsg("OF / read error on extention function code");
gif_DoExtension(srcStream, c);
continue;
}
if (c != ',')
{ /* Not a valid start character */
fprintf(stderr,"bogus character 0x%02x, ignoring\n", (int) c );
continue;
}
++gifFrameCount;
if (! ReadOK(srcStream,buf,9))
Print_errorMsg("couldn't read left/top/width/height");
useGlobalColormap = ! (buf[8] & LOCALCOLORMAP);
bitPixel = 1<<((buf[8]&0x07)+1);
//==================================================
if(outputList->isFile) {
sprintf(outputBmpName,"%s%d.bmp",gifOutfilePath,gifFrameCount);
if(!Create_ByteStrm(&desBmpStrm, outputBmpName, 0, STRM_FILE_W)) {
return (gifFrameCount-1);
}
}else{
if(!Create_ByteStrm(&desBmpStrm, NULL, 0, STRM_BUF_D)) {
return (gifFrameCount-1);
}
}
if(NULL==desBmpStrm){
return (gifFrameCount-1);
}
//==================================================
if (! useGlobalColormap) {
if (gif_GetColorMap(srcStream, bitPixel, localColorMap))
Print_errorMsg("error reading local colormap" );
gif_ReadImage(srcStream, desBmpStrm,MU8_TO_U16(buf[4],buf[5]),\
MU8_TO_U16(buf[6],buf[7]),localColorMap, bitPixel,\
buf[8]&INTERLACE, FALSE );
} else {
gif_ReadImage(srcStream, desBmpStrm, MU8_TO_U16(buf[4],buf[5]),\
MU8_TO_U16(buf[6],buf[7]),gif_sdesc.ColorMap,gif_sdesc.BitPixel,\
buf[8]&INTERLACE, FALSE);
}
//==================================================
sprintf(testDump,"WWW%d.txt",gifFrameCount);
desBmpStrm->InitDumpFile(desBmpStrm,testDump);
desBmpStrm->Seek(desBmpStrm,0,SEEK_SET);
desBmpStrm->Dump(desBmpStrm,-1);
desBmpStrm->CloseDumpFile(desBmpStrm);
if(outputList->isFile) {
gif_AddOneBmpToPlayList(outputList,outputBmpName,\
desBmpStrm->GetSize(desBmpStrm),gif89a_gce.delayTime);
desBmpStrm->Close(&desBmpStrm,TRUE);
} else {
gif_AddOneBmpToPlayList(outputList,desBmpStrm->handle.Array,\
desBmpStrm->GetSize(desBmpStrm),gif89a_gce.delayTime);
desBmpStrm->Close(&desBmpStrm,FALSE);
}
desBmpStrm = NULL;
//==================================================
}
return gifFrameCount;
}
static int gif_GetColorMap( struct BYTESTREAM *srcStream, int number, RGBQUAD *buffer)
{
int i;
unsigned char rgb[3];
for (i = 0; i < number; ++i, buffer++)
{
if (! ReadOK(srcStream, rgb, sizeof(rgb)))
Print_errorMsg("bad colormap" );
buffer->rgbBlue= rgb[0];
buffer->rgbGreen= rgb[1];
buffer->rgbRed= rgb[2];
buffer->rgbReserved= 0;
}
return 0;
}
static int gif_DoExtension( struct BYTESTREAM *srcStream, int label)
{
static char buf[256];
char *str;
switch(label)
{
case 0x01: /* Plain Text Extension */
str = "Plain Text Extension";
#if 0
if (gif_GetDataBlock(srcStream, (unsigned char*) buf) == 0)
;
lpos = LM_to_uint(buf[0], buf[1]);
tpos = LM_to_uint(buf[2], buf[3]);
width = LM_to_uint(buf[4], buf[5]);
height = LM_to_uint(buf[6], buf[7]);
cellw = buf[8];
cellh = buf[9];
foreground = buf[10];
background = buf[11];
while (gif_GetDataBlock(srcStream, (unsigned char*) buf) != 0)
{
PPM_ASSIGN(image[ypos][xpos],
cmap[CM_RED][v],
cmap[CM_GREEN][v],
cmap[CM_BLUE][v]);
++index;
}
return FALSE;
#else
break;
#endif
case 0xff: /* Application Extension */
str = "Application Extension";
gif_GetDataBlock(srcStream, (BYTE*)buf);
if (showComment)
{
fprintf(stderr, "Application Extension: %c%c%c%c%c%c%c%c ",
buf[0],buf[1],buf[2],buf[3],buf[4],buf[5],buf[6],buf[7]);
fprintf(stderr, " Authentication Code=)%02x %02x %02x\n",
buf[8], buf[9], buf[10]);
}
break;
case 0xfe: /* Comment Extension */
str = "Comment Extension";
while (gif_GetDataBlock(srcStream, (BYTE*) buf) != 0)
{
if (showComment)
fprintf(stderr,"gif comment: %s\n", buf );
}
return FALSE;
case 0xf9: /* Graphic Control Extension */
str = "Graphic Control Extension";
(void) gif_GetDataBlock(srcStream, (BYTE*) buf);
gif89a_gce.disposal = (buf[0] >> 2) & 0x7;
gif89a_gce.inputFlag = (buf[0] >> 1) & 0x1;
gif89a_gce.delayTime = MU8_TO_U16(buf[1],buf[2]);
if ((buf[0] & 0x1) != 0)
gif89a_gce.transparent = buf[3];
while (gif_GetDataBlock(srcStream, (BYTE*) buf) != 0)
;
return FALSE;
default:
str = buf;
sprintf(buf, "UNKNOWN (0x%02x)", label);
break;
}
//fprintf(stderr,"got a '%s' extension\n", str );
while (gif_GetDataBlock(srcStream, (BYTE*)buf) != 0)
;
return FALSE;
}
BOOL ZeroDataBlock = FALSE;
static int gif_GetDataBlock( struct BYTESTREAM *fd, unsigned char *buf)
{
unsigned char count;
if (! ReadOK(fd,&count,1))
{
fprintf(stderr,"error in getting DataBlock size\n" );
return -1;
}
ZeroDataBlock = count == 0;
if ((count != 0) && (! ReadOK(fd, buf, count)))
{
fprintf(stderr,"error in reading DataBlock\n" );
return -1;
}
return count;
}
static int LWZ_GetCode( struct BYTESTREAM *fd, int code_size, int flag)
{
static unsigned char buf[280];
static int curbit, lastbit, done, last_byte;
int i, j, ret;
unsigned char count;
if (flag)
{
curbit = 0;
lastbit = 0;
done = FALSE;
return 0;
}
if ( (curbit+code_size) >= lastbit)
{
if (done)
{
if (curbit >= lastbit)
Print_errorMsg("ran off the end of my bits" );
return -1;
}
buf[0] = buf[last_byte-2];
buf[1] = buf[last_byte-1];
if ((count = gif_GetDataBlock(fd, &buf[2])) == 0)
done = TRUE;
last_byte = 2 + count;
curbit = (curbit - lastbit) + 16;
lastbit = (2+count)*8 ;
}
ret = 0;
for (i = curbit, j = 0; j < code_size; ++i, ++j)
ret |= ((buf[ i / 8 ] & (1 << (i % 8))) != 0) << j;
curbit += code_size;
return ret;
}
static int LWZ_ReadByte( struct BYTESTREAM *fd, int flag, int input_code_size)
{
static int fresh = FALSE;
int code, incode;
static int code_size, set_code_size;
static int max_code, max_code_size;
static int firstcode, oldcode;
static int clear_code, end_code;
static int table[2][(1<< MAX_LWZ_BITS)];
static int stack[(1<<(MAX_LWZ_BITS))*2], *sp;
register int i;
if (flag)
{
set_code_size = input_code_size;
code_size = set_code_size+1;
clear_code = 1 << set_code_size ;
end_code = clear_code + 1;
max_code_size = 2*clear_code;
max_code = clear_code+2;
LWZ_GetCode(fd, 0, TRUE);
fresh = TRUE;
for (i = 0; i < clear_code; ++i)
{
table[0][i] = 0;
table[1][i] = i;
}
for (; i < (1<<MAX_LWZ_BITS); ++i)
table[0][i] = table[1][0] = 0;
sp = stack;
return 0;
}
else if (fresh)
{
fresh = FALSE;
do {
firstcode = oldcode =
LWZ_GetCode(fd, code_size, FALSE);
} while (firstcode == clear_code);
return firstcode;
}
if (sp > stack)
return *--sp;
while ((code = LWZ_GetCode(fd, code_size, FALSE)) >= 0)
{
if (code == clear_code)
{
for (i = 0; i < clear_code; ++i)
{
table[0][i] = 0;
table[1][i] = i;
}
for (; i < (1<<MAX_LWZ_BITS); ++i)
table[0][i] = table[1][i] = 0;
code_size = set_code_size+1;
max_code_size = 2*clear_code;
max_code = clear_code+2;
sp = stack;
firstcode = oldcode =
LWZ_GetCode(fd, code_size, FALSE);
return firstcode;
}
else if (code == end_code)
{
int count;
unsigned char buf[260];
if (ZeroDataBlock)
return -2;
while ((count = gif_GetDataBlock(fd, buf)) > 0)
;
if (count != 0)
fprintf(stderr,"missing EOD in data stream (common occurence)\n");
return -2;
}
incode = code;
if (code >= max_code)
{
*sp++ = firstcode;
code = oldcode;
}
while (code >= clear_code)
{
*sp++ = table[1][code];
if (code == table[0][code])
Print_errorMsg("circular table entry BIG ERROR");
code = table[0][code];
}
*sp++ = firstcode = table[1][code];
if ((code = max_code) <(1<<MAX_LWZ_BITS))
{
table[0][code] = oldcode;
table[1][code] = firstcode;
++max_code;
if ((max_code >= max_code_size) &&
(max_code_size < (1<<MAX_LWZ_BITS)))
{
max_code_size *= 2;
++code_size;
}
}
oldcode = incode;
if (sp > stack)
return *--sp;
}
return code;
}
static void gif_ReadImage( struct BYTESTREAM *fd, struct BYTESTREAM *desBmpStrm, int len, int height, RGBQUAD *cmap,
int bpp, int interlace, int ignore)
{
DWORD bmpColorBitCount = 8;
DWORD bmpScanLineLength = 0;
unsigned char c;
int tempCh;
int xpos = 0, ypos = 0, pass = 0;
unsigned char *scanline;
/*
** Initialize the Compression routines
*/
if (! ReadOK(fd,&c,1))
Print_errorMsg("EOF / read error on image data" );
if (LWZ_ReadByte(fd, TRUE, c) < 0)
Print_errorMsg("error reading image" );
/*
** If this is an "uninteresting picture" ignore it.
*/
if (ignore)
{
if (verbose)
fprintf(stderr,"skipping image...\n" );
while (LWZ_ReadByte(fd, FALSE, c) >= 0)
;
return;
}
if ((scanline= (unsigned char *)malloc(len)) == NULL)
Print_errorMsg("couldn't alloc space for image" );
if (verbose)
fprintf(stderr,"reading %d by %d%s GIF image\n", len, height, interlace ? " interlaced" : "" );
bmp_InitHeader(desBmpStrm,len, height, bpp, FALSE, cmap,&bmpColorBitCount,&bmpScanLineLength);
/* Fill the whole file with junk */
for(tempCh= 0; tempCh<height; tempCh++)
desBmpStrm->Write(desBmpStrm,scanline, 1, (int)bmpScanLineLength);
while (ypos<height && (tempCh = LWZ_ReadByte(fd,FALSE,c)) >= 0)
{
switch(bmpColorBitCount)
{
case 1:
if(tempCh)
scanline[xpos>>3] |= 128 >> (xpos&7);
else
scanline[xpos>>3] &= 0xff7f >> (xpos&7);
break;
case 4:
if(xpos&1)
scanline[xpos>>1] |= tempCh&15;
else
scanline[xpos>>1] = (tempCh&15) << 4;
break;
case 8:
scanline[xpos]= tempCh;
break;
}
++xpos;
if (xpos == len)
{
desBmpStrm->Seek(desBmpStrm, -(ypos+1)*bmpScanLineLength, SEEK_END);
desBmpStrm->Write(desBmpStrm,scanline, 1, (int)bmpScanLineLength);
xpos = 0;
if (interlace)
{
static int dpass[]= {8,8,4,2};
ypos += dpass[pass];
if (ypos >= height)
{
static int restart[]= {0,4,2,1,32767};
ypos= restart[++pass];
}
}
else
++ypos;
}
}
if(LWZ_ReadByte(fd, FALSE,c) >= 0)
fprintf(stderr,"too much input data, ignoring extra...\n");
}
/********************************Show OkList AdPic**********************************/
| 1001-collection-codelet | Gif_Tran/source/gifDecode.c | C | gpl3 | 20,669 |
#ifndef __GIFPLAYONOSD_H__
#define __GIFPLAYONOSD_H__
#include "gifDecode.c"
#endif
| 1001-collection-codelet | Gif_Tran/source/gifPlayOnOSD.h | C | gpl3 | 98 |
#ifndef __BMPDECODE_H__
#define __BMPDECODE_H__
#include "XXByteStrm.c"
#include <string.h>
#include <malloc.h>
//#define _ENDIAN_BIG_
#define CM_RED 0
#define CM_GREEN 1
#define CM_BLUE 2
#ifdef _ENDIAN_BIG_
#define hton_U16(A) ((A)=((((A)&0xff00)>>8)|((A)&0x00ff)<<8))
#define hton_U32(A) ((A)=((((A)&0xff000000)>>24)|(((A)&0x00ff0000)>>8)|\
(((A)&0x0000ff00)<<8)|(((A)&0x000000ff)<<24)))
#else
#define hton_U16(A) /*(A)*/
#define hton_U32(A) /*(A)*/
#endif
#define MU8_TO_U16(a,b) (((b)<<8)|(a))
#define BitSet(byte, bit) (((byte) & (bit)) == (bit))
#pragma pack(1)
typedef struct tagRGBQUAD {
BYTE rgbRed;
BYTE rgbGreen;
BYTE rgbBlue;
BYTE rgbReserved;
} RGBQUAD;
typedef struct tagBITMAPFILEHEADER {
WORD bfType;
DWORD bfSize;
WORD bfReserved1;
WORD bfReserved2;
DWORD bfOffBits;
} BMP_FILE_HEADER, *P_BMP_FILE_HEADER;
typedef struct tagBITMAPINFOHEADER{
DWORD biSize;
DWORD biWidth;
DWORD biHeight;
WORD biPlanes;
WORD biBitCount;
DWORD biCompression;
DWORD biSizeImage;
DWORD biXPelsPerMeter;
DWORD biYPelsPerMeter;
DWORD biClrUsed;
DWORD biClrImportant;
} BMP_HEAD_INFO, *P_BMP_HEAD_INFO;
#pragma pack()
int bmp_InitHeader(struct BYTESTREAM *desBmpStrm,int width, int height, int colorCount, BOOL is8Bmp,RGBQUAD *cmap,DWORD *bmpColorBitCount,DWORD *bmpScanLineLength);
void Print_errorMsg(char *msg);
#endif
| 1001-collection-codelet | Gif_Tran/source/bmpDecode.h | C | gpl3 | 1,593 |
#include "gifPlayOnOSD.h"
#include "testData.h"
BOOL gifgetCurFrameFromList(struct_gifBmpBuf *bmplistHead,struct_gifBmpBuf **bmpData,int frameIdx)
{
int curIdx=0;
struct_gifBmpBuf * curBmpCell=NULL;
if(NULL == bmplistHead) {return FALSE;}
curBmpCell = bmplistHead;
for(curIdx=0;curIdx<frameIdx;curIdx++) {
if (NULL!=curBmpCell) {
curBmpCell = curBmpCell->nextBmp;
} else {
break;
}
}
if ((curIdx == frameIdx)&&(NULL!=curBmpCell) ) {
(*bmpData) = curBmpCell;
return TRUE;
} else {
return FALSE;
}
}
#define SRC_IS_FILE
#define OUT_IS_FILE
void main()
{
struct tag_gifBmpList * bmpList=NULL;
struct_gifBmpBuf *curbmp;
int idx=0,total=0,inputCh =0;
BOOL isRepeat;
#ifdef OUT_IS_FILE
gif_SetDecodeOutputPath("..\\BMPTRAN\\STRM");
#ifdef SRC_IS_FILE
total=gif_CreateBmpPlayList("..\\5328e0dc.gif",&bmpList,0,TRUE,TRUE);// 5328e0dc.gif
#else
total=gif_CreateBmpPlayList(GifTestData,&bmpList,sizeof(GifTestData),FALSE,TRUE);//
#endif
#else
#ifdef SRC_IS_FILE
total=gif_CreateBmpPlayList("..\\fcceb99f.gif",&bmpList,0,TRUE,FALSE);//
#else
total=gif_CreateBmpPlayList(GifTestData,&bmpList,sizeof(GifTestData),FALSE,FALSE);//
#endif
#endif
#if 0
isRepeat = FALSE;
while(inputCh!='$') {
inputCh=getch();
if(inputCh == 's') {
isRepeat = TRUE;
} else if (inputCh == 'i') {
isRepeat = FALSE;
}
if (gifgetCurFrameFromList(bmpList->allBmpListHead,&curbmp,idx)) {
printf("Successful!%d___%s Len=%d delay=%d\n",idx,curbmp->bmpData,\
curbmp->dataLength,curbmp->delayTime);
} else {
printf("Failed!_%d\n",idx);
}
idx++;
if(idx>=total) {
idx = 0;
if(!isRepeat) {
break;
} else {
system("@clear");
}
}
}
#endif
gif_DestoryBmpPlayList(&bmpList);
}
| 1001-collection-codelet | Gif_Tran/source/gifPlayOnOSD.c | C | gpl3 | 1,872 |
#ifndef __GIFDECODE_H__
#define __GIFDECODE_H__
#include "bmpDecode.c"
#define MAXSIZE_COLORMAP 256
#define MAX_LWZ_BITS 12
#define INTERLACE 0x40
#define LOCALCOLORMAP 0x80
#define ReadOK(file,buffer,len) ((file->Read(file,buffer , len, 1 )) != 0)
struct tag_gifsdesc {
unsigned int Width;
unsigned int Height;
RGBQUAD ColorMap[MAXSIZE_COLORMAP];
unsigned int BitPixel;
unsigned int ColorResolution;
unsigned int Background;
unsigned int AspectRatio;
int GrayScale;
};
struct tag_gifgce{
int transparent;
int delayTime;
int inputFlag;
int disposal;
};
//////////////////////////////////////////////////////////
typedef struct tag_gifBmpBuf {
BYTE *bmpData;
DWORD dataLength;
int delayTime;
struct tag_gifBmpBuf *nextBmp;
}struct_gifBmpBuf;
typedef struct tag_gifBmpList {
struct tag_gifBmpBuf * allBmpListHead;
WORD nframe;
BOOL isFile;
//--------------------------
WORD originX;
WORD originY;
BOOL isEscape;
BOOL isRepeat;
}struct_gifBmpList;
//////////////////////////////////////////////////////////
void gif_SetDecodeOutputPath(BYTE * outputfile);
int gif_CreateBmpPlayList(BYTE *srcDataOrName,struct_gifBmpList **outputbmpList,DWORD srcArraySize,BOOL srcIsFile,BOOL outputIsFile);
BOOL gif_DestoryBmpPlayList(struct_gifBmpList **bmpList);
#endif
| 1001-collection-codelet | Gif_Tran/source/gifDecode.h | C | gpl3 | 1,787 |
del /F /Q /S *.plg *.dsw *.opt *.dsp *.ncb *dump.txt* *dump.gif* Debug.*.txt | 1001-collection-codelet | Gif_Tran/source/delTmp.cmd | Batchfile | gpl3 | 78 |
#ifndef __TESTDATA_H__
#define __TESTDATA_H__
unsigned char GifTestData[] =
{
0x47, 0x49, 0x46, 0x38, 0x39, 0x61, 0xA0, 0x00, 0xA6, 0x00, 0xF7, 0xFF, 0x00, 0x02, 0x02, 0x02,
0x82, 0x82, 0x72, 0xC2, 0xC2, 0xAA, 0x9E, 0x52, 0x0E, 0x42, 0x42, 0x42, 0xD6, 0x96, 0x6E, 0xA2,
0xA2, 0x8E, 0xE6, 0xE2, 0xCA, 0x62, 0x62, 0x56, 0x3A, 0x2A, 0x22, 0x1E, 0x1E, 0x1A, 0xBA, 0x82,
0x5E, 0x92, 0x92, 0x82, 0x6A, 0x4A, 0x36, 0xEE, 0xC6, 0x96, 0x42, 0x5A, 0x86, 0x52, 0x52, 0x46,
0xB2, 0xB2, 0x9E, 0xF2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0xB6, 0x0C, 0x0F, 0xC0, 0x0B, 0x70, 0x94, 0x03, 0xCB, 0x70, 0x58, 0x8E, 0x67, 0x5F, 0x87, 0x50,
0x6B, 0xF0, 0x65, 0x77, 0x76, 0x27, 0x2C, 0x47, 0x96, 0x61, 0x9A, 0x86, 0x57, 0xEF, 0xA7, 0x5A,
0xC2, 0x97, 0x03, 0x87, 0x70, 0x58, 0xB5, 0xF0, 0x6A, 0x18, 0x37, 0x79, 0x56, 0x26, 0x1C, 0xF6,
0x00, 0x62, 0x89, 0x90, 0x65, 0xC6, 0xA0, 0x0D, 0xC2, 0xC4, 0x57, 0x3F, 0xE1, 0x03, 0x9F, 0xB2,
0x01, 0xAF, 0xF7, 0x42, 0x85, 0x90, 0x03, 0xAA, 0xF0, 0x00, 0xA5, 0xA0, 0x51, 0x0F, 0x70, 0x07,
0x05, 0x44, 0x82, 0x20, 0x56, 0x81, 0x87, 0x75, 0x08, 0x28, 0x88, 0x76, 0x2A, 0x38, 0x06, 0x27,
0x00, 0x00, 0xEA, 0x70, 0x79, 0x21, 0xA8, 0x64, 0x40, 0xE6, 0x46, 0x4B, 0x46, 0x52, 0x95, 0x07,
0x62, 0xAC, 0x80, 0x81, 0x4D, 0xC7, 0x02, 0x59, 0xA8, 0x09, 0xF6, 0x15, 0x0B, 0xD7, 0xA4, 0x14,
0x43, 0x76, 0x03, 0x4D, 0x11, 0x09, 0x91, 0x23, 0x0C, 0x39, 0x58, 0x41, 0x1F, 0xE0, 0x05, 0x27,
0xF0, 0x00, 0xE8, 0x70, 0x5E, 0x0F, 0xD0, 0x70, 0xB7, 0x60, 0x7C, 0x00, 0x90, 0x0E, 0x46, 0x58,
0x73, 0x5A, 0x98, 0x70, 0x87, 0x26, 0x1C, 0x2B, 0x71, 0x58, 0x49, 0x06, 0x71, 0x52, 0xF8, 0x7E,
0x7A, 0xA6, 0x51, 0xF6, 0x35, 0x53, 0xF8, 0x17, 0x5F, 0x5C, 0xC8, 0x85, 0xE4, 0x60, 0x5F, 0x74,
0x52, 0x5F, 0xDB, 0xFF, 0xE6, 0x3B, 0x66, 0xD7, 0x14, 0x20, 0xA0, 0x01, 0x05, 0x90, 0x86, 0x14,
0xC4, 0x0B, 0x39, 0x90, 0x08, 0x71, 0x98, 0x03, 0xBC, 0xF0, 0x00, 0x3A, 0xD0, 0x80, 0x1D, 0x77,
0x87, 0xB8, 0xD7, 0x74, 0x39, 0x97, 0x71, 0xD7, 0x56, 0x6E, 0xE3, 0x04, 0x67, 0x9C, 0x36, 0x7B,
0x21, 0xE5, 0x3B, 0xB6, 0xE7, 0x07, 0x2B, 0x28, 0x7A, 0x56, 0x16, 0x1C, 0x2C, 0xB0, 0x88, 0x20,
0x16, 0x0B, 0xB1, 0x20, 0x03, 0x46, 0x26, 0x87, 0x24, 0x38, 0x63, 0x3D, 0x11, 0x08, 0x1A, 0xB0,
0x4C, 0xCC, 0x94, 0x45, 0x77, 0xE0, 0x89, 0xB6, 0xA5, 0x0D, 0xDB, 0x96, 0x03, 0x3A, 0x00, 0x62,
0x0F, 0x90, 0x0B, 0x75, 0x06, 0x00, 0x89, 0x50, 0x68, 0xCA, 0x57, 0x68, 0x94, 0xE0, 0x85, 0x00,
0x20, 0x87, 0xDD, 0x25, 0x52, 0xDD, 0xB6, 0x6A, 0x3C, 0x98, 0x62, 0x08, 0xC0, 0x02, 0x63, 0xC0,
0x02, 0x5C, 0xC8, 0x7C, 0xBE, 0xF1, 0x08, 0x21, 0x70, 0x64, 0x27, 0x50, 0x0A, 0xB7, 0x15, 0x09,
0xF5, 0x95, 0x64, 0x12, 0x28, 0x51, 0x3D, 0x31, 0x06, 0x81, 0x10, 0x08, 0x48, 0x54, 0x49, 0x6E,
0x90, 0x45, 0x0F, 0xA0, 0x0D, 0x8D, 0x14, 0x09, 0x0F, 0x70, 0x70, 0xDA, 0x60, 0x7A, 0x77, 0x68,
0x67, 0x94, 0x50, 0x77, 0x2A, 0xE8, 0x05, 0xEB, 0xF6, 0x86, 0x0F, 0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xF8, 0x00, 0xC6, 0x60, 0x47, 0x0F, 0x60, 0x61, 0x28, 0x96,
0x0E, 0x89, 0xF0, 0x5E, 0x56, 0xD6, 0x82, 0x8C, 0x68, 0x6E, 0xCC, 0x57, 0x96, 0x35, 0x59, 0x8D,
0xF6, 0xC5, 0x76, 0xC4, 0xC7, 0x60, 0x78, 0x85, 0x1E, 0x87, 0x85, 0x99, 0x20, 0x45, 0x88, 0x74,
0x99, 0x62, 0x17, 0x98, 0x70, 0x14, 0x50, 0x9A, 0xA6, 0x49, 0x01, 0x89, 0x80, 0x0E, 0xD5, 0xC7,
0x15, 0x8F, 0x00, 0x0D, 0xD5, 0xE1, 0x02, 0x2E, 0x36, 0x41, 0x7D, 0x20, 0x0C, 0x42, 0xA6, 0x89,
0xAA, 0x30, 0x06, 0xB7, 0x00, 0x93, 0x94, 0x60, 0x0A, 0x4E, 0x48, 0x25, 0x98, 0x30, 0x06, 0xD2,
0x50, 0x67, 0x32, 0x10, 0x09, 0x7D, 0x23, 0x8E, 0xC6, 0xC9, 0x02, 0x98, 0xC0, 0x0A, 0x25, 0x68,
0x5F, 0x49, 0x16, 0x74, 0x7A, 0xF6, 0x03, 0x50, 0x82, 0x00, 0x91, 0x60, 0x61, 0x89, 0x57, 0x47,
0xC1, 0x19, 0x9A, 0x20, 0x56, 0x0B, 0x7D, 0x43, 0x68, 0xA7, 0xD9, 0x9D, 0x51, 0xE9, 0x15, 0x14,
0x10, 0x09, 0xEE, 0xFF, 0x03, 0x02, 0x87, 0x30, 0x04, 0x69, 0xA0, 0x09, 0x05, 0x80, 0x01, 0x40,
0x50, 0x13, 0xA9, 0x80, 0x78, 0x2C, 0xF0, 0x00, 0x6C, 0xC7, 0x83, 0xEF, 0x30, 0x06, 0xAF, 0xC0,
0x8C, 0xCB, 0xC0, 0x0A, 0xAA, 0x40, 0x73, 0xB1, 0xB0, 0x91, 0x34, 0x47, 0x0E, 0x43, 0xF0, 0x08,
0xC0, 0x01, 0x1C, 0xCB, 0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08, 0xC0, 0x86, 0x1B,
0x8E, 0xD0, 0x83, 0x36, 0x58, 0xAC, 0x85, 0xBD, 0x00, 0x82, 0x39, 0x94, 0x00, 0x00, 0x79, 0x78,
0x26, 0x0B, 0xDE, 0x98, 0x40, 0x50, 0x7F, 0xD0, 0x81, 0x3A, 0x18, 0x61, 0x25, 0xF5, 0x60, 0xC0,
0x19, 0x7A, 0x11, 0x4F, 0x9E, 0xFE, 0x80, 0x98, 0x82, 0x8A, 0x6A, 0x00, 0xB6, 0xF1, 0xBF, 0xBD,
0x60, 0xEC, 0x74, 0x46, 0x99, 0x00, 0xA2, 0x0C, 0x13, 0xCD, 0x02, 0x52, 0xE3, 0x05, 0x2F, 0x70,
0x81, 0x13, 0x3C, 0xF1, 0x82, 0x48, 0x00, 0x60, 0x07, 0x21, 0x51, 0xCD, 0xCD, 0xEA, 0x52, 0xB3,
0x30, 0x79, 0x75, 0x2F, 0x8E, 0x88, 0x94, 0x25, 0x1A, 0xF0, 0x9E, 0x05, 0x2C, 0xCC, 0x46, 0x18,
0xD1, 0xEF, 0x07, 0x33, 0x32, 0xDB, 0x58, 0xA0, 0x91, 0x0C, 0xEF, 0x90, 0x02, 0xDF, 0xF6, 0x80,
0x93, 0x5A, 0x84, 0x80, 0x74, 0x63, 0x61, 0x09, 0x03, 0x14, 0x90, 0x92, 0x99, 0xC8, 0x01, 0x0E,
0x76, 0xA8, 0xC5, 0x0A, 0x6E, 0x71, 0x0B, 0x75, 0x1C, 0x81, 0x2C, 0xED, 0xA8, 0x87, 0x07, 0x16,
0x6B, 0xAD, 0xC9, 0x1A, 0x22, 0x19, 0xF9, 0x78, 0x28, 0x65, 0x0B, 0xB5, 0x0D, 0x0F, 0x20, 0x6A,
0xB3, 0xD2, 0xE4, 0x48, 0x23, 0xEA, 0x41, 0x87, 0xD1, 0x52, 0x64, 0x17, 0x84, 0xD9, 0x26, 0x6A,
0xB5, 0x44, 0x91, 0x12, 0x80, 0xAA, 0x0E, 0x8B, 0xD8, 0x15, 0xA8, 0x00, 0xB0, 0x98, 0xAD, 0x20,
0x47, 0x02, 0xCB, 0xFF, 0x51, 0xC5, 0x15, 0x74, 0xC0, 0xB7, 0x71, 0x60, 0xA3, 0x71, 0xA0, 0xF1,
0x43, 0x2A, 0x60, 0x12, 0xAE, 0x1F, 0xDC, 0x63, 0x0D, 0x64, 0x69, 0x49, 0x1C, 0xB2, 0xC5, 0x08,
0x00, 0x9C, 0x23, 0x1C, 0x00, 0x10, 0x40, 0x67, 0xEA, 0x70, 0x8F, 0x05, 0xAD, 0x65, 0x6E, 0x4E,
0xA1, 0x51, 0x5F, 0x9C, 0x44, 0x9E, 0x62, 0x6E, 0xEC, 0x74, 0x21, 0x42, 0xAF, 0x13, 0x39, 0x32,
0x82, 0x90, 0xA4, 0xCC, 0x10, 0x25, 0x98, 0xD9, 0x1A, 0x40, 0xA4, 0x67, 0x29, 0xEC, 0x42, 0x10,
0x03, 0xC0, 0x19, 0x45, 0x52, 0x50, 0x85, 0x2F, 0x0C, 0xC0, 0x53, 0x15, 0x99, 0x45, 0x81, 0xEB,
0x92, 0x91, 0x31, 0x1C, 0xE2, 0x15, 0xB1, 0x28, 0x82, 0x24, 0x40, 0xDA, 0x4E, 0xEA, 0x74, 0x20,
0x04, 0x2C, 0x39, 0x00, 0x9E, 0x18, 0xB0, 0x86, 0x94, 0xB0, 0x04, 0x0F, 0xBE, 0xCC, 0x49, 0x4E,
0xCD, 0x9A, 0x13, 0x96, 0xF0, 0x50, 0x62, 0xA5, 0xDB, 0x90, 0x31, 0x79, 0xA5, 0x28, 0x8A, 0xB4,
0xF5, 0xD5, 0x43, 0x49, 0x54, 0x87, 0x1C, 0xE0, 0x03, 0x6B, 0x70, 0x36, 0x92, 0xC0, 0x1A, 0x8A,
0x05, 0x5E, 0x67, 0x88, 0x5D, 0xFC, 0x3A, 0x39, 0x01, 0x10, 0xA7, 0x21, 0xD0, 0x0A, 0x5B, 0x7C,
0x81, 0x88, 0x2B, 0x43, 0x81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, 0x08, 0x43, 0x80, 0x00, 0xBF, 0x08, 0x8F, 0x91, 0x29, 0xA9, 0x71, 0xCA,
0x88, 0x11, 0x00, 0x05, 0x02, 0x60, 0x06, 0x33, 0x3C, 0x43, 0x02, 0x88, 0x86, 0x4F, 0x68, 0x04,
0x6C, 0x42, 0x42, 0xE6, 0x24, 0x9C, 0x0C, 0xB2, 0x1A, 0x27, 0xFD, 0x52, 0x1E, 0xBB, 0x28, 0x01,
0x19, 0xB0, 0x42, 0x3C, 0xCC, 0xC3, 0x2E, 0xD9, 0x8B, 0x07, 0xF8, 0x3F, 0xFE, 0xA1, 0x02, 0x27,
0x98, 0x8D, 0x07, 0xE0, 0x82, 0x8D, 0x11, 0x0E, 0xE2, 0x90, 0x96, 0x78, 0x79, 0x8C, 0x8D, 0xA2,
0x88, 0x23, 0x14, 0x0E, 0xFC, 0xB0, 0x98, 0xE2, 0x48, 0x23, 0x43, 0x80, 0x44, 0x02, 0x43, 0x0E,
0x8B, 0xF1, 0x82, 0x44, 0x78, 0x04, 0xB6, 0x53, 0x85, 0x48, 0x78, 0x85, 0x48, 0x48, 0x05, 0xC0,
0x0B, 0x45, 0xC1, 0x0B, 0xBE, 0xE0, 0x0B, 0x45, 0x53, 0x8C, 0x05, 0x04, 0x78, 0x39, 0x4F, 0x54,
0x05, 0x69, 0x60, 0x45, 0x57, 0x6C, 0x45, 0x58, 0x74, 0x45, 0x4D, 0x58, 0xBB, 0x47, 0xA8, 0x45,
0x5A, 0xAB, 0x20, 0x17, 0xB1, 0x2C, 0x39, 0x70, 0x25, 0x95, 0x40, 0xC4, 0x78, 0x69, 0xB4, 0xE7,
0xF8, 0x81, 0x78, 0x53, 0x09, 0x62, 0x2C, 0xB7, 0x62, 0xAC, 0x0C, 0x8D, 0x88, 0x37, 0xCB, 0xD0,
0x33, 0x46, 0xFC, 0x95, 0x5F, 0x7C, 0xC6, 0x4A, 0x74, 0x43, 0x4B, 0xAC, 0x8C, 0xAD, 0x40, 0x46,
0x68, 0x64, 0xC0, 0xFA, 0xA0, 0x04, 0x6D, 0x2C, 0x37, 0x6D, 0xCC, 0x88, 0x6A, 0xF4, 0x45, 0x00,
0x21, 0xAB, 0xD4, 0x10, 0xC6, 0x6B, 0x2C, 0xC7, 0xEB, 0xC9, 0x19, 0x95, 0xC8, 0x0F, 0x4A, 0x34,
0x47, 0x76, 0xF4, 0x8A, 0x6A, 0x04, 0x29, 0x70, 0x6C, 0xC7, 0x11, 0x79, 0x8C, 0x1F, 0x50, 0x0C,
0x61, 0xA4, 0x46, 0x90, 0x22, 0xC6, 0x94, 0x80, 0x47, 0x79, 0xEC, 0x47, 0x7F, 0xFC, 0xC7, 0x90,
0xE0, 0x46, 0x11, 0xD9, 0x46, 0x81, 0xFC, 0xC7, 0x80, 0x00, 0x00, 0x21, 0xF9, 0x04, 0x05, 0x0F,
0x00, 0xFF, 0x00, 0x2C, 0x31, 0x00, 0x32, 0x00, 0x53, 0x00, 0x4D, 0x00, 0x00, 0x08, 0xFF, 0x00,
0xFF, 0x09, 0x1C, 0x48, 0xB0, 0xA0, 0xC1, 0x83, 0x08, 0x13, 0x2A, 0x4C, 0x08, 0xC0, 0x92, 0xC3,
0x85, 0x10, 0x23, 0x4A, 0x9C, 0x08, 0x11, 0x80, 0x3A, 0x65, 0x18, 0x01, 0x68, 0x04, 0x40, 0xB1,
0xA3, 0xC7, 0x8F, 0x03, 0xD5, 0x49, 0x2B, 0x35, 0x30, 0x91, 0x26, 0x19, 0x1A, 0x41, 0xAA, 0x5C,
0x89, 0x30, 0xDD, 0x41, 0x4A, 0x89, 0x62, 0xA5, 0x64, 0x49, 0x53, 0xA5, 0xBD, 0x47, 0x08, 0x31,
0xFD, 0xAB, 0x35, 0xB3, 0xA6, 0xCF, 0x89, 0xAA, 0x74, 0x22, 0xA4, 0x34, 0x06, 0x41, 0x4F, 0x90,
0x1B, 0x93, 0xFE, 0x4C, 0xA8, 0xCC, 0x8B, 0x17, 0x88, 0x32, 0x39, 0x22, 0x05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A5, 0xA3, 0x59, 0x0F, 0x09, 0x27, 0x0A, 0xA0, 0x16, 0xF0, 0x85, 0x2C, 0x58, 0x78, 0xF9, 0x88,
0x18, 0xA8, 0xB1, 0xE6, 0x98, 0xA0, 0x2F, 0xFF, 0x1C, 0x73, 0x62, 0xFA, 0x50, 0x00, 0x32, 0x58,
0x19, 0x37, 0xA8, 0x9E, 0xA7, 0xC0, 0x58, 0x89, 0x4A, 0xA1, 0x26, 0x88, 0xE0, 0xF9, 0xC4, 0xD6,
0xE6, 0xCF, 0x87, 0x88, 0xC8, 0x82, 0x15, 0xB9, 0xD2, 0xE8, 0xFD, 0x13, 0x4B, 0x7E, 0x04, 0xA9,
0x36, 0x11, 0x59, 0x04, 0xE2, 0x44, 0x99, 0x1F, 0x02, 0x65, 0x37, 0x50, 0x7F, 0x0D, 0xEA, 0x25,
0x43, 0x2C, 0xB1, 0xC8, 0xD0, 0x98, 0x42, 0x89, 0x84, 0xC6, 0x9A, 0x26, 0x09, 0x2A, 0x98, 0xDB,
0x3F, 0x63, 0x64, 0xC7, 0x8A, 0x6D, 0x33, 0x3D, 0x12, 0x82, 0x69, 0x27, 0x94, 0xF2, 0x4F, 0x29,
0x91, 0xB0, 0x74, 0x9A, 0x0C, 0x94, 0x15, 0x74, 0x15, 0x45, 0x08, 0x74, 0xE8, 0x61, 0x32, 0xCB,
0xD8, 0x85, 0x09, 0x70, 0xAC, 0x44, 0x02, 0x23, 0x39, 0x89, 0xCC, 0x26, 0x54, 0x3A, 0x0F, 0x3C,
0x25, 0xCD, 0x85, 0x02, 0x5D, 0x81, 0x99, 0x44, 0xAC, 0x28, 0x63, 0xA3, 0x87, 0x00, 0x84, 0x60,
0x45, 0x0A, 0x87, 0x84, 0xA0, 0xCE, 0x67, 0x32, 0x2C, 0x73, 0xD2, 0x40, 0x94, 0x9C, 0xF0, 0xCF,
0x15, 0x6A, 0x89, 0xF5, 0x48, 0x41, 0x9A, 0x6C, 0xA9, 0x21, 0x41, 0xD9, 0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8, 0xC1, 0x0E, 0x7A, 0xF0, 0x83, 0x0E, 0x93, 0x83, 0x04, 0x25, 0x00, 0xC2, 0x12, 0x52,
0xCC, 0x10, 0x0E, 0xA3, 0x5F, 0x44, 0x50, 0xF8, 0xB0, 0x0F, 0x48, 0xC4, 0x01, 0x13, 0x4C, 0x81,
0xC3, 0x14, 0x38, 0x11, 0x33, 0x30, 0xCC, 0x18, 0xD7, 0x80, 0x81, 0x1C, 0x5C, 0x98, 0x31, 0x4B,
0x28, 0xC0, 0x1D, 0x37, 0x88, 0x03, 0x04, 0x0C, 0x2D, 0x51, 0x05, 0x19, 0x04, 0x61, 0x82, 0x96,
0xC8, 0x49, 0x40, 0x00, 0x00, 0x3B
};;;;;
#endif
| 1001-collection-codelet | Gif_Tran/source/testData.h | C | gpl3 | 67,569 |
#ifndef __XTYPEDEF_H__
#define __XTYPEDEF_H__
typedef unsigned char BYTE;//8 bit
typedef unsigned short WORD;//16 bit
typedef unsigned long DWORD;//32 bit
typedef unsigned int UINT;
typedef DWORD COLORREF;
typedef unsigned int HANDLE;
typedef void* HRGN;
#ifndef BOOL
#define BOOL UINT
#endif
#ifndef TRUE
#define TRUE 1
#endif
#ifndef FALSE
#define FALSE 0
#endif
#ifndef NULL
#define NULL (void *)0
#endif
#endif
| 1001-collection-codelet | Gif_Tran/source/XXtypeDef.h | C | gpl3 | 484 |
#include "bmpDecode.h"
void Print_errorMsg(char *msg)
{
fprintf(stderr, "%s\n", msg);
exit(5);
}
static DWORD bmp_GetScanLineWidth(WORD bitcount, DWORD wi)
{
switch (bitcount)
{
case 1: wi= (wi+31) >> 3; break;
case 4: wi= (wi+7) >> 1; break;
case 8: wi= wi+3; break;
case 16:wi= (wi*2)+3; break;
case 24:wi= (wi*3)+3; break;
case 32:return wi*4;
}
return wi & ~3;
}
/* bmp header */
int bmp_InitHeader(struct BYTESTREAM *desBmpStrm,int width, int height, int colorCount, BOOL is8Bmp,RGBQUAD *cmap,DWORD *bmpColorBitCount,DWORD *bmpScanLineLength)
{
BMP_FILE_HEADER bmpFileInfo;
BMP_HEAD_INFO bmpHeadInfo;
if (NULL==desBmpStrm){
return 0;
}
/* Writes to the desBmpStrm */
if(colorCount>16 || is8Bmp) {
bmpHeadInfo.biBitCount= 8;
}else if(colorCount>2) {
bmpHeadInfo.biBitCount= 4;
} else {
bmpHeadInfo.biBitCount= 1;
}
colorCount= 1 << ((int)bmpHeadInfo.biBitCount);
bmpHeadInfo.biSize= sizeof(bmpHeadInfo);
bmpHeadInfo.biWidth= width;
bmpHeadInfo.biHeight= height;
bmpHeadInfo.biPlanes= 1;
(*bmpScanLineLength)= bmp_GetScanLineWidth((WORD)bmpHeadInfo.biBitCount, (DWORD)bmpHeadInfo.biWidth);
bmpHeadInfo.biSizeImage= bmpHeadInfo.biHeight * (*bmpScanLineLength);
bmpHeadInfo.biClrUsed= colorCount;
bmpHeadInfo.biClrImportant= colorCount;
//-----------------------------------------------------------
bmpFileInfo.bfType=0x4d42; /* MB */
bmpFileInfo.bfOffBits = sizeof(bmpFileInfo) + bmpHeadInfo.biSize + colorCount*sizeof(RGBQUAD);
bmpFileInfo.bfSize= bmpFileInfo.bfOffBits + bmpHeadInfo.biSizeImage;
hton_U16(bmpFileInfo.bfType);//
bmpFileInfo.bfReserved1= 0;
bmpFileInfo.bfReserved2= 0;
hton_U32(bmpFileInfo.bfSize);
hton_U32(bmpFileInfo.bfOffBits);
hton_U32(bmpHeadInfo.biSize);
hton_U32(bmpHeadInfo.biWidth);
hton_U32(bmpHeadInfo.biHeight);
hton_U16(bmpHeadInfo.biPlanes);
hton_U16(bmpHeadInfo.biBitCount);
bmpHeadInfo.biCompression= 0;
hton_U32(bmpHeadInfo.biSizeImage);
bmpHeadInfo.biXPelsPerMeter= 0;
bmpHeadInfo.biYPelsPerMeter= 0;
hton_U32(bmpHeadInfo.biClrUsed);
hton_U32(bmpHeadInfo.biClrImportant);
desBmpStrm->Write(desBmpStrm,&bmpFileInfo,1,sizeof(bmpFileInfo));
desBmpStrm->Write(desBmpStrm,&bmpHeadInfo, 1,sizeof(bmpHeadInfo));
if(colorCount>16 || is8Bmp) {
(*bmpColorBitCount)= 8;
} else if(colorCount>2) {
(*bmpColorBitCount)= 4;
} else {
(*bmpColorBitCount)= 1;
}
if(colorCount>0) {
desBmpStrm->Write(desBmpStrm,cmap, sizeof(RGBQUAD), colorCount);
}
return 1;
}
| 1001-collection-codelet | Gif_Tran/source/bmpDecode.c | C | gpl3 | 3,021 |
del /F /S *.bmp | 1001-collection-codelet | Gif_Tran/BMPTRAN/22.bat | Batchfile | gpl3 | 15 |
#include "stdio.h"
#include "test_define.h"
struct st_List{
char first;//4
short second;//2
char third;//1
long fouth;//4
char fifth;//1
};
void main()
{
unsigned long pad_cnt = 0;
struct_pad_dump(struct st_List, first, offsetof(struct st_List, second), pad_cnt);
struct_pad_dump(struct st_List, second, offsetof(struct st_List, third), pad_cnt);
struct_pad_dump(struct st_List, third, offsetof(struct st_List, fouth), pad_cnt);
struct_pad_dump(struct st_List, fouth, offsetof(struct st_List, fifth), pad_cnt);
struct_pad_dump(struct st_List, fifth, sizeof(struct st_List), pad_cnt);
}
| 1001-collection-codelet | 语法测试/结构体填充机制.cpp | C++ | gpl3 | 638 |
#include<stdio.h>
#include<string.h>
#include<iostream.h>
void main()
{
double d=12345.65898;
char *p;
p="hello";
sprintf(p,"lf",d);
cout<<p<<endl;
} | 1001-collection-codelet | 语法测试/变量类型.cpp | C++ | gpl3 | 173 |
#include <stdio.h>
#include <malloc.h>
#include <string.h>
int main(void)
{
char * filePrefix="EPG";
char *str;
str= malloc(10);
strcpy(str, "Hello");
printf("String is %s Address is %p\n", str, str);
str = realloc(str, 20);
printf("String is %s New address is %p\n", str, str);
printf("__len====%d\n",strlen(filePrefix));
free(str);
return 0;
} | 1001-collection-codelet | 语法测试/realloc内存结构.c | C | gpl3 | 398 |
#include <stdio.h>
struct st_bittype_a{
struct {
int a:6;
int b:4;
int c:4;
int d:3;
} test;
int e:1;
};
struct st_bittype_b{
int a:6;
int b:4;
int c:4;
int d:3;
int e:1;
};
void main()
{
int a=0x00070001;
int b=0x000007ff;
int c=a|b;
printf("%08X | %08X = %08x \n",a, b, c);
printf("struct_size:%d,%d\n", sizeof(st_bittype_a), sizeof(st_bittype_b));
} | 1001-collection-codelet | 语法测试/位运算.cpp | C++ | gpl3 | 421 |
// WPDlg.h : header file
//
#if !defined(AFX_WPDLG_H__189E2E5A_4C20_45AD_815C_5E8E8980D318__INCLUDED_)
#define AFX_WPDLG_H__189E2E5A_4C20_45AD_815C_5E8E8980D318__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CWPDlg dialog
class CWPDlg : public CDialog
{
// Construction
public:
int getStrLineNum(char *str,int len);
int m_cmdval_read;
int ReadCmdVal();
BOOL WriteCmdVal(int val);
int m_cmdval;
BOOL m_isReading;
void ShowCmdStr(char* str,BOOL isShow);
BOOL m_isSeting;
CString m_cmd_strbuf;
int m_isShengDian;
CWPDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CWPDlg)
enum { IDD = IDD_WP_DIALOG };
CListCtrl m_list_down;
CListCtrl m_list_up;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CWPDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CWPDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnBnSd();
afx_msg void OnBnDd();
afx_msg void OnBnSz();
afx_msg void OnBnTz();
afx_msg void OnBnCd();
afx_msg void OnTimer(UINT nIDEvent);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_WPDLG_H__189E2E5A_4C20_45AD_815C_5E8E8980D318__INCLUDED_)
| 1001-collection-codelet | MFC_List/wp_vc/WPDlg.h | C++ | gpl3 | 1,707 |
; CLW file contains information for the MFC ClassWizard
[General Info]
Version=1
LastClass=CWPDlg
LastTemplate=CDialog
NewFileInclude1=#include "stdafx.h"
NewFileInclude2=#include "WP.h"
ClassCount=3
Class1=CWPApp
Class2=CWPDlg
Class3=CAboutDlg
ResourceCount=3
Resource1=IDD_ABOUTBOX
Resource2=IDR_MAINFRAME
Resource3=IDD_WP_DIALOG
[CLS:CWPApp]
Type=0
HeaderFile=WP.h
ImplementationFile=WP.cpp
Filter=N
[CLS:CWPDlg]
Type=0
HeaderFile=WPDlg.h
ImplementationFile=WPDlg.cpp
Filter=D
LastObject=ID_BN_TZ
BaseClass=CDialog
VirtualFilter=dWC
[CLS:CAboutDlg]
Type=0
HeaderFile=WPDlg.h
ImplementationFile=WPDlg.cpp
Filter=D
[DLG:IDD_ABOUTBOX]
Type=1
Class=CAboutDlg
ControlCount=4
Control1=IDC_STATIC,static,1342177283
Control2=IDC_STATIC,static,1342308480
Control3=IDC_STATIC,static,1342308352
Control4=IDOK,button,1342373889
[DLG:IDD_WP_DIALOG]
Type=1
Class=CWPDlg
ControlCount=9
Control1=ID_BN_SD,button,1342242817
Control2=ID_BN_DD,button,1476460545
Control3=ID_BN_SZ,button,1342242817
Control4=ID_BN_CD,button,1342242817
Control5=ID_BN_TZ,button,1342242817
Control6=IDC_STATIC,button,1342177287
Control7=IDC_CMD_WIN,static,1350701312
Control8=IDC_LIST_X,SysListView32,1350631425
Control9=IDC_LIST_S,SysListView32,1350631425
| 1001-collection-codelet | MFC_List/wp_vc/WP.clw | Clarion | gpl3 | 1,293 |
// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//
#if !defined(AFX_STDAFX_H__CB470A22_4D21_4A25_816E_96EB70A83631__INCLUDED_)
#define AFX_STDAFX_H__CB470A22_4D21_4A25_816E_96EB70A83631__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
#include <afxwin.h> // MFC core and standard components
#include <afxext.h> // MFC extensions
#include <afxdisp.h> // MFC Automation classes
#include <afxdtctl.h> // MFC support for Internet Explorer 4 Common Controls
#ifndef _AFX_NO_AFXCMN_SUPPORT
#include <afxcmn.h> // MFC support for Windows Common Controls
#endif // _AFX_NO_AFXCMN_SUPPORT
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_STDAFX_H__CB470A22_4D21_4A25_816E_96EB70A83631__INCLUDED_)
| 1001-collection-codelet | MFC_List/wp_vc/StdAfx.h | C | gpl3 | 1,054 |
// WP.h : main header file for the WP application
//
#if !defined(AFX_WP_H__4E72150A_D583_4280_BE28_7EF7EB0AB988__INCLUDED_)
#define AFX_WP_H__4E72150A_D583_4280_BE28_7EF7EB0AB988__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#ifndef __AFXWIN_H__
#error include 'stdafx.h' before including this file for PCH
#endif
#include "resource.h" // main symbols
/////////////////////////////////////////////////////////////////////////////
// CWPApp:
// See WP.cpp for the implementation of this class
//
class CWPApp : public CWinApp
{
public:
CWPApp();
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CWPApp)
public:
virtual BOOL InitInstance();
//}}AFX_VIRTUAL
// Implementation
//{{AFX_MSG(CWPApp)
// NOTE - the ClassWizard will add and remove member functions here.
// DO NOT EDIT what you see in these blocks of generated code !
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_WP_H__4E72150A_D583_4280_BE28_7EF7EB0AB988__INCLUDED_)
| 1001-collection-codelet | MFC_List/wp_vc/WP.h | C++ | gpl3 | 1,280 |
// WP.cpp : Defines the class behaviors for the application.
//
#$Author: helloworld $
#$Date: 2011-08-25 23:21:24 +0800 (星期四, 25 八月 2011) $
#$Rev: 11 $
#$URL: https://virtualxp-54269:8443/svn/wp_vc/WPVC/WP.cpp $
#include "stdafx.h"
#include "WP.h"
#include "WPDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CWPApp
BEGIN_MESSAGE_MAP(CWPApp, CWinApp)
//{{AFX_MSG_MAP(CWPApp)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG
ON_COMMAND(ID_HELP, CWinApp::OnHelp)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CWPApp construction
CWPApp::CWPApp()
{
// TODO: add construction code here,
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CWPApp object
CWPApp theApp;
/////////////////////////////////////////////////////////////////////////////
// CWPApp initialization
BOOL CWPApp::InitInstance()
{
AfxEnableControlContainer();
// Standard initialization
// If you are not using these features and wish to reduce the size
// of your final executable, you should remove from the following
// the specific initialization routines you do not need.
#ifdef _AFXDLL
Enable3dControls(); // Call this when using MFC in a shared DLL
#else
Enable3dControlsStatic(); // Call this when linking to MFC statically
#endif
CWPDlg dlg;
m_pMainWnd = &dlg;
int nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
// TODO: Place code here to handle when the dialog is
// dismissed with OK
}
else if (nResponse == IDCANCEL)
{
// TODO: Place code here to handle when the dialog is
// dismissed with Cancel
}
// Since the dialog has been closed, return FALSE so that we exit the
// application, rather than start the application's message pump.
return FALSE;
}
| 1001-collection-codelet | MFC_List/wp_vc/WP.cpp | C++ | gpl3 | 2,168 |
//{{NO_DEPENDENCIES}}
// Microsoft Developer Studio generated include file.
// Used by WP.rc
//
#define ID_BN_SZ 3
#define ID_BN_CD 4
#define ID_BN_TZ 5
#define IDM_ABOUTBOX 0x0010
#define IDD_ABOUTBOX 100
#define IDS_ABOUTBOX 101
#define IDD_WP_DIALOG 102
#define IDR_MAINFRAME 128
#define IDC_LIST2 1003
#define IDC_LIST_X 1003
#define IDC_LIST1 1004
#define IDC_LIST_S 1004
#define ID_BN_SD 1007
#define ID_BN_DD 1008
#define IDC_CMD_WIN 1009
// Next default values for new objects
//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 129
#define _APS_NEXT_COMMAND_VALUE 32771
#define _APS_NEXT_CONTROL_VALUE 1010
#define _APS_NEXT_SYMED_VALUE 101
#endif
#endif
| 1001-collection-codelet | MFC_List/wp_vc/resource.h | C | gpl3 | 1,085 |
// stdafx.cpp : source file that includes just the standard includes
// WP.pch will be the pre-compiled header
// stdafx.obj will contain the pre-compiled type information
#include "stdafx.h"
| 1001-collection-codelet | MFC_List/wp_vc/StdAfx.cpp | C++ | gpl3 | 204 |
$NOMOD51
;------------------------------------------------------------------------------
; This file is part of the C51 Compiler package
; Copyright (c) 1988-2005 Keil Elektronik GmbH and Keil Software, Inc.
; Version 8.01
;
; *** <<< Use Configuration Wizard in Context Menu >>> ***
;------------------------------------------------------------------------------
; STARTUP.A51: This code is executed after processor reset.
;
; To translate this file use A51 with the following invocation:
;
; A51 STARTUP.A51
;
; To link the modified STARTUP.OBJ file to your application use the following
; Lx51 invocation:
;
; Lx51 your object file list, STARTUP.OBJ controls
;
;------------------------------------------------------------------------------
;
; User-defined <h> Power-On Initialization of Memory
;
; With the following EQU statements the initialization of memory
; at processor reset can be defined:
;
; <o> IDATALEN: IDATA memory size <0x0-0x100>
; <i> Note: The absolute start-address of IDATA memory is always 0
; <i> The IDATA space overlaps physically the DATA and BIT areas.
IDATALEN EQU 80H
;
; <o> XDATASTART: XDATA memory start address <0x0-0xFFFF>
; <i> The absolute start address of XDATA memory
XDATASTART EQU 0
;
; <o> XDATALEN: XDATA memory size <0x0-0xFFFF>
; <i> The length of XDATA memory in bytes.
XDATALEN EQU 0
;
; <o> PDATASTART: PDATA memory start address <0x0-0xFFFF>
; <i> The absolute start address of PDATA memory
PDATASTART EQU 0H
;
; <o> PDATALEN: PDATA memory size <0x0-0xFF>
; <i> The length of PDATA memory in bytes.
PDATALEN EQU 0H
;
;</h>
;------------------------------------------------------------------------------
;
;<h> Reentrant Stack Initialization
;
; The following EQU statements define the stack pointer for reentrant
; functions and initialized it:
;
; <h> Stack Space for reentrant functions in the SMALL model.
; <q> IBPSTACK: Enable SMALL model reentrant stack
; <i> Stack space for reentrant functions in the SMALL model.
IBPSTACK EQU 0 ; set to 1 if small reentrant is used.
; <o> IBPSTACKTOP: End address of SMALL model stack <0x0-0xFF>
; <i> Set the top of the stack to the highest location.
IBPSTACKTOP EQU 0xFF +1 ; default 0FFH+1
; </h>
;
; <h> Stack Space for reentrant functions in the LARGE model.
; <q> XBPSTACK: Enable LARGE model reentrant stack
; <i> Stack space for reentrant functions in the LARGE model.
XBPSTACK EQU 0 ; set to 1 if large reentrant is used.
; <o> XBPSTACKTOP: End address of LARGE model stack <0x0-0xFFFF>
; <i> Set the top of the stack to the highest location.
XBPSTACKTOP EQU 0xFFFF +1 ; default 0FFFFH+1
; </h>
;
; <h> Stack Space for reentrant functions in the COMPACT model.
; <q> PBPSTACK: Enable COMPACT model reentrant stack
; <i> Stack space for reentrant functions in the COMPACT model.
PBPSTACK EQU 0 ; set to 1 if compact reentrant is used.
;
; <o> PBPSTACKTOP: End address of COMPACT model stack <0x0-0xFFFF>
; <i> Set the top of the stack to the highest location.
PBPSTACKTOP EQU 0xFF +1 ; default 0FFH+1
; </h>
;</h>
;------------------------------------------------------------------------------
;
; Memory Page for Using the Compact Model with 64 KByte xdata RAM
; <e>Compact Model Page Definition
;
; <i>Define the XDATA page used for PDATA variables.
; <i>PPAGE must conform with the PPAGE set in the linker invocation.
;
; Enable pdata memory page initalization
PPAGEENABLE EQU 0 ; set to 1 if pdata object are used.
;
; <o> PPAGE number <0x0-0xFF>
; <i> uppermost 256-byte address of the page used for PDATA variables.
PPAGE EQU 0
;
; <o> SFR address which supplies uppermost address byte <0x0-0xFF>
; <i> most 8051 variants use P2 as uppermost address byte
PPAGE_SFR DATA 0A0H
;
; </e>
;------------------------------------------------------------------------------
; Standard SFR Symbols
ACC DATA 0E0H
B DATA 0F0H
SP DATA 81H
DPL DATA 82H
DPH DATA 83H
NAME ?C_STARTUP
?C_C51STARTUP SEGMENT CODE
?STACK SEGMENT IDATA
RSEG ?STACK
DS 1
EXTRN CODE (?C_START)
PUBLIC ?C_STARTUP
CSEG AT 0
?C_STARTUP: LJMP STARTUP1
RSEG ?C_C51STARTUP
STARTUP1:
IF IDATALEN <> 0
MOV R0,#IDATALEN - 1
CLR A
IDATALOOP: MOV @R0,A
DJNZ R0,IDATALOOP
ENDIF
IF XDATALEN <> 0
MOV DPTR,#XDATASTART
MOV R7,#LOW (XDATALEN)
IF (LOW (XDATALEN)) <> 0
MOV R6,#(HIGH (XDATALEN)) +1
ELSE
MOV R6,#HIGH (XDATALEN)
ENDIF
CLR A
XDATALOOP: MOVX @DPTR,A
INC DPTR
DJNZ R7,XDATALOOP
DJNZ R6,XDATALOOP
ENDIF
IF PPAGEENABLE <> 0
MOV PPAGE_SFR,#PPAGE
ENDIF
IF PDATALEN <> 0
MOV R0,#LOW (PDATASTART)
MOV R7,#LOW (PDATALEN)
CLR A
PDATALOOP: MOVX @R0,A
INC R0
DJNZ R7,PDATALOOP
ENDIF
IF IBPSTACK <> 0
EXTRN DATA (?C_IBP)
MOV ?C_IBP,#LOW IBPSTACKTOP
ENDIF
IF XBPSTACK <> 0
EXTRN DATA (?C_XBP)
MOV ?C_XBP,#HIGH XBPSTACKTOP
MOV ?C_XBP+1,#LOW XBPSTACKTOP
ENDIF
IF PBPSTACK <> 0
EXTRN DATA (?C_PBP)
MOV ?C_PBP,#LOW PBPSTACKTOP
ENDIF
MOV SP,#?STACK-1
; This code is required if you use L51_BANK.A51 with Banking Mode 4
;<h> Code Banking
; <q> Select Bank 0 for L51_BANK.A51 Mode 4
#if 0
; <i> Initialize bank mechanism to code bank 0 when using L51_BANK.A51 with Banking Mode 4.
EXTRN CODE (?B_SWITCH0)
CALL ?B_SWITCH0 ; init bank mechanism to code bank 0
#endif
;</h>
LJMP ?C_START
END
| 1001-collection-codelet | 播放音乐模拟/何利娟/STARTUP.A51 | Assembly | gpl3 | 6,376 |
E00B DELAY
F300 TIMER0
| 1001-collection-codelet | 播放音乐模拟/何利娟/hlj.ORC | Csound | gpl3 | 27 |
#include<iostream.h>
void main()
{
//short int i=5,k=5,j=5;
// cout<<sizeof(short int)<<endl;
// while(k--)
// { cout<<i<<endl;i=!i;}
// i=j;
// cout<<"endl>>>> "<<i<<endl;
double i=-1.01;
signed int j;
unsigned int k;
int l;
l=(int)i;
k=(unsigned int)i;
j=(signed int)i;
cout<<"double is :"<<i<<endl;
cout<<"int\t "<<l<<"\nunsigned int "<<k<<"\n signed int "<<j<<endl;
double ii=55555.453,jj=55555.875;
cout<<(int)(ii*10)<<"\n"<<(int)(jj*10)<<endl;
} | 1001-collection-codelet | C简单代码/浮点数测试.cpp | C++ | gpl3 | 494 |
#include "stdio.h"
#include "stdlib.h"
#include "string.h"
int main(int argc,char**argv)
{
char *filename = NULL,*keystr = NULL;
FILE *fp = NULL;
char *headbuf = NULL;
int i = 0,j=0,z =0,headlen = 0,keylen = 0,blkcnt=0;
printf(" %0x\n",argc);
printf(" %s\n",argv[0]);
if (NULL != (filename = argv[1]))
{
printf("File is %s.\n",filename);
}
else
{
printf("no file input!\n");
return 0;
}
if (NULL != argv[2])
{
headlen = atoi(argv[2]);
if (headlen <= 0)
{
printf("headlen is invalid!\n");
return 0;
}
printf("File Head len is %d Byte%s.\n",headlen,(headlen>1)?"s":"");
}
else
{
printf("no headlen input!\n");
return 0;
}
if (NULL == argv[3])
{
printf("no key input!\n");
return 0;
}
else
{
keystr = argv[3];
keylen = strlen(keystr);
}
if ((keylen <= 0) || (headlen < keylen) || 0!=(headlen%keylen))
{
printf("key is invalid<keylen=%d>!\n",keylen);
return 0;
}
else
{
printf("key is [%s].<len = %d>\n",keystr,keylen);
}
fp = fopen(filename,"rb+");
if (NULL == fp)
{
printf(" Open file error!\n");
return 0;
}
headbuf = (char*)malloc(headlen+2);
if (NULL == headbuf)
{
fclose(fp);
printf("Malloc error!\n");
return 0;
}
fseek(fp,0,SEEK_SET);
i = fread(headbuf,1,headlen,fp);
if (headlen != i)
{
fclose(fp);
free(headbuf);
printf("fread error <read %d of %d>!\n",i,headlen);
return 0;
}
blkcnt = headlen/keylen;
for (i=0;i< blkcnt;i++)
{
z = keylen*i;
for (j=0;j<keylen;j++)
{
headbuf[z+j] = headbuf[z+j]^keystr[j];
}
}
fseek(fp,0,SEEK_SET);
if (headlen != fwrite(headbuf,1,headlen,fp))
{
printf("write error!\n");
}
else
{
printf("successful!\n");
}
free(headbuf);
fclose(fp);
return 0;
} | 1001-collection-codelet | C简单代码/异或实现的文件加密解密.cpp | C++ | gpl3 | 1,857 |
#include "iostream.h"
#include "math.h"
void main()
{
int row=4;
int col=3;
int **A_val,**D_val;
A_val=new int*[row];
D_val=new int*[row];
int i,j;
for(i=0;i<row;i++)
{
A_val[i]=new int[col];
D_val[i]=new int[col];
}
for(i=0;i<row;i++)
for(j=0;j<col;j++)
{
A_val[i][j]=8;
D_val[i][j]=10;
cout<<A_val[i][j]<<"\n"<<D_val[i][j]<<endl;
}
cout<<i<<" "<<j<<endl;
for(int ii=0;ii<row;ii++)
{
delete []A_val[ii];
delete []D_val[ii];
}
delete []A_val;
delete []D_val;
} | 1001-collection-codelet | C简单代码/动态2D_Matrix.cpp | C++ | gpl3 | 586 |
#include <stdio.h>
#include <math.h>
void Int2Str(unsigned char str[],float var)
{
float num=(float)var;
int t=(int)num;
int j=(int)((num-t)*100);
int i,k;
for(i=4;i>=0;i--)
{
k=(int)pow(10,i);
str[4-i]=(unsigned char)((t/k)+48);
t=t%k;
}
str[5]='.';
str[6]=(unsigned char)((j/10)+48);
str[7]=(unsigned char)((j%10)+48);
str[8]='\0';
}
void main()
{
int i=5;
float var=(float)12345.568;
while(i--)
{unsigned char mystr[9];
var+=0.01;
Int2Str(mystr,var);
printf("%s\n",mystr);
}
}
| 1001-collection-codelet | C简单代码/Int2Str.cpp | C++ | gpl3 | 579 |
#include <iostream.h>
void main (void)
{
int keycode = 0xff;
int row;
int col;
for(col=0;col<4;col++)
{
for(row=0;row<4;row++)
{
keycode = row*10+col;
cout<<keycode<<endl;
}
}
} | 1001-collection-codelet | C简单代码/keyboard.cpp | C++ | gpl3 | 233 |
#include "stdio.h"
#include "stdlib.h"
#include "string.h"
typedef unsigned char T_U8; /* unsigned 8 bit integer */
typedef char T_S8; /* unsigned 8 bit integer */
typedef unsigned int T_U32,T_BOOL; /* unsigned 32 bit integer */
typedef signed int T_S32; /* signed 32 bit integer */
typedef void T_VOID;
#define AK_FALSE 0
#define AK_TRUE 1
#define AK_NULL NULL
static T_VOID U64_Add_Dump(T_S8 *tips, T_U8 *valBuf, T_U8 msb)
{
T_U8 strbuf[22];
T_U8 i =0;
memset(strbuf,0,22);
for (i=0;i<msb;i++)
{
strbuf[i] = valBuf[msb-1-i] + '0';
}
printf("%s%015s \n",tips,strbuf);
}
/**
* @BRIEF long integer add
* @AUTHOR wang xi
* @DATE 2010-10-28
* @PARAM sumBuf - a long integer buffer and for restory the sum .
* augendBuf - a long integer buffer for add to sumBuf
* msb - most hight bit
* base - mathematic base number(must between 2 and 255)
* @RETURN T_S32
* @RETVAL the msb of sum
*/
T_S32 LongInt_Add(T_U8 *sumBuf,const T_U8 *augendBuf,T_S32 msb,T_U8 base)
{
T_S32 i = 0 , tmpVal = 0;
T_S32 mostHighBit = msb;
T_BOOL bExistCarry = AK_FALSE;
for (i=0;i<mostHighBit;i++)
{
sumBuf[i] = sumBuf[i] + augendBuf[i];
}
do
{
bExistCarry = AK_FALSE;
for (i=0;i<mostHighBit;i++)
{
tmpVal = sumBuf[i];
if (tmpVal >= base)
{
bExistCarry = AK_TRUE;
sumBuf[i] = tmpVal%base;
sumBuf[i+1] = sumBuf[i+1] + tmpVal/base;
if (mostHighBit < (i+2))
{
mostHighBit = (i+2);
}
}
}
} while(bExistCarry);
return mostHighBit;
}
/**
* @BRIEF 64 bit integer tanslate to Ascii string
* @AUTHOR wang xi
* @DATE 2010-10-28
* @PARAM high /low - 64 bit integer high 32 bit and low 32 bit
* srcBuf - restore the translate result
* @RETURN T_S32
* @RETVAL 0 - translate successful
* @RETVAL other - Failed
*/
T_S32 U64_Int2Str(T_U32 high, T_U32 low, T_U8 *strBuf)
{
T_U8 val1[22] = {0};
T_U8 val2[22] = {0};
T_U8 i=0;
T_U32 tmpVal = 0;
T_U32 length = 0;
T_U8 mostBit = 0;
if (AK_NULL == strBuf)
{
return -1;
}
memset(val1,0,sizeof(val1));
if (high > 0)
{
memset(val2,0,sizeof(val2));
// "4294967296" 2^32
val2[0] = 6;val2[1] = 9;val2[2] = 2;val2[3] = 7;val2[4] = 6;
val2[5] = 9;val2[6] = 4;val2[7] = 9;val2[8] = 2;val2[9] = 4;
mostBit = 10;
length = high;
while(length--)
{
U64_Add_Dump("+",val2,10);
mostBit = LongInt_Add(val1,val2,mostBit,10);
U64_Add_Dump("=",val1,mostBit);
}
}
tmpVal = low;
i = 0;
memset(val2,0,sizeof(val2));
while(tmpVal>=10)
{
val2[i] = tmpVal%10;
tmpVal = tmpVal/10;
i++;
}
val2[i] = tmpVal;
U64_Add_Dump("*",val2,i+1);
if (mostBit < (i+1))
{
mostBit = i+1;
}
mostBit = LongInt_Add(val1,val2,mostBit,10);
U64_Add_Dump("=",val1,mostBit);
for (i=0;i<mostBit;i++)
{
strBuf[i] = val1[mostBit-1-i] + '0';
}
return 0;
}
#define MAX_STR_LEN 100
int main()
{
T_U8 val1[MAX_STR_LEN] = {0};
memset(val1,0,MAX_STR_LEN);
U64_Int2Str(4,0,val1);
printf("\n#%s\n",val1);
return 0;
}
| 1001-collection-codelet | C简单代码/长整数加法.cpp | C++ | gpl3 | 3,345 |
#include <stdio.h>
#include <conio.h>
void main()
{
char flower[] = {'\\','|','/','*'};
char c;
unsigned int count=0,flag=1;
long unsigned int delay;
while(1)
{ while(flag)
{
printf("%c\b",flower[count++%4]);
delay=65552225;
do{;}while(delay--);
if(kbhit())flag=0;
}
c=getch();
flag=1;
if(c=='q')
{
printf("\n over \n");
delay=65522200;
do{;}while(delay--);
return;
}
}
}
| 1001-collection-codelet | C简单代码/HELL.C | C | gpl3 | 499 |
#!/usr/bin/env python
"create rootfs"
import sys
import os
import getopt
support_fs_tbl = ["yaffs", "cramfs", "ramfs"]
#line swith char
linesep = os.linesep
#option table
#if option has param,must follow char':' or '=' when long opt
opt_short_tbl = 'hf:v'
opt_long_tbl = ["help", "fstype="]
#usage string for tips
usage_str = '[options] -f fsname' + linesep +\
'\t-f, --fstype=name\tfilesystem types name' + linesep +\
'\t support list:' + str(support_fs_tbl) +linesep +\
'\t-v\t\t\tverbose mode' + linesep +\
'\t-h, --help\t\tprint this message'
#is verbose mode
debug = False
#parse type
fstype = "unsupport"
#my debug fucntion
def mydebug(*arglist, **argdict):
global debug
if not debug:
return 0
for i in arglist:
print i,
print
for i in argdict:
print i, argdict[i],
def yaffs_fs_create():
mydebug('create yaffs')
def ramfs_fs_create():
mydebug('create ramfs')
def cramfs_fs_create():
mydebug('create cramfs')
def usage():
global usage_str
print 'usage:%s %s' % (sys.argv[0], usage_str)
def main():
"main function for rootfs create dispatch"
#print sys.argv
#get argv count
if len(sys.argv) < 2:
print 'no options input.'
usage()
return 2
try:
#parse command line options
opts, args = getopt.getopt(sys.argv[1:],
opt_short_tbl,
opt_long_tbl)
except getopt.GetoptError:
print 'get options error.'
usage()
return 2
else:
global fstype, debug
for o, a in opts:
if o == "-v":
debug = True
if o in ("-h", "--help"):
usage()
sys.exit()
if o in ("-f", "--fstype"):
fstype = a
mydebug('input fstype=', a)
break
if fstype == support_fs_tbl[0]:
yaffs_fs_create()
elif fstype == support_fs_tbl[1]:
cramfs_fs_create()
elif fstype == support_fs_tbl[2]:
ramfs_fs_create()
else:
print 'unsupport fs type:%s.' % (fstype)
usage()
return 0
if __name__ == '__main__':
main()
| 1001-collection-codelet | Python/get_opt.py | Python | gpl3 | 2,355 |
#!/usr/bin/env python
"create rootfs"
import sys
import os
import getopt
import time
#line swith char
linesep = os.linesep
#rootfs class, base is object
class CRootFs(object):
"""
rootfs base class
"""
def __init__(self, name, fstype):
global linesep
#time stamp
self.stamp = time.strftime("%Y%m%d%H%M%S")
self.name = fstype
self.path = name + self.stamp + '.' + self.name
mydebug('Init rootfs')
def info(self):
print 'path is: %s%s' % (self.path, linesep)
#yaffs class
class CYaffsFs(CRootFs):
"""
yaffs
"""
def __init__(self, name):
super(CYaffsFs, self).__init__(name, 'yaffs')
mydebug('Init yaffs')
#ramfs class
class CRamFs(CRootFs):
"""
ramfs
"""
def __init__(self, name):
super(CRamFs, self).__init__(name, 'ramfs')
mydebug('Init ramfs')
#cramfs class
class CCramFs(CRootFs):
"""
cramfs
"""
def __init__(self, name):
super(CCramFs, self).__init__(name, 'cramfs')
mydebug('Init cramfs')
#global variables define
support_fs_tbl = {
"yaffs":CYaffsFs,
"ramfs":CRamFs,
"cramfs":CCramFs,
}
#option table
#if option has param,must follow char':' or '=' when long opt
opt_short_tbl = 'hf:v'
opt_long_tbl = ["help", "fstype="]
#usage string for tips
usage_str = '[options] -f fsname' + linesep +\
'\t-f, --fstype=name\tfilesystem types name' + linesep +\
'\t support list:' + str(support_fs_tbl.keys()) +linesep +\
'\t-v\t\t\tverbose mode' + linesep +\
'\t-h, --help\t\tprint this message'
#is verbose mode
debug = False
#my debug fucntion
def mydebug(*arglist, **argdict):
global debug
if not debug:
return 0
for i in arglist:
print i,
print
for i in argdict:
print i, argdict[i],
#virtual rootfs class
class RootFs(object):
"""
rootfs
"""
def __init__(self, key, name):
global support_fs_tbl
self.key = key
self.cls_tab = support_fs_tbl
self.cls_name = self.cls_tab[key];
self.instance = self.cls_name(name)
def dump(self, dump_name):
print dump_name
super(self.cls_name, self.instance).info()
def usage():
global usage_str
print 'usage:%s %s' % (sys.argv[0], usage_str)
def main():
"main function for rootfs create dispatch"
#print sys.argv
#get argv count
if len(sys.argv) < 2:
print 'no options input.'
usage()
return 2
try:
#parse command line options
opts, args = getopt.getopt(sys.argv[1:],
opt_short_tbl,
opt_long_tbl)
except getopt.GetoptError:
print 'get options error.'
usage()
return 2
else:
global debug
fstype = "unsupport"
for o, a in opts:
if o == "-v":
debug = True
elif o in ("-h", "--help"):
usage()
sys.exit()
elif o in ("-f", "--fstype"):
fstype = a
mydebug('input fstype=', a)
else:
pass
if fstype not in support_fs_tbl.keys():
print 'unsupport fs type:%s.' % (fstype)
usage()
return 0
else:
myrootfs = RootFs(fstype, "img")
myrootfs.dump("elvon dump:")
if __name__ == '__main__':
main()
| 1001-collection-codelet | Python/class_test.py | Python | gpl3 | 3,626 |
#!/usr/bin/env python
i = 1 + 2 * 4
print i,
print 'test raw input'
i = raw_input('pls input:\n')
print int(i)
print 'test while'
count = 0
while count <= 10:
print count
count += 1
print 'test for'
for i in range(11):
print i
print 'test if elif else'
i = int(raw_input('input num\n'))
if i > 0:
print 'sign is +'
elif i < 0:
print 'sign is -'
else:
print 'num is 0'
print 'test list OR array'
numset = [1,2,3,4,5]
total = 0
for i in range(5):
total += numset[i]
print 'total is', total
for i in range(5):
numset[i] = int(raw_input('pls input ' + str(i+1) + ' number\n'))
print 'sum is', sum(numset)
print 'average is', float(sum(numset))/5
print 'test x < y < x'
while 1:
if 1 <= int(raw_input('input a num between 1 - 100\n')) <= 100:
break
else:
print 'error'
print 'test sort'
i = int(raw_input('input num 1\n'))
j = int(raw_input('input num 2\n'))
k = int(raw_input('input num 3\n'))
count = 0
for count in range(2):
if i > j:
tmp = i
i = j
j = tmp
if j > k:
tmp = j
j = k
k = tmp
print i, j, k
print 'test Tkinter'
import Tkinter
top = Tkinter.Tk()
hello = Tkinter.Label(top, text='hello world')
hello.pack()
quit = Tkinter.Button(top, text='Quit',
command=top.quit, bg='red', fg='white')
quit.pack(fill=Tkinter.X, expand=1)
Tkinter.mainloop()
| 1001-collection-codelet | Python/test | Python | gpl3 | 1,453 |
/* Getopt for GNU.
NOTE: gnu_getopt is now part of the C library, so if you don't know what
"Keep this file name-space clean" means, talk to roland@gnu.ai.mit.edu
before changing it!
Copyright (C) 1987, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97
Free Software Foundation, Inc.
This file is part of the GNU C Library. Its master source is NOT part of
the C library, however. The master source lives in /gd/gnu/lib.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public License as
published by the Free Software Foundation; either version 2 of the
License, or (at your option) any later version.
The GNU C Library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with the GNU C Library; see the file COPYING.LIB. If not,
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
/*
* modified July 9, 1999 by mark gates <mgates@nlanr.net>
* Dec 17, 1999
*
* renamed all functions and variables by prepending "gnu_"
* removed/redid a bunch of stuff under the assumption we're
* using a modern standard C compiler.
* add #include <string.h> here for strncmp(). Originally
* it was included only under special conditions.
*
* $Id: gnu_getopt.c,v 1.1.1.1 2004/05/18 01:50:44 kgibbs Exp $
*/
#include <stdio.h>
#include <stdlib.h>
#ifndef _MSC_VER /* Visual C++ doesn't have unistd.h */
#include <unistd.h>
#endif
#include <string.h>
#ifndef _
/* This is for other GNU distributions with internationalized messages.
When compiling libc, the _ macro is predefined. */
#ifdef HAVE_LIBINTL_H
#include <libintl.h>
#define _(msgid) gettext (msgid)
#else
#define _(msgid) (msgid)
#endif
#endif
/* This version of `gnu_getopt' appears to the caller like standard
Unix `getopt' but it behaves differently for the user, since it
allows the user to intersperse the options with the other
arguments.
As `gnu_getopt' works, it permutes the elements of ARGV so that,
when it is done, all the options precede everything else. Thus
all application programs are extended to handle flexible argument order.
Setting the environment variable POSIXLY_CORRECT disables permutation.
Then the behavior is completely standard.
GNU application programs can use a third alternative mode in which
they can distinguish the relative order of options and other arguments. */
#include "gnu_getopt.h"
#ifdef __cplusplus
extern "C" {
#endif
/* For communication from `gnu_getopt' to the caller.
When `gnu_getopt' finds an option that takes an argument,
the argument value is returned here.
Also, when `ordering' is RETURN_IN_ORDER,
each non-option ARGV-element is returned here. */
char *gnu_optarg = NULL;
/* Index in ARGV of the next element to be scanned.
This is used for communication to and from the caller
and for communication between successive calls to `gnu_getopt'.
On entry to `gnu_getopt', zero means this is the first call; initialize.
When `gnu_getopt' returns -1, this is the index of the first of the
non-option elements that the caller should itself scan.
Otherwise, `gnu_optind' communicates from one call to the next
how much of ARGV has been scanned so far. */
/* 1003.2 says this must be 1 before any call. */
int gnu_optind = 1;
/* Formerly, initialization of gnu_getopt depended on gnu_optind==0, which
causes problems with re-calling gnu_getopt as programs generally don't
know that. */
int __gnu_getopt_initialized = 0;
/* The next char to be scanned in the option-element
in which the last option character we returned was found.
This allows us to pick up the scan where we left off.
If this is zero, or a null string, it means resume the scan
by advancing to the next ARGV-element. */
static char *nextchar;
/* Callers store zero here to inhibit the error message
for unrecognized options. */
int gnu_opterr = 1;
/* Set to an option character which was unrecognized.
This must be initialized on some systems to avoid linking in the
system's own gnu_getopt implementation. */
int gnu_optopt = '?';
/* Describe how to deal with options that follow non-option ARGV-elements.
If the caller did not specify anything,
the default is REQUIRE_ORDER if the environment variable
POSIXLY_CORRECT is defined, PERMUTE otherwise.
REQUIRE_ORDER means don't recognize them as options;
stop option processing when the first non-option is seen.
This is what Unix does.
This mode of operation is selected by either setting the environment
variable POSIXLY_CORRECT, or using `+' as the first character
of the list of option characters.
PERMUTE is the default. We permute the contents of ARGV as we scan,
so that eventually all the non-options are at the end. This allows options
to be given in any order, even with programs that were not written to
expect this.
RETURN_IN_ORDER is an option available to programs that were written
to expect options and other ARGV-elements in any order and that care about
the ordering of the two. We describe each non-option ARGV-element
as if it were the argument of an option with character code 1.
Using `-' as the first character of the list of option characters
selects this mode of operation.
The special argument `--' forces an end of option-scanning regardless
of the value of `ordering'. In the case of RETURN_IN_ORDER, only
`--' can cause `gnu_getopt' to return -1 with `gnu_optind' != ARGC. */
static enum {
REQUIRE_ORDER, PERMUTE, RETURN_IN_ORDER
} ordering;
/* Value of POSIXLY_CORRECT environment variable. */
static char *posixly_correct;
/* Avoid depending on library functions or files
whose names are inconsistent. */
static char *
my_index( const char* str, int chr ) {
while ( *str ) {
if ( *str == chr )
return(char *) str;
str++;
}
return 0;
}
/* Handle permutation of arguments. */
/* Describe the part of ARGV that contains non-options that have
been skipped. `first_nonopt' is the index in ARGV of the first of them;
`last_nonopt' is the index after the last of them. */
static int first_nonopt;
static int last_nonopt;
/* Exchange two adjacent subsequences of ARGV.
One subsequence is elements [first_nonopt,last_nonopt)
which contains all the non-options that have been skipped so far.
The other is elements [last_nonopt,gnu_optind), which contains all
the options processed since those non-options were skipped.
`first_nonopt' and `last_nonopt' are relocated so that they describe
the new indices of the non-options in ARGV after they are moved. */
static void exchange( char **argv );
static void
exchange( char **argv ) {
int bottom = first_nonopt;
int middle = last_nonopt;
int top = gnu_optind;
char *tem;
/* Exchange the shorter segment with the far end of the longer segment.
That puts the shorter segment into the right place.
It leaves the longer segment in the right place overall,
but it consists of two parts that need to be swapped next. */
while ( top > middle && middle > bottom ) {
if ( top - middle > middle - bottom ) {
/* Bottom segment is the short one. */
int len = middle - bottom;
register int i;
/* Swap it with the top part of the top segment. */
for ( i = 0; i < len; i++ ) {
tem = argv[bottom + i];
argv[bottom + i] = argv[top - (middle - bottom) + i];
argv[top - (middle - bottom) + i] = tem;
}
/* Exclude the moved bottom segment from further swapping. */
top -= len;
} else {
/* Top segment is the short one. */
int len = top - middle;
register int i;
/* Swap it with the bottom part of the bottom segment. */
for ( i = 0; i < len; i++ ) {
tem = argv[bottom + i];
argv[bottom + i] = argv[middle + i];
argv[middle + i] = tem;
}
/* Exclude the moved top segment from further swapping. */
bottom += len;
}
}
/* Update records for the slots the non-options now occupy. */
first_nonopt += (gnu_optind - last_nonopt);
last_nonopt = gnu_optind;
}
/* Initialize the internal data when the first call is made. */
static const char *
_gnu_getopt_initialize( int argc,
char *const * argv,
const char *optstring );
static const char *
_gnu_getopt_initialize( int argc,
char *const * argv,
const char *optstring ) {
/* Start processing options with ARGV-element 1 (since ARGV-element 0
is the program name); the sequence of previously skipped
non-option ARGV-elements is empty. */
first_nonopt = last_nonopt = gnu_optind = 1;
nextchar = NULL;
posixly_correct = getenv ("POSIXLY_CORRECT");
/* Determine how to handle the ordering of options and nonoptions. */
if ( optstring[0] == '-' ) {
ordering = RETURN_IN_ORDER;
++optstring;
} else if ( optstring[0] == '+' ) {
ordering = REQUIRE_ORDER;
++optstring;
} else if ( posixly_correct != NULL )
ordering = REQUIRE_ORDER;
else
ordering = PERMUTE;
return optstring;
}
/* Scan elements of ARGV (whose length is ARGC) for option characters
given in OPTSTRING.
If an element of ARGV starts with '-', and is not exactly "-" or "--",
then it is an option element. The characters of this element
(aside from the initial '-') are option characters. If `gnu_getopt'
is called repeatedly, it returns successively each of the option characters
from each of the option elements.
If `gnu_getopt' finds another option character, it returns that character,
updating `gnu_optind' and `nextchar' so that the next call to `gnu_getopt' can
resume the scan with the following option character or ARGV-element.
If there are no more option characters, `gnu_getopt' returns -1.
Then `gnu_optind' is the index in ARGV of the first ARGV-element
that is not an option. (The ARGV-elements have been permuted
so that those that are not options now come last.)
OPTSTRING is a string containing the legitimate option characters.
If an option character is seen that is not listed in OPTSTRING,
return '?' after printing an error message. If you set `gnu_opterr' to
zero, the error message is suppressed but we still return '?'.
If a char in OPTSTRING is followed by a colon, that means it wants an arg,
so the following text in the same ARGV-element, or the text of the following
ARGV-element, is returned in `gnu_optarg'. Two colons mean an option that
wants an optional arg; if there is text in the current ARGV-element,
it is returned in `gnu_optarg', otherwise `gnu_optarg' is set to zero.
If OPTSTRING starts with `-' or `+', it requests different methods of
handling the non-option ARGV-elements.
See the comments about RETURN_IN_ORDER and REQUIRE_ORDER, above.
Long-named options begin with `--' instead of `-'.
Their names may be abbreviated as long as the abbreviation is unique
or is an exact match for some defined option. If they have an
argument, it follows the option name in the same ARGV-element, separated
from the option name by a `=', or else the in next ARGV-element.
When `gnu_getopt' finds a long-named option, it returns 0 if that option's
`flag' field is nonzero, the value of the option's `val' field
if the `flag' field is zero.
The elements of ARGV aren't really const, because we permute them.
But we pretend they're const in the prototype to be compatible
with other systems.
LONGOPTS is a vector of `struct option' terminated by an
element containing a name which is zero.
LONGIND returns the index in LONGOPT of the long-named option found.
It is only valid when a long-named option has been found by the most
recent call.
If LONG_ONLY is nonzero, '-' as well as '--' can introduce
long-named options. */
int
_gnu_getopt_internal( int argc,
char *const *argv,
const char *optstring,
const struct option *longopts,
int *longind,
int long_only ) {
gnu_optarg = NULL;
if ( !__gnu_getopt_initialized || gnu_optind == 0 ) {
optstring = _gnu_getopt_initialize (argc, argv, optstring);
gnu_optind = 1; /* Don't scan ARGV[0], the program name. */
__gnu_getopt_initialized = 1;
}
/* Test whether ARGV[gnu_optind] points to a non-option argument.
Either it does not have option syntax, or there is an environment flag
from the shell indicating it is not an option. The later information
is only used when the used in the GNU libc. */
#define NONOPTION_P (argv[gnu_optind][0] != '-' || argv[gnu_optind][1] == '\0')
if ( nextchar == NULL || *nextchar == '\0' ) {
/* Advance to the next ARGV-element. */
/* Give FIRST_NONOPT & LAST_NONOPT rational values if OPTIND has been
moved back by the user (who may also have changed the arguments). */
if ( last_nonopt > gnu_optind )
last_nonopt = gnu_optind;
if ( first_nonopt > gnu_optind )
first_nonopt = gnu_optind;
if ( ordering == PERMUTE ) {
/* If we have just processed some options following some non-options,
exchange them so that the options come first. */
if ( first_nonopt != last_nonopt && last_nonopt != gnu_optind )
exchange ((char **) argv);
else if ( last_nonopt != gnu_optind )
first_nonopt = gnu_optind;
/* Skip any additional non-options
and extend the range of non-options previously skipped. */
while ( gnu_optind < argc && NONOPTION_P )
gnu_optind++;
last_nonopt = gnu_optind;
}
/* The special ARGV-element `--' means premature end of options.
Skip it like a null option,
then exchange with previous non-options as if it were an option,
then skip everything else like a non-option. */
if ( gnu_optind != argc && !strcmp (argv[gnu_optind], "--") ) {
gnu_optind++;
if ( first_nonopt != last_nonopt && last_nonopt != gnu_optind )
exchange ((char **) argv);
else if ( first_nonopt == last_nonopt )
first_nonopt = gnu_optind;
last_nonopt = argc;
gnu_optind = argc;
}
/* If we have done all the ARGV-elements, stop the scan
and back over any non-options that we skipped and permuted. */
if ( gnu_optind == argc ) {
/* Set the next-arg-index to point at the non-options
that we previously skipped, so the caller will digest them. */
if ( first_nonopt != last_nonopt )
gnu_optind = first_nonopt;
return -1;
}
/* If we have come to a non-option and did not permute it,
either stop the scan or describe it to the caller and pass it by. */
if ( NONOPTION_P ) {
if ( ordering == REQUIRE_ORDER )
return -1;
gnu_optarg = argv[gnu_optind++];
return 1;
}
/* We have found another option-ARGV-element.
Skip the initial punctuation. */
nextchar = (argv[gnu_optind] + 1
+ (longopts != NULL && argv[gnu_optind][1] == '-'));
}
/* Decode the current option-ARGV-element. */
/* Check whether the ARGV-element is a long option.
If long_only and the ARGV-element has the form "-f", where f is
a valid short option, don't consider it an abbreviated form of
a long option that starts with f. Otherwise there would be no
way to give the -f short option.
On the other hand, if there's a long option "fubar" and
the ARGV-element is "-fu", do consider that an abbreviation of
the long option, just like "--fu", and not "-f" with arg "u".
This distinction seems to be the most useful approach. */
if ( longopts != NULL
&& (argv[gnu_optind][1] == '-'
|| (long_only && (argv[gnu_optind][2] || !my_index (optstring, argv[gnu_optind][1])))) ) {
char *nameend;
const struct option *p;
const struct option *pfound = NULL;
int exact = 0;
int ambig = 0;
int indfound = -1;
int option_index;
for ( nameend = nextchar; *nameend && *nameend != '='; nameend++ )
/* Do nothing. */ ;
/* Test all long options for either exact match
or abbreviated matches. */
for ( p = longopts, option_index = 0; p->name; p++, option_index++ )
if ( !strncmp (p->name, nextchar, nameend - nextchar) ) {
if ( (unsigned int) (nameend - nextchar)
== (unsigned int) strlen (p->name) ) {
/* Exact match found. */
pfound = p;
indfound = option_index;
exact = 1;
break;
} else if ( pfound == NULL ) {
/* First nonexact match found. */
pfound = p;
indfound = option_index;
} else
/* Second or later nonexact match found. */
ambig = 1;
}
if ( ambig && !exact ) {
if ( gnu_opterr )
fprintf (stderr, _("%s: option `%s' is ambiguous\n"),
argv[0], argv[gnu_optind]);
nextchar += strlen (nextchar);
gnu_optind++;
gnu_optopt = 0;
return '?';
}
if ( pfound != NULL ) {
option_index = indfound;
gnu_optind++;
if ( *nameend ) {
/* Don't test has_arg with >, because some C compilers don't
allow it to be used on enums. */
if ( pfound->has_arg )
gnu_optarg = nameend + 1;
else {
if ( gnu_opterr ) {
if ( argv[gnu_optind - 1][1] == '-' ) {
/* --option */
fprintf (stderr,
_("%s: option `--%s' doesn't allow an argument\n"),
argv[0], pfound->name);
} else {
/* +option or -option */
fprintf (stderr,
_("%s: option `%c%s' doesn't allow an argument\n"),
argv[0], argv[gnu_optind - 1][0], pfound->name);
}
}
nextchar += strlen (nextchar);
gnu_optopt = pfound->val;
return '?';
}
} else if ( pfound->has_arg == 1 ) {
if ( gnu_optind < argc )
gnu_optarg = argv[gnu_optind++];
else {
if ( gnu_opterr )
fprintf (stderr,
_("%s: option `%s' requires an argument\n"),
argv[0], argv[gnu_optind - 1]);
nextchar += strlen (nextchar);
gnu_optopt = pfound->val;
return optstring[0] == ':' ? ':' : '?';
}
}
nextchar += strlen (nextchar);
if ( longind != NULL )
*longind = option_index;
if ( pfound->flag ) {
*(pfound->flag) = pfound->val;
return 0;
}
return pfound->val;
}
/* Can't find it as a long option. If this is not gnu_getopt_long_only,
or the option starts with '--' or is not a valid short
option, then it's an error.
Otherwise interpret it as a short option. */
if ( !long_only || argv[gnu_optind][1] == '-'
|| my_index (optstring, *nextchar) == NULL ) {
if ( gnu_opterr ) {
if ( argv[gnu_optind][1] == '-' )
/* --option */
fprintf (stderr, _("%s: unrecognized option `--%s'\n"),
argv[0], nextchar);
else
/* +option or -option */
fprintf (stderr, _("%s: unrecognized option `%c%s'\n"),
argv[0], argv[gnu_optind][0], nextchar);
}
nextchar = (char *) "";
gnu_optind++;
gnu_optopt = 0;
return '?';
}
}
/* Look at and handle the next short option-character. */
{
char c = *nextchar++;
char *temp = my_index (optstring, c);
/* Increment `gnu_optind' when we start to process its last character. */
if ( *nextchar == '\0' )
++gnu_optind;
if ( temp == NULL || c == ':' ) {
if ( gnu_opterr ) {
if ( posixly_correct )
/* 1003.2 specifies the format of this message. */
fprintf (stderr, _("%s: illegal option -- %c\n"),
argv[0], c);
else
fprintf (stderr, _("%s: invalid option -- %c\n"),
argv[0], c);
}
gnu_optopt = c;
return '?';
}
/* Convenience. Treat POSIX -W foo same as long option --foo */
if ( temp[0] == 'W' && temp[1] == ';' ) {
char *nameend;
const struct option *p;
const struct option *pfound = NULL;
int exact = 0;
int ambig = 0;
int indfound = 0;
int option_index;
/* This is an option that requires an argument. */
if ( *nextchar != '\0' ) {
gnu_optarg = nextchar;
/* If we end this ARGV-element by taking the rest as an arg,
we must advance to the next element now. */
gnu_optind++;
} else if ( gnu_optind == argc ) {
if ( gnu_opterr ) {
/* 1003.2 specifies the format of this message. */
fprintf (stderr, _("%s: option requires an argument -- %c\n"),
argv[0], c);
}
gnu_optopt = c;
if ( optstring[0] == ':' )
c = ':';
else
c = '?';
return c;
} else
/* We already incremented `gnu_optind' once;
increment it again when taking next ARGV-elt as argument. */
gnu_optarg = argv[gnu_optind++];
/* gnu_optarg is now the argument, see if it's in the
table of longopts. */
for ( nextchar = nameend = gnu_optarg; *nameend && *nameend != '='; nameend++ )
/* Do nothing. */ ;
/* Test all long options for either exact match
or abbreviated matches. */
for ( p = longopts, option_index = 0; p->name; p++, option_index++ )
if ( !strncmp (p->name, nextchar, nameend - nextchar) ) {
if ( (unsigned int) (nameend - nextchar) == strlen (p->name) ) {
/* Exact match found. */
pfound = p;
indfound = option_index;
exact = 1;
break;
} else if ( pfound == NULL ) {
/* First nonexact match found. */
pfound = p;
indfound = option_index;
} else
/* Second or later nonexact match found. */
ambig = 1;
}
if ( ambig && !exact ) {
if ( gnu_opterr )
fprintf (stderr, _("%s: option `-W %s' is ambiguous\n"),
argv[0], argv[gnu_optind]);
nextchar += strlen (nextchar);
gnu_optind++;
return '?';
}
if ( pfound != NULL ) {
option_index = indfound;
if ( *nameend ) {
/* Don't test has_arg with >, because some C compilers don't
allow it to be used on enums. */
if ( pfound->has_arg )
gnu_optarg = nameend + 1;
else {
if ( gnu_opterr )
fprintf (stderr, _("\
%s: option `-W %s' doesn't allow an argument\n"),
argv[0], pfound->name);
nextchar += strlen (nextchar);
return '?';
}
} else if ( pfound->has_arg == 1 ) {
if ( gnu_optind < argc )
gnu_optarg = argv[gnu_optind++];
else {
if ( gnu_opterr )
fprintf (stderr,
_("%s: option `%s' requires an argument\n"),
argv[0], argv[gnu_optind - 1]);
nextchar += strlen (nextchar);
return optstring[0] == ':' ? ':' : '?';
}
}
nextchar += strlen (nextchar);
if ( longind != NULL )
*longind = option_index;
if ( pfound->flag ) {
*(pfound->flag) = pfound->val;
return 0;
}
return pfound->val;
}
nextchar = NULL;
return 'W'; /* Let the application handle it. */
}
if ( temp[1] == ':' ) {
if ( temp[2] == ':' ) {
/* This is an option that accepts an argument optionally. */
if ( *nextchar != '\0' ) {
gnu_optarg = nextchar;
gnu_optind++;
} else
gnu_optarg = NULL;
nextchar = NULL;
} else {
/* This is an option that requires an argument. */
if ( *nextchar != '\0' ) {
gnu_optarg = nextchar;
/* If we end this ARGV-element by taking the rest as an arg,
we must advance to the next element now. */
gnu_optind++;
} else if ( gnu_optind == argc ) {
if ( gnu_opterr ) {
/* 1003.2 specifies the format of this message. */
fprintf (stderr,
_("%s: option requires an argument -- %c\n"),
argv[0], c);
}
gnu_optopt = c;
if ( optstring[0] == ':' )
c = ':';
else
c = '?';
} else
/* We already incremented `gnu_optind' once;
increment it again when taking next ARGV-elt as argument. */
gnu_optarg = argv[gnu_optind++];
nextchar = NULL;
}
}
return c;
}
}
int
gnu_getopt ( int argc,
char *const *argv,
const char *optstring ) {
return _gnu_getopt_internal (argc, argv, optstring,
(const struct option *) 0,
(int *) 0,
0);
}
#ifdef __cplusplus
} /* end extern "C" */
#endif
#ifdef TEST
/* Compile with -DTEST to make an executable for use in testing
the above definition of `gnu_getopt'. */
int
main (argc, argv)
int argc;
char **argv;
{
int c;
int digit_optind = 0;
while ( 1 ) {
int this_option_optind = gnu_optind ? gnu_optind : 1;
c = gnu_getopt (argc, argv, "abc:d:0123456789");
if ( c == -1 )
break;
switch ( c ) {
case '0':
case '1':
case '2':
case '3':
case '4':
case '5':
case '6':
case '7':
case '8':
case '9':
if ( digit_optind != 0 && digit_optind != this_option_optind )
fprintf ( stderr, "digits occur in two different argv-elements.\n");
digit_optind = this_option_optind;
fprintf ( stderr, "option %c\n", c);
break;
case 'a':
fprintf ( stderr, "option a\n");
break;
case 'b':
fprintf ( stderr, "option b\n");
break;
case 'c':
fprintf ( stderr, "option c with value `%s'\n", gnu_optarg);
break;
case '?':
break;
default:
fprintf ( stderr, "?? gnu_getopt returned character code 0%o ??\n", c);
}
}
if ( gnu_optind < argc ) {
fprintf (stderr, "non-option ARGV-elements: ");
while ( gnu_optind < argc )
fprintf ( stderr, "%s ", argv[gnu_optind++]);
fprintf ( stderr, "\n");
}
exit (0);
}
#endif /* TEST */
| 1001-collection-codelet | 代码管理/c_cpp混合编译makefile/gnu_getopt.c | C | gpl3 | 30,172 |
include local_cfg
LOCAL_SRC_CFILES := \
gnu_getopt.c \
gnu_getopt_long.c
LOCAL_SRC_CXXFILES := \
ccc.cpp
LOCAL_MODULE := test_make_c_cpp
LOCAL_CFLAGS := -rdynamic -ldl -ggdb
PREFIX := arm-none-linux-gnueabi-
LOCAL_SHARED_LIBRARIES := ggg bbbb
LOCAL_C_INCLUDES := ./include ./
LOCAL_LDFLAGS := -L$(MLibDir)
include submodule/Make_config
include exec_rules.mk
| 1001-collection-codelet | 代码管理/c_cpp混合编译makefile/Makefile | Makefile | gpl3 | 375 |
/* Declarations for gnu_getopt.
Copyright (C) 1989,90,91,92,93,94,96,97 Free Software Foundation, Inc.
This file is part of the GNU C Library. Its master source is NOT part of
the C library, however. The master source lives in /gd/gnu/lib.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public License as
published by the Free Software Foundation; either version 2 of the
License, or (at your option) any later version.
The GNU C Library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with the GNU C Library; see the file COPYING.LIB. If not,
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
/*
* modified July 9, 1999 by mark gates <mgates@nlanr.net>
* Dec 17, 1999
*
* renamed all functions and variables by prepending "gnu_"
* removed/redid a bunch of stuff under the assumption we're
* using a modern standard C compiler.
*
* $Id: gnu_getopt.h,v 1.1.1.1 2004/05/18 01:50:44 kgibbs Exp $
*/
#ifndef _GETOPT_H
#define _GETOPT_H 1
#ifdef __cplusplus
extern "C" {
#endif
/* For communication from `gnu_getopt' to the caller.
When `gnu_getopt' finds an option that takes an argument,
the argument value is returned here.
Also, when `ordering' is RETURN_IN_ORDER,
each non-option ARGV-element is returned here. */
extern char *gnu_optarg;
/* Index in ARGV of the next element to be scanned.
This is used for communication to and from the caller
and for communication between successive calls to `gnu_getopt'.
On entry to `gnu_getopt', zero means this is the first call; initialize.
When `gnu_getopt' returns -1, this is the index of the first of the
non-option elements that the caller should itself scan.
Otherwise, `gnu_optind' communicates from one call to the next
how much of ARGV has been scanned so far. */
extern int gnu_optind;
/* Callers store zero here to inhibit the error message `gnu_getopt' prints
for unrecognized options. */
extern int gnu_opterr;
/* Set to an option character which was unrecognized. */
extern int gnu_optopt;
/* Describe the long-named options requested by the application.
The LONG_OPTIONS argument to gnu_getopt_long or getopt_long_only is a vector
of `struct option' terminated by an element containing a name which is
zero.
The field `has_arg' is:
no_argument (or 0) if the option does not take an argument,
required_argument (or 1) if the option requires an argument,
optional_argument (or 2) if the option takes an optional argument.
If the field `flag' is not NULL, it points to a variable that is set
to the value given in the field `val' when the option is found, but
left unchanged if the option is not found.
To have a long-named option do something other than set an `int' to
a compiled-in constant, such as set a value from `gnu_optarg', set the
option's `flag' field to zero and its `val' field to a nonzero
value (the equivalent single-letter option character, if there is
one). For long options that have a zero `flag' field, `gnu_getopt'
returns the contents of the `val' field. */
/* has_arg can't be an enum because some compilers complain about
type mismatches in all the code that assumes it is an int. */
struct option {
const char *name;
int has_arg;
int *flag;
int val;
};
/* Names for the values of the `has_arg' field of `struct option'. */
#define no_argument 0
#define required_argument 1
#define optional_argument 2
int gnu_getopt( int argc,
char *const *argv,
const char *shortopts );
int gnu_getopt_long( int argc,
char *const *argv,
const char *shortopts,
const struct option *longopts,
int *longind );
int gnu_getopt_long_only( int argc,
char *const *argv,
const char *shortopts,
const struct option *longopts,
int *longind );
/* Internal only. Users should not call this directly. */
int _gnu_getopt_internal( int argc,
char *const *argv,
const char *shortopts,
const struct option *longopts,
int *longind,
int long_only );
#ifdef __cplusplus
} /* end extern "C" */
#endif
#endif /* _GETOPT_H */
| 1001-collection-codelet | 代码管理/c_cpp混合编译makefile/gnu_getopt.h | C | gpl3 | 4,838 |
/* gnu_getopt_long and getopt_long_only entry points for GNU getopt.
Copyright (C) 1987,88,89,90,91,92,93,94,96,97 Free Software Foundation, Inc.
This file is part of the GNU C Library. Its master source is NOT part of
the C library, however. The master source lives in /gd/gnu/lib.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public License as
published by the Free Software Foundation; either version 2 of the
License, or (at your option) any later version.
The GNU C Library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with the GNU C Library; see the file COPYING.LIB. If not,
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
/*
* modified July 9, 1999 by mark gates <mgates@nlanr.net>
* Dec 17, 1999
*
* renamed all functions and variables by prepending "gnu_"
* removed/redid a bunch of stuff under the assumption we're
* using a modern standard C compiler.
* renamed file to gnu_getopt_long.c (from gnu_getopt1.c)
*
* $Id: gnu_getopt_long.c,v 1.1.1.1 2004/05/18 01:50:44 kgibbs Exp $
*/
#include "gnu_getopt.h"
#include <stdio.h>
#include <stdlib.h>
#ifdef __cplusplus
extern "C" {
#endif
int
gnu_getopt_long( int argc,
char *const *argv,
const char *options,
const struct option *long_options,
int *opt_index ) {
return _gnu_getopt_internal (argc, argv, options, long_options, opt_index, 0);
}
/* Like gnu_getopt_long, but '-' as well as '--' can indicate a long option.
If an option that starts with '-' (not '--') doesn't match a long option,
but does match a short option, it is parsed as a short option
instead. */
int
gnu_getopt_long_only( int argc,
char *const *argv,
const char *options,
const struct option *long_options,
int *opt_index ) {
return _gnu_getopt_internal (argc, argv, options, long_options, opt_index, 1);
}
#ifdef __cplusplus
} /* end extern "C" */
#endif
#ifdef TEST
#include <stdio.h>
int
main (argc, argv)
int argc;
char **argv;
{
int c;
int digit_optind = 0;
while ( 1 ) {
int this_option_optind = gnu_optind ? gnu_optind : 1;
int option_index = 0;
static struct option long_options[] =
{
{"add", 1, 0, 0},
{"append", 0, 0, 0},
{"delete", 1, 0, 0},
{"verbose", 0, 0, 0},
{"create", 0, 0, 0},
{"file", 1, 0, 0},
{0, 0, 0, 0}
};
c = gnu_getopt_long (argc, argv, "abc:d:0123456789",
long_options, &option_index);
if ( c == -1 )
break;
switch ( c ) {
case 0:
fprintf ( stderr, "option %s", long_options[option_index].name);
if ( gnu_optarg )
fprintf ( stderr, " with arg %s", gnu_optarg);
fprintf ( stderr, "\n");
break;
case '0':
case '1':
case '2':
case '3':
case '4':
case '5':
case '6':
case '7':
case '8':
case '9':
if ( digit_optind != 0 && digit_optind != this_option_optind )
fprintf ( stderr, "digits occur in two different argv-elements.\n");
digit_optind = this_option_optind;
fprintf ( stderr, "option %c\n", c);
break;
case 'a':
fprintf ( stderr, "option a\n");
break;
case 'b':
fprintf ( stderr, "option b\n");
break;
case 'c':
fprintf ( stderr, "option c with value `%s'\n", gnu_optarg);
break;
case 'd':
fprintf ( stderr, "option d with value `%s'\n", gnu_optarg);
break;
case '?':
break;
default:
fprintf ( stderr, "?? gnu_getopt returned character code 0%o ??\n", c);
}
}
if ( gnu_optind < argc ) {
fprintf ( stderr, "non-option ARGV-elements: ");
while ( gnu_optind < argc )
fprintf ( stderr, "%s ", argv[gnu_optind++]);
fprintf ( stderr, "\n");
}
exit (0);
}
#endif /* TEST */
| 1001-collection-codelet | 代码管理/c_cpp混合编译makefile/gnu_getopt_long.c | C | gpl3 | 4,534 |
CXX := $(PREFIX)g++
CC := $(PREFIX)gcc
AS := $(CC)
LD := $(CXX)
#LD := $(CC)
ifdef O
BUILD_DIR=$(O)
else
BUILD_DIR=BUILD_$(LOCAL_MODULE)_EXEC
endif
CXXFLAGS := $(LOCAL_CFLAGS) $(addprefix -I,$(LOCAL_C_INCLUDES)) -Wall -D_GNU_SOURCE -fms-extensions
CFLAGS := $(LOCAL_CFLAGS) $(addprefix -I,$(LOCAL_C_INCLUDES)) -Wall -D_GNU_SOURCE -std=c99 -fms-extensions
LDFLAGS := $(LOCAL_LDFLAGS) $(addprefix -l,$(patsubst lib%,%,$(LOCAL_SHARED_LIBRARIES)))
OBJSC := $(patsubst %.c,$(BUILD_DIR)/%.o,$(LOCAL_SRC_CFILES))
OBJSCXX := $(patsubst %.cpp,$(BUILD_DIR)/%.o,$(LOCAL_SRC_CXXFILES))
OBJS := $(OBJSCXX) $(OBJSC)
OBJ_DIRS := $(sort $(dir $(OBJS)))
.PHONY: all checkdirs clean rebuild
TARGET := $(BUILD_DIR)/$(LOCAL_MODULE)
all: checkdirs $(TARGET)
$(TARGET): $(OBJS)
$(LD) $(LDFLAGS) -o $@ $^
$(OBJSC): $(BUILD_DIR)/%.o: %.c
$(CC) $(CFLAGS) -c $< -o $@
$(OBJSCXX): $(BUILD_DIR)/%.o: %.cpp
$(CXX) $(CXXFLAGS) -c $< -o $@
checkdirs: $(OBJ_DIRS)
$(OBJ_DIRS):
mkdir -p $@
clean:
rm -rf $(OBJ_DIRS)
rebuild: clean all
| 1001-collection-codelet | 代码管理/c_cpp混合编译makefile/exec_rules.mk | Makefile | gpl3 | 1,082 |
module ItemHelper
end
| 10pockets | trunk/app/helpers/item_helper.rb | Ruby | mit | 22 |
# Methods added to this helper will be available to all templates in the application.
module ApplicationHelper
include TagsHelper
def logged_in?
return @session[:user_id] ? true : false
end
def paginate_number(number, current, order = nil)
i = 0
result = ""
return '<span class="current">1</span>' if number.to_i == 1
number.to_i.times {|i|
if i+1==current
result.concat("<span>#{i+1}</span>")
else
result.concat(link_to(i+1,{:page => i+1, 'order' => order},:class => 'current'))
end
}
logger.debug("Result::"+result)
result
end
end
module ActionView
module Helpers
module PaginationHelper
def pagination_links_remote(paginator, page_options={}, ajax_options={}, html_options={})
name = page_options[:name] || DEFAULT_OPTIONS[:name]
params = (page_options[:params] || DEFAULT_OPTIONS[:params]).clone
params[:search_type] = ajax_options[:search_type]
params[:keyword] = ajax_options[:keyword]
pagination_links_each(paginator, page_options) do |n|
params[name] = n
ajax_options[:url] = params
link_to_remote(n.to_s, ajax_options, html_options)
end
end
end # PaginationHelper
end # Helpers
end # ActionView
| 10pockets | trunk/app/helpers/application_helper.rb | Ruby | mit | 1,290 |
module AccountHelper
end
| 10pockets | trunk/app/helpers/account_helper.rb | Ruby | mit | 25 |
# this model expects a certain database layout and its based on the name/login pattern.
class User < ActiveRecord::Base
has_many :gifts
def self.get(openid_url)
find_first(["openid_url = ?", openid_url])
end
protected
validates_uniqueness_of :openid_url, :on => :create
validates_presence_of :openid_url
end
| 10pockets | trunk/app/models/user.rb | Ruby | mit | 334 |
class Event < ActiveRecord::Base
end
| 10pockets | trunk/app/models/event.rb | Ruby | mit | 37 |
class Gift < ActiveRecord::Base
acts_as_taggable
belongs_to :age
belongs_to :event
belongs_to :item
belongs_to :user
end
| 10pockets | trunk/app/models/gift.rb | Ruby | mit | 131 |
class Genre < ActiveRecord::Base
belongs_to :items
end
| 10pockets | trunk/app/models/genre.rb | Ruby | mit | 57 |
class Type < ActiveRecord::Base
has_many :items
end
| 10pockets | trunk/app/models/type.rb | Ruby | mit | 54 |
class Age < ActiveRecord::Base
end
| 10pockets | trunk/app/models/age.rb | Ruby | mit | 38 |
class Item < ActiveRecord::Base
has_many :gifts
belongs_to :type
belongs_to :genre
end
| 10pockets | trunk/app/models/item.rb | Ruby | mit | 93 |
# Filters added to this controller apply to all controllers in the application.
# Likewise, all the methods added will be available for all controllers.
class ApplicationController < ActionController::Base
# Pick a unique cookie name to distinguish our session data from others'
session :session_key => '_10pockets_session_id'
init_gettext "10pockets"
before_filter :set_term
def logged_in?
return @session[:user_id] ? true : false
end
def set_term
@term = _('Search..') unless @term
end
end
| 10pockets | trunk/app/controllers/application.rb | Ruby | mit | 520 |
require "pathname"
require "cgi"
# load the openid library
begin
require "rubygems"
require_gem "ruby-openid", ">= 2.0.3"
rescue LoadError
require "openid"
end
class AccountController < ApplicationController
layout 'default'
def index
@pages, @items = paginate(:item, :per_page => 2, :order_by => 'gift_counts desc')
end
# process the login request, disover the openid server, and
# then redirect.
def login
openid_url = params[:openid_url]
if request.post?
begin
request = consumer.begin(openid_url)
return_to = url_for(:action=> 'complete')
trust_root = url_for(:controller=>'')
url = request.redirect_url(trust_root, return_to)
redirect_to(url)
rescue OpenID::OpenIDError
flash[:notice] = 'Authorization failed.'
end
end
end
# handle the openid server response
def complete
current_url = url_for(:action => 'complete', :only_path => false)
parameters = params.reject{|k,v|request.path_parameters[k]}
response = consumer.complete(parameters, current_url)
case response.status
when OpenID::Consumer::SUCCESS
@user = User.get(response.identity_url)
# create user object if one does not exist
if @user.nil?
@user = User.new(:openid_url => response.identity_url)
@user.save
end
# storing both the openid_url and user id in the session for for quick
# access to both bits of information. Change as needed.
@session[:user_id] = @user.id
@session[:user_uri] = response.identity_url
flash[:notice] = "Logged in as #{CGI::escape(response.identity_url)}"
if @session[:back_url]
url = @session[:back_url]
@session[:back_url] = nil
return redirect_to url
end
redirect_to :controller => :item, :action => :index
return
when OpenID::Consumer::FAILURE
if response.identity_url
flash[:notice] = "Verification of #{CGI::escape(response.identity_url)} failed."
else
flash[:notice] = 'Verification failed.'
end
when OpenID::CANCEL
flash[:notice] = 'Verification cancelled.'
else
flash[:notice] = 'Unknown response from OpenID server.'
end
redirect_to :action => 'login'
end
def logout
@session[:user_id] = nil
end
def welcome
end
private
# Get the OpenID::Consumer object.
def consumer
store = ActiveRecordStore.new
return OpenID::Consumer.new(session, store)
# create the OpenID store for storing associations and nonces,
# putting it in your app's db directory
# store_dir = Pathname.new(RAILS_ROOT).join('db').join('openid-store')
# store = OpenID::FilesystemStore.new(store_dir)
# return OpenID::Consumer.new(@session, store)
end
# get the logged in user object
def find_user
return nil if session[:user_id].nil?
User.find(session[:user_id])
end
end
| 10pockets | trunk/app/controllers/account_controller.rb | Ruby | mit | 2,937 |
class ItemController < ApplicationController
layout 'default', :except => :search
def vote
@item = Item.find params[:id]
@productname = @item.name
end
def age
return render unless params[:id]
gifts = Gift.find :all, :conditions => ['age_id = ?', params[:id]]
@pages, @items = paginate(:item, :per_page => 2, :order_by => 'gift_counts desc', :conditions => ['items.id in (?)', gifts.map(&:item_id)])
render :controller => :account, :action => :index, :template => 'account/index.rhtml'
end
def new
@pages, @items = paginate(:item, :per_page => 2, :order_by => 'id desc')
render :controller => :account, :action => :index, :template => 'account/index.rhtml'
end
def feed
@pages, @items = paginate(:item, :per_page => 10, :order_by => 'id desc')
render :controller => :account, :action => :index, :template => 'account/index.rss.rhtml', :layout => 'rss'
end
def event
return render unless params[:id]
gifts = Gift.find :all, :conditions => ['event_id = ?', params[:id]]
@pages, @items = paginate(:item, :per_page => 2, :order_by => 'gift_counts desc', :conditions => ['items.id in (?)', gifts.map(&:item_id)])
render :controller => :account, :action => :index, :template => 'account/index.rhtml'
end
def gender
return render unless params[:id]
gifts = Gift.find :all, :conditions => ['gender = ?', params[:id]]
@pages, @items = paginate(:item, :per_page => 2, :order_by => 'gift_counts desc', :conditions => ['items.id in (?)', gifts.map(&:item_id)])
render :controller => :account, :action => :index, :template => 'account/index.rhtml'
end
def view
@item = Item.find params[:id]
unless @item
flash[:notice] = _("Item not found.(%{asin})") % { :asin => params[:id]}
return redirect_to(:controller => :account, :action => :index)
end
end
def add
unless logged_in?
flash[:notice] = _("You need to log in using OpenID.")
@session[:back_url] = url_for :controller => :item, :action => :add, :path_only => false
return redirect_to :controller => :account, :action => :login
end
unless request.post?
@item = Item.new params[:item]
return :contrlller => :item, :action => :new
end
type = Type.find_by_name params[:type]
@item = Item.find :first, :conditions => ['type_id = ? and code = ?', type.id, params[:id]]
unless @item
case type.name
when "rakuten"
developer_id = RakutenWebService::DEVELOPER_ID
url = RakutenWebService::ItemCodeSearch::URL_Builder.new developer_id
url.itemcode = params[:id]
rakuten = RakutenWebService::ItemCodeSearch::Result.new url.build
item = rakuten.item
unless item
flash[:notice] = _("Item is not found. Item code (%{itemcode})") % {:itemcode => params[:id]}
return redirect_to :action => :add
end
@item = Item.new :name => item.itemname, :code => item.itemcode, :price => item.itemprice, :affiliateurl => item.affiliateurl, :url => item.itemurl, :smallimageurl => item.smallimageurl, :mediumimageurl => item.mediumimageurl, :reviewcount => item.reviewcount, :reviewaverage => item.reviewaverage
@item.type = type
@item.name = params[:productname]
developer_id = RakutenWebService::DEVELOPER_ID
url = RakutenWebService::GenreSearch::URL_Builder.new developer_id
url.genreid = item.genreid
rakuten = RakutenWebService::GenreSearch::Result.new url.build
@item.genre = Genre.find_by_name rakuten.genres['current'].genrename
unless @item.genre
@item.genre = Genre.create :name => rakuten.genres['current'].genrename
end
@item.gift_counts = 0
@item.save
when "amazon"
item = Amazon::Ecs.item_lookup(params[:id], :response_group => 'Large').items[0]
@item = Item.new :name => item.get("title"), :code => item.get("asin"), :price => item.get("listprice/amount"), :affiliateurl => item.get("detailpageurl"), :url => item.get("detailpageurl"), :smallimageurl => item.get("smallimage/url"), :mediumimageurl => item.get("mediumimage.url"), :reviewcount => item.get("customerreviews/totalreviews"), :reviewaverage => item.get("customerreviews/averagerating")
@item.type = type
@item.name = params[:productname]
@item.genre = Genre.find_by_name item.get("itemattributes/productgroup")
unless @item.genre
@item.genre = Genre.create :name => item.get("itemattributes/productgroup")
end
@item.gift_counts = 0
@item.save
end
end
# Add new gift
gift = Gift.new params[:gift]
gift.item = @item
gift.user_id = @session[:user_id]
gift.save
@item.update_attribute :gift_counts, @item.gift_counts+1
flash[:notice] = _("Your gift saved.")
redirect_to :controller => :account, :action => :index
end
def detail
@search_type = params[:type]
@gift = Gift.new
@itemcode = params[:id]
case params[:type]
when "rakuten"
developer_id = RakutenWebService::DEVELOPER_ID
url = RakutenWebService::ItemCodeSearch::URL_Builder.new developer_id
url.itemcode = params[:id]
rakuten = RakutenWebService::ItemCodeSearch::Result.new url.build
@item = rakuten.item
unless @item
flash[:notice] = _("Item is not found. Item code (%{itemcode})") % {:itemcode => params[:id]}
return redirect_to :action => :add
end
@productname = @item.itemname
when "amazon"
@item = Amazon::Ecs.item_lookup(params[:id], :response_group => 'Large').items[0]
unless @item
flash[:notice] = _("Item is not found. ASIN (%{asin})") % {:asin => params[:id]}
return redirect_to :action => :add
end
@productname = @item.get("title")
# @item = Item.new(:name => item.get("title"), :code => item.get("asin"), :price => item.get("listprice/amount"))
end
end
def site
@pages, @items = paginate(:item, :per_page => 2, :order_by => 'gift_counts desc', :conditions => ['items.name like ?', "%#{params[:search]}%"])
@term = params[:search]
flash[:notice] = _('Search result "%{term}"') % { :term => @term}
render :controller => :account, :action => :index, :template => 'account/index.rhtml'
end
def tag
return render unless params[:id]
gifts = Gift.find_tagged_with(params[:id])
@pages, @items = paginate(:item, :per_page => 2, :order_by => 'gift_counts desc', :conditions => ['items.id in (?)', gifts.map(&:item_id)])
render :controller => :account, :action => :index, :template => 'account/index.rhtml'
end
def search
@header = nil
@items = nil
@keyword = params[:keyword]
@search_type = params[:search_type]
case params[:search_type]
when 'rakuten'
params[:page] = params[:page] || 1
developer_id = RakutenWebService::DEVELOPER_ID
url = RakutenWebService::ItemSearch::URL_Builder.new developer_id
url.keyword = params[:keyword]
url.page = params[:page]
url.hits = 10
rakuten = RakutenWebService::ItemSearch::Result.new url.build
count = rakuten.header.count.to_i
logger.debug "Count::#{rakuten.header.count}"
per_page = 10
@pages = Paginator.new(self, count, per_page, params[:page])
@header = rakuten.header
@items = rakuten.items
when 'amazon'
params[:page] = params[:page] || 1
res = Amazon::Ecs.item_search(params[:keyword], :response_group => 'Large', :search_index => 'Blended', :ItemPage => params[:page])
count = res.total_results
per_page = 10
@pages = Paginator.new(self, count, per_page, params[:page])
@header = res
@items = res.items
end
end
end
| 10pockets | trunk/app/controllers/item_controller.rb | Ruby | mit | 7,792 |
<div class="memo">
<h3>Welcome</h3>
<p>You are now logged into the system...</p>
<%= link_to "« logout", :action=>"logout"%>
</div>
| 10pockets | trunk/app/views/account/welcome.rhtml | HTML+ERB | mit | 167 |
<%= start_form_tag :action=> "login" %>
<div title="Account login" id="loginform" class="form">
<h3>Please login</h3>
<label for="user_login">Login:</label><br/>
<input type="text" name="openid_url" id="openid_url" size="30" value=""/><br/>
<br/>
<input type="submit" name="login" value="Login »" class="primary" />
</div>
<%= end_form_tag %>
| 10pockets | trunk/app/views/account/login.rhtml | HTML+ERB | mit | 378 |
<div class="linksum">
<div class="news-summary" id="xnews-0">
<ul class="news-upcoming2">
<li class="vote-publish">
<%= link_to i.gift_counts, :controller => :item, :action => :vote, :id => i.id %>
</li>
<li class="vote" id="xvote-0">
<span>Voted</span>
</li>
</ul>
<div class="top">
<div class="toptitle" id="ls_thetitle-0">
<%= link_to i.name, :controller => :item, :action => :view, :id => i.id %>
</div>
<div class="news-submitted">
<div id="ls_avatar-0">
<% if i.smallimageurl %>
<%= link_to image_tag(i.smallimageurl, :border => 0), :controller => :item, :action => :view, :id => i.id %>
<% else %>
<%= link_to image_tag("no_image.gif", :border => 0), :controller => :item, :action => :view, :id => i.id %>
<% end %>
</div>
<span id="ls_category-0">
<b>
Category
</b>: <%=h i.genre.name %>
</span>
| 
<span id="ls_tags-0"><b><a href="/pligg/cloud.php" title="Tags" style='text-decoration: none;'>Tags</a></b>:
<% Tagging.find(:all, :conditions => ['taggable_id in (?)', i.gifts.map(&:id)], :group => 'taggings.tag_id', :select => 'tag_id, count(*) as cnt', :order => :tag_id, :limit => 5).each {|t| %>
<%= link_to(t.tag.name,{:controller => :item, :action => :tag, :id => t.tag.name},{:style => 'text-decoration: none;'}) %>
<% } %>
</span>
</div>
<span class="news-body-text">
<span id="ls_contents-0">
<% unless @keyword %>
<!-- about product -->
<% end %>
</span>
</span>
</div>
</div>
</div>
| 10pockets | trunk/app/views/account/_view.rhtml | HTML+ERB | mit | 1,772 |
<% @items.each do |i| %>
<item>
<title><%=h i.name %></title>
<link><%= url_for :controller => :item, :action => :view, :id => i.id, :only_path => false %></link>
<comments><%= url_for :controller => :item, :action => :view, :id => i.id, :only_path => false %></comments>
<pubDate><%=h i.created_at.rfc822 %></pubDate>
<dc:creator>10pockets</dc:creator>
<category><%=h i.genre.name %></category>
<guid isPermaLink="false"><%= url_for :controller => :item, :action => :view, :id => i.id, :only_path => false %></guid>
<description></description>
</item>
<% end %>
| 10pockets | trunk/app/views/account/index.rss.rhtml | HTML+ERB | mit | 624 |
<div class="pagination">
<p>
<% if @pages.current.previous %>
<%= link_to _("« Previous"), { :page => @pages.current.previous }, :class => 'current' %>
<% else %>
<span><%= _("« Previous") %></span>
<% end %>
<%= paginate_number @pages.last, @pages.current.number, @order %>
<% if @pages.current.next %>
<%= link_to _("Next »"), { :page => @pages.current.next }, :class => 'current' %>
<% else %>
<span><%= _("Next »") %></span>
<% end %>
<%=h n_('Total %{count} item', 'Total %{count} items', @pages.item_count) % {:count => @pages.item_count} %>
<%=h _('( %{first} - %{last} )') % {:first => @pages.current.first_item, :last => @pages.current.last_item} %>
</p>
</div>
| 10pockets | trunk/app/views/account/_pagination.rhtml | HTML+ERB | mit | 755 |
<div id="description">
<%= _("Welcome to 10 pockets! 10 pockets is gifts information service for your children, grandchild or nephew. You can register item you ware presented and search other people's gifts.")%>
</div>
<div id="content">
<%= render :partial => 'account/pagination' %>
<% @items.each do |i| %>
<%= render :partial => 'account/view', :locals => {:i => i} %>
<% end %>
<br /><br />
<div class="clear"></div>
<%= render :partial => 'account/pagination' %>
</div>
| 10pockets | trunk/app/views/account/index.rhtml | HTML+ERB | mit | 494 |
<div class="memo">
<h3>Logoff</h3>
<p>You are now logged out of the system...</p>
<%= link_to "« login", :action=>"login"%>
</div>
| 10pockets | trunk/app/views/account/logout.rhtml | HTML+ERB | mit | 167 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
<title>: <%= controller.action_name %></title>
<%= stylesheet_link_tag 'scaffold' %>
</head>
<body>
<p style="color: green"><%= flash[:notice] %></p>
<%= yield %>
</body>
</html>
| 10pockets | trunk/app/views/layouts/scaffold.rhtml | HTML+ERB | mit | 463 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">
<head>
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="description" content="Sharing gift information" />
<meta name="keywords" content="Gift Digg Share" />
<meta name="Language" content="ja-JP" />
<meta name="Robots" content="All" />
<%= stylesheet_link_tag 'style' %>
<!--[if lte IE 6]>
<%= stylesheet_link_tag 'ie6' %>
<script type="text/javascript">
if (typeof blankImg == 'undefined') var blankImg = 'images/blank.gif';
</script>
<style type="text/css" media="screen">
body {behavior:url(/images/iehfix.htc); }
img {behavior:url(/images/iepngfix.htc); }
</style>
<![endif]-->
<%= javascript_include_tag "prototype", "effects" %>
<title><%= _("10 pockets : %{title}") % {:title => @title} %></title>
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<%= url_for :controller => :page, :action => :feed, :only_path => false %>"/>
<link rel="icon" href="favicon.ico" type="image/x-icon"/>
</head>
<body>
<!-- wrap starts here -->
<div id="wrap">
<!--header -->
<div id="header">
<h1 id="logo-text"><%= link_to _("10 pockets"), :controller => :account, :action => :index %></h1>
<p id="slogan"><%= _('by MOONGIFT')%></p>
<div id="header-links">
<p>
<%= link_to _("Popular gift"), :controller => :account, :action => :index %> |
<%= link_to _("New gift"), :controller => :item, :action => :new %> |
<%= link_to _("Add gift"), :controller => :item, :action => :add %> |
<%= link_to image_tag("rss.gif", :alt=>"RSS", :border => 0),:controller => :item, :action => :feed %>
</p>
<% if logged_in? %>
<%= _("Logged in for ") %><%= sanitize @session[:user_uri].gsub("http://", "") %>
<% end %>
</div>
</div>
<!-- navigation -->
<div id="menu">
<ul>
<li><%= link_to _("Home"), :controller => :account, :action => :index %></li>
<li><%= link_to _("Age"), :controller => :item, :action => :age %></li>
<li><%= link_to _("Event"), :controller => :item, :action => :event %></li>
<li><%= link_to _("Gender"), :controller => :item, :action => :gender %></li>
<li><%= link_to _("Tag"), :controller => :item, :action => :tag %></li>
<li>
<% if logged_in? %>
<li><%= link_to _("Logout"), :controller => :account, :action => :logout %></li>
<% else %>
<li><%= link_to _("Login"), :controller => :account, :action => :login %></li>
<% end %>
</li>
</ul>
</div>
<!-- content-wrap starts here -->
<div id="content-wrap">
<div id="main" >
<div id="navbar">
<%= link_to _("Home"), :controller => :account, :action => :index %>
» <a href="/pligg/upcoming.php">Upcoming</a>
</div>
<p style="color: green"><%= flash[:notice] %></p>
<%= yield %>
</div>
<div id="sidebar">
<div class="featurebox">
<h2><%=h _("Search Box")%></h2>
<%= form_tag({:controller => :item, :action => :site}, {:method => "get", :id => "thisform-search", :class => "searchform"}) %>
<%= text_field_tag "search", @term, {:class => 'textbox', :id => "searchsite", :onfocus => "if(this.value == 'Search..') {this.value = '';}", :onblur => "if (this.value == '') {this.value = 'Search..';}"} %>
<%= submit_tag _("Go"), {:class => "button"} %>
<%= end_form_tag %>
</div>
<div class="featurebox">
<div class="tlb"><h2>Top Today</h2></div><div id="sstop" style="padding-bottom:2px">
</div></div>
<div class="featurebox">
<div class="tlb"><h2>Published News</h2></div><div id="ssstories" style="padding-bottom:2px">
</div></div>
<div class="featurebox">
<h2>Categories</h2>
<div id="cats" style="padding-bottom:1px">
<ul id="nav-secondary">
<li>
<a href="/pligg/rss.php?category=1" target="_blank" style="border:none;">
<%= image_tag("rss.gif", :border => 0, :alt=>"RSS", :style => "float:right;padding-right:10px;") %></a>
<a href="/pligg/upcoming.php?category=pligg" style="padding-bottom:5px;">pligg</a>
</li>
</ul>
</div>
</div>
<div class="featurebox">
<div class="tlb">
<span>
<a onclick="new Effect.toggle('latcomments','blind', {queue: 'end'}); "> </a>
</span>
<h2><%=h _("Latest gifts")%></h2>
</div>
<div id="latcomments">
<ul>
<li class="rmore"><a href="/pligg/live_comments.php">read more</a></li>
</ul>
</div>
</div>
<div class="featurebox">
<a href="/pligg/cloud.php"><h2><%=h _("Top 5 Tags") %></h2></a>
<div id="s2" style="margin: 5px 0 0 0; line-height: 15pt;">
<% Gift.tag_counts(:at_least => 1, :order => :name, :limit => 5).each {|t| %>
<span style="font-size: 8pt">
<%= link_to t.name, :controller => :item, :action => :tag, :id => t %>
</span>
<% } %>
<ul><li class="rmore"><%= link_to _("read more"), :controller => :item, :action => :tag %></li></ul>
</div></div>
</div>
<!-- content-wrap ends here -->
</div>
<!--footer starts here-->
<div id="footer">
<p>
<!-- START changing thos line below is in violation of Creative Commons 2.5 license -->
Design by: <a href="http://socialcmsbuzz.com/">Social CMS Buzz</a> & <a href="http://www.styleshout.com/">styleshout</a> |
<!-- END changing this line above is in violation of Creative Commons 2.5 license -->
Valid <a href="http://validator.w3.org/check?uri=referer">XHTML</a> |
<a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a>
</p>
</div>
<!-- wrap ends here -->
</div>
</body>
</html>
| 10pockets | trunk/app/views/layouts/default.rhtml | HTML+ERB | mit | 6,548 |
<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/ME2.1.3" -->
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title><%=h _("10 Pockets")%></title>
<link><%= url_for :controller => :account, :action => :index, :only_path => false %></link>
<description><%= _("10 pockets is gifts information sharing service.")%></description>
<pubDate><%=h Time.now.rfc822 %></pubDate>
<generator><%= url_for :controller => :account, :action => :index, :only_path => false %></generator>
<language><%=h ("en") %></language>
<%= @content_for_layout %>
</channel>
</rss>
| 10pockets | trunk/app/views/layouts/rss.rhtml | HTML+ERB | mit | 733 |
<%= form_remote_tag(:url => {:controller => :item, :action => :search}, :update => 'search_result', :method => 'post', :loading => '$("loading").style.display="inline";', :complete => '$("loading").style.display="none";') %>
<h2><%=h ("Choice from ") %>
<%= radio_button_tag :search_type, 'amazon' %><%=h _("Amazon")%> /
<%= radio_button_tag :search_type, 'rakuten' %><%=h _("Rakuten")%>
</h2>
<div class="item"><%=h _("Product name") %></div>
<div class="data"><%= text_field_tag :keyword %> <%= submit_tag _("Search") %></div>
<%= end_form_tag %>
<div id="loading" style="display:none">
<%= image_tag "loading.gif" %>
</div>
<div id="search_result">
</div>
| 10pockets | trunk/app/views/item/add.rhtml | HTML+ERB | mit | 681 |
<div class="item"><%=h _("Gender") %></div>
<div class="data">
<% bol = true %>
<% i = 1 %>
<% r = 3 %>
<table>
<tr>
<td><%= link_to _("Boy"), :controller => :item, :action => :gender, :id => 1 %></td>
<td><%= link_to _("Girl"), :controller => :item, :action => :gender, :id => 2 %></td>
</tr>
</table>
</div>
| 10pockets | trunk/app/views/item/gender.rhtml | HTML+ERB | mit | 350 |
<div class="item"><%=h _("Tag") %></div>
<div class="data">
<% tag_cloud Gift.tag_counts, %w(css1 css2 css3 css4) do |tag, css_class| %>
<%= link_to tag.name, { :action => :tag, :id => tag.name }, :class => css_class %>
<% end %>
</div>
| 10pockets | trunk/app/views/item/tag.rhtml | HTML+ERB | mit | 257 |
<div class="item"><%=h _("Event") %></div>
<div class="data">
<% bol = true %>
<% i = 1 %>
<% r = 3 %>
<table>
<% Event.find(:all, :order => 'id').each do |e| %>
<%= '<tr>' if i == 1 %>
<td>
<% if Gift.count(:conditions => ['event_id = ?', e.id]) == 0 %>
<%= _(e.name) %>
<% else %>
<%= link_to _(e.name), :controller => :item, :action => :event, :id => e.id %>
<% end %>
</td>
<%= '</tr>' if i == r %>
<% if i == r then i=1 else i += 1 end %>
<% bol = false %>
<% end %>
<% (r+1-i).times { %>
<td></td>
<% } %>
<%= '</tr>' if i != 1 %>
</table>
</div>
| 10pockets | trunk/app/views/item/event.rhtml | HTML+ERB | mit | 675 |
<%= render :partial => 'account/view', :locals => {:i => @item} %>
<div style="clear:both"></div>
<%=h _("Event summary")%>
<% Gift.find(:all, :conditions => ['item_id = ?', @item.id], :select => 'event_id, count(*) as cnt', :group => 'event_id', :order => 'cnt').each do |e| %>
<li><%=h _(e.event.name) %><%= _(" x %{count}") % {:count => e.cnt} %></li></li>
<% end %>
<%=h _("Age summary")%>
<% Gift.find(:all, :conditions => ['item_id = ?', @item.id], :select => 'age_id, count(*) as cnt', :group => 'age_id', :order => 'cnt').each do |a| %>
<li><%=h _(a.age.name) %><%= _(" x %{count}") % {:count => a.cnt} %></li>
<% end %>
<%=h _("Presenter comment")%>
<div class="gifts">
<% @item.gifts.each do |g| %>
<div class="gift">
<div class="comment"><%=h g.comment %></div>
<dl>
<dt><%=h _("Gender")%></dt>
<dd><%= g.gender ? _("Boy") : _("Girl") %></dd>
<dt><%=h _("Age")%></dt>
<dd><%=h _(g.age.name) %></dd>
<dt><%=h _("Event")%></dt>
<dd><%=h _(g.event.name) %></dd>
<dt><%=h _("Rating")%></dt>
<dd><%= image_tag "star#{g.rating}.gif" %></dd>
</dl>
</div>
<% end %>
</div>
| 10pockets | trunk/app/views/item/view.rhtml | HTML+ERB | mit | 1,118 |
<h2><%= _("Result for %{keyword}") % {:keyword => @keyword} %></h2>
<%= pagination_links_remote @pages, {:window_size => 2, :search_type => @search_type}, {:search_type => @search_type, :keyword => @keyword, :update => 'search_result', :complete => visual_effect(:blind_down, 'search_result'), :before => %(Element.show('loading')), :success => %(Element.hide('loading'))} %>
<div class="clear"></div>
<div id="result_list">
<% @items.each do |i| %>
<%= render :partial => @search_type, :locals => {:i => i} %>
<% end %>
</div>
<div class="clear"></div>
<%= pagination_links_remote @pages, {:window_size => 2, :search_type => @search_type}, {:search_type => @search_type, :keyword => @keyword, :update => 'search_result', :complete => visual_effect(:blind_down, 'search_result'), :before => %(Element.show('loading')), :success => %(Element.hide('loading'))} %>
| 10pockets | trunk/app/views/item/search.rhtml | HTML+ERB | mit | 870 |
<div class="linksum">
<div class="news-summary" id="xnews-0">
<ul class="news-upcoming2">
<% if @keyword %>
<li class="vote-publish"><%= link_to(_('√'), {:controller => :item, :action => :detail, :id => i.itemcode, :type => :rakuten}, :id => "xvotes-#{i.itemcode}") %></li>
<li class="vote" id="xvote-0">
<span>Choice</span>
</li>
<% else %>
<li class="vote-publish">
<%= link_to Gift.count(:conditions => ['item_id = ?', i.id]), :controller => :item, :action => :view, :id => i.id %>
</li>
<li class="vote" id="xvote-0">
<span>Voted</span>
</li>
<% end %>
</ul>
<div class="top">
<div class="toptitle" id="ls_thetitle-0">
<%= link_to i.itemname, i.itemurl, :target => '_blank' %>
</div>
<div class="news-submitted">
<div id="ls_avatar-0">
<% if i.imageflag == "1" %>
<%= link_to(image_tag(i.smallimageurl, :border => 0), i.itemurl) %>
<% else %>
<%= link_to image_tag("no_image.gif", :border => 0), i.itemurl, :target => '_blank' %>
<% end %>
</div>
<span id="ls_posted_by-0">Author </span>
<span id="ls_link_submitter-0"><%=h i.shopname %></span>
<br/>
<span id="ls_category-0">
<b>
Category
</b>: <%=h i.genreid %>
</span>
| 
<% unless @keyword %>
<span id="ls_tags-0"><b><a href="/pligg/cloud.php" title="Tags" style='text-decoration: none;'>Tags</a></b>:
<a href="/pligg/search.php?search=web+api&tag=true" style='text-decoration: none;'>web api</a>
<a href="/pligg/search.php?search=mashup&tag=true" style='text-decoration: none;'> mashup</a>
<a href="/pligg/search.php?search=web+api%2Cmashup&tag=true" style='text-decoration: none;'></a>
</span>
<% end %>
</div>
<span class="news-body-text">
<span id="ls_contents-0">
<% unless @keyword %>
<!-- about product -->
<% end %>
</span>
</span>
<span class="news-details">
<span id="addto-0" style="display:none"><br />Add to:</span>
<span id="emailto-0" style="display:none"></span>
</span>
</div>
</div>
</div>
| 10pockets | trunk/app/views/item/_rakuten.rhtml | HTML+ERB | mit | 2,436 |
<div class="item"><%=h _("Product name")%></div>
<div class="data">
<%= text_field_tag :productname, @productname %>
</div>
<div class="item"><%=h _("Comment") %></div>
<div class="data">
<%= text_field :gift, :comment, :size => 50 %>
</div>
<div class="item"><%=h _("Rating") %></div>
<div class="data">
<% a = [] %>
<% 5.times{|t| a << [n_("%{number} star", "%{number} stars", t+1) % {:number => t+1}, t+1] } %>
<%= select :gift, :rating, a %>
</div>
<div class="item"><%=h _("Tagging (Comma separated)") %></div>
<div class="data">
<%= text_field :gift, :tag_list, :size => 50 %>
</div>
<div class="item"><%=h _("Gender") %></div>
<div class="data">
<%= radio_button :gift, :gender, 1, :checked => true %><%=h _("Boy")%>
<%= radio_button :gift, :gender, 2 %><%=h _("Girl")%>
</div>
<div class="item"><%=h _("Age") %></div>
<div class="data">
<% bol = true %>
<% i = 1 %>
<% r = 3 %>
<table>
<% Age.find(:all, :order => 'id').each do |a| %>
<%= '<tr>' if i == 1 %>
<td><%= radio_button :gift, :age_id, a.id, :checked => bol %><%=h a.name %></td>
<%= '</tr>' if i == r %>
<% if i == r then i=1 else i += 1 end %>
<% bol = false %>
<% end %>
<% (r+1-i).times { %>
<td></td>
<% } %>
<%= '</tr>' if i != 1 %>
</table>
</div>
<div class="item"><%=h _("Event") %></div>
<div class="data">
<% bol = true %>
<% i = 1 %>
<% r = 3 %>
<table>
<% Event.find(:all, :order => 'id').each do |a| %>
<%= '<tr>' if i == 1 %>
<td><%= radio_button :gift, :event_id, a.id, :checked => bol %><%=h a.name %></td>
<%= '</tr>' if i == r %>
<% if i == r then i=1 else i += 1 end %>
<% bol = false %>
<% end %>
<% (r+1-i).times { %>
<td></td>
<% } %>
<%= '</tr>' if i != 1 %>
</table>
</div>
<%= submit_tag _("Add Gift") %>
| 10pockets | trunk/app/views/item/_form.rhtml | HTML+ERB | mit | 1,977 |
<div class="linksum">
<div class="news-summary" id="xnews-0">
<ul class="news-upcoming2">
<% if @keyword %>
<li class="vote-publish"><%= link_to(_('√'), {:controller => :item, :action => :detail, :id => i.get("asin"), :type => :amazon}, :id => "xvotes-#{i.get("asin")}") %></li>
<li class="vote" id="xvote-0">
<span>Choice</span>
</li>
<% else %>
<li class="vote-publish">
<%= link_to Gift.count(:conditions => ['item_id = ?', i.id]), :controller => :item, :action => :view, :id => i.id %>
</li>
<li class="vote" id="xvote-0">
<span>Voted</span>
</li>
<% end %>
</ul>
<div class="top">
<div class="toptitle" id="ls_thetitle-0">
<%= link_to i.get("title"), i.get("detailpageurl"), :target => '_blank' %>
</div>
<div class="news-submitted">
<div id="ls_avatar-0">
<% if i.get("smallimage/url") %>
<%= link_to image_tag(i.get("smallimage/url"), :border => 0), i.get("detailpageurl"), :target => '_blank' %>
<% else %>
<%= link_to image_tag("no_image.gif", :border => 0), i.get("detailpageurl"), :target => '_blank' %>
<% end %>
</div>
<span id="ls_posted_by-0">Author </span>
<span id="ls_link_submitter-0"><%=h i.get("author") %></span>
<br/>
<span id="ls_category-0">
<b>
Category
</b>: <%=h i.get("productgroup") %>
</span>
| 
<% unless @keyword %>
<span id="ls_tags-0"><b><a href="/pligg/cloud.php" title="Tags" style='text-decoration: none;'>Tags</a></b>:
<a href="/pligg/search.php?search=web+api&tag=true" style='text-decoration: none;'>web api</a>
<a href="/pligg/search.php?search=mashup&tag=true" style='text-decoration: none;'> mashup</a>
<a href="/pligg/search.php?search=web+api%2Cmashup&tag=true" style='text-decoration: none;'></a>
</span>
<% end %>
</div>
<span class="news-body-text">
<span id="ls_contents-0">
<% unless @keyword %>
<!-- about product -->
<% end %>
</span>
</span>
<span class="news-details">
<span id="addto-0" style="display:none"><br />Add to:</span>
<span id="emailto-0" style="display:none"></span>
</span>
</div>
</div>
</div>
| 10pockets | trunk/app/views/item/_amazon.rhtml | HTML+ERB | mit | 2,541 |
<div class="item"><%=h _("Age") %></div>
<div class="data">
<% bol = true %>
<% i = 1 %>
<% r = 3 %>
<table>
<% Age.find(:all, :order => 'id').each do |a| %>
<%= '<tr>' if i == 1 %>
<td>
<% if Gift.count(:conditions => ['age_id = ?', a.id]) == 0 %>
<%= _(a.name) %>
<% else %>
<%= link_to _(a.name), :controller => :item, :action => :age, :id => a.id %>
<% end %>
</td>
<%= '</tr>' if i == r %>
<% if i == r then i=1 else i += 1 end %>
<% bol = false %>
<% end %>
<% (r+1-i).times { %>
<td></td>
<% } %>
<%= '</tr>' if i != 1 %>
</table>
</div>
| 10pockets | trunk/app/views/item/age.rhtml | HTML+ERB | mit | 667 |
<%= render :partial => @search_type, :locals => {:i => @item} %>
<%= form_tag({:controller => :item, :action => :add, :id => @itemcode, :type => @search_type}, :method => "post") %>
<%= render :partial => 'form' %>
<%= end_form_tag %>
| 10pockets | trunk/app/views/item/detail.rhtml | HTML+ERB | mit | 238 |
<%= render :partial => 'account/view', :locals => {:i => @item} %>
<div style="clear:both"></div>
<%= form_tag({:controller => :item, :action => :add, :id => @item.code, :type => @item.type.name}, :method => "post") %>
<%= render :partial => 'form' %>
<%= end_form_tag %>
| 10pockets | trunk/app/views/item/vote.rhtml | HTML+ERB | mit | 274 |
ENV["RAILS_ENV"] = "test"
require File.expand_path(File.dirname(__FILE__) + "/../config/environment")
require 'test_help'
class Test::Unit::TestCase
# Transactional fixtures accelerate your tests by wrapping each test method
# in a transaction that's rolled back on completion. This ensures that the
# test database remains unchanged so your fixtures don't have to be reloaded
# between every test method. Fewer database queries means faster tests.
#
# Read Mike Clark's excellent walkthrough at
# http://clarkware.com/cgi/blosxom/2005/10/24#Rails10FastTesting
#
# Every Active Record database supports transactions except MyISAM tables
# in MySQL. Turn off transactional fixtures in this case; however, if you
# don't care one way or the other, switching from MyISAM to InnoDB tables
# is recommended.
self.use_transactional_fixtures = true
# Instantiated fixtures are slow, but give you @david where otherwise you
# would need people(:david). If you don't want to migrate your existing
# test cases which use the @david style and don't mind the speed hit (each
# instantiated fixtures translates to a database query per test method),
# then set this back to true.
self.use_instantiated_fixtures = false
# Add more helper methods to be used by all tests here...
end
| 10pockets | trunk/test/test_helper.rb | Ruby | mit | 1,317 |
class ItemAddCount < ActiveRecord::Migration
def self.up
add_column :items, :gift_counts, :integer, :default => 0
end
def self.down
remve_column :items, :gift_counts, :integer
end
end
| 10pockets | trunk/db/migrate/013_item_add_count.rb | Ruby | mit | 201 |
class CreateAges < ActiveRecord::Migration
def self.up
create_table :ages do |t|
t.column :name, :string
end
[_("Birth"), _("3 Months"), _("3 to 6 Months"), _("6 to 9 Months"), _("9 to 12 Months"), _("12 to 18 Months"), _("18 to 24 Months"), _("2 years old"), _("3 years old"), _("4 years old"), _("5 years old"), _("6 years old"), _("7 years old"), _("8 years old"), _("9 years old"), _("10 years old")].each do |n|
Age.create :name => n
end
end
def self.down
drop_table :ages
end
end
| 10pockets | trunk/db/migrate/005_create_ages.rb | Ruby | mit | 527 |
class CreateItems < ActiveRecord::Migration
def self.up
create_table :items do |t|
t.column :name, :text
t.column :code, :string
t.column :price, :integer, :default => 0
t.column :caption, :text
t.column :url, :text
t.column :affiliateurl, :text
t.column :imageflag, :integer, :default => 0
t.column :smallimageurl, :text
t.column :mediumimageurl, :text
t.column :availability, :integer, :default => 0
t.column :taxflag, :integer, :default => 0
t.column :postageflag, :integer, :default => 0
t.column :creditcardflag, :integer, :default => 0
t.column :shopoftheyearflag, :integer, :default => 0
t.column :affiliaterate, :integer, :default => 0
t.column :starttime, :timestamp
t.column :endTime, :timestamp
t.column :reviewcount, :integer, :default => 0
t.column :reviewaverage, :integer, :default => 0
t.column :shopname, :text
t.column :shopcode, :string
t.column :shopurl, :string
t.column :genreid, :integer, :default => 0
end
end
def self.down
drop_table :items
end
end
| 10pockets | trunk/db/migrate/001_create_items.rb | Ruby | mit | 1,133 |
class CreateUsers < ActiveRecord::Migration
def self.up
create_table :users do |t|
t.column :openid_url, :string
end
end
def self.down
drop_table :users
end
end
| 10pockets | trunk/db/migrate/002_create_users.rb | Ruby | mit | 188 |
class ItemAddCreatedAt < ActiveRecord::Migration
def self.up
add_column :items, :created_at, :timestamp
add_column :items, :updated_at, :timestamp
end
def self.down
remove_column :items, :created_at
remove_column :items, :updated_at
end
end
| 10pockets | trunk/db/migrate/014_item_add_created_at.rb | Ruby | mit | 266 |
class ItemAddType < ActiveRecord::Migration
def self.up
add_column :items, :type_id, :integer, :default => 0
rename_column :items, :genreid, :genre_id
end
def self.down
rename_column :items, :genre_id, :genreid
remove_column :items, :type_id
end
end
| 10pockets | trunk/db/migrate/009_item_add_type.rb | Ruby | mit | 275 |
class GiftAddGender < ActiveRecord::Migration
def self.up
add_column :gifts, :gender, :integer
end
def self.down
remove_column :gifts, :gender
end
end
| 10pockets | trunk/db/migrate/012_gift_add_gender.rb | Ruby | mit | 168 |
class CreateEvents < ActiveRecord::Migration
def self.up
create_table :events do |t|
t.column :name, :string
end
[_("Birth celebration"), _("Congratulation on inside"), _("Return to Birth celebration"), _("Birth day"), _("Christmas"), _("Entrance celebration"), _("3 years Festival"), _("5 years Festival"), _("7 years Festival"), _("New year's present"), _("Other gift")].each do |n|
Event.create :name => n
end
end
def self.down
drop_table :events
end
end
| 10pockets | trunk/db/migrate/006_create_events.rb | Ruby | mit | 499 |
class CreateGenres < ActiveRecord::Migration
def self.up
create_table :genres do |t|
t.column :name, :string
end
["Book", "Music", "CE", "Kitchen", "DVD", "Video", "Software", "Video Games", "Toy", "Sports", "Health and Beauty", "Watch", "Baby Product", "Apparel"].each do |n|
Genre.create :name => n
end
end
def self.down
drop_table :genres
end
end
| 10pockets | trunk/db/migrate/011_create_genres.rb | Ruby | mit | 391 |
class ActsAsTaggableMigration < ActiveRecord::Migration
def self.up
create_table :tags do |t|
t.column :name, :string
end
create_table :taggings do |t|
t.column :tag_id, :integer
t.column :taggable_id, :integer
# You should make sure that the column created is
# long enough to store the required class names.
t.column :taggable_type, :string
t.column :created_at, :datetime
end
add_index :taggings, :tag_id
add_index :taggings, [:taggable_id, :taggable_type]
end
def self.down
drop_table :taggings
drop_table :tags
end
end
| 10pockets | trunk/db/migrate/008_acts_as_taggable_migration.rb | Ruby | mit | 659 |
class AddSessions < ActiveRecord::Migration
def self.up
create_table :sessions do |t|
t.column :session_id, :string
t.column :data, :text
t.column :updated_at, :datetime
end
add_index :sessions, :session_id
add_index :sessions, :updated_at
end
def self.down
drop_table :sessions
end
end
| 10pockets | trunk/db/migrate/003_add_sessions.rb | Ruby | mit | 335 |
class CreateGifts < ActiveRecord::Migration
def self.up
create_table :gifts do |t|
t.column :user_id, :integer, :default => 0
t.column :comment, :string
t.column :item_id, :integer, :default => 0
t.column :created_at, :timestamp
t.column :updated_at, :timestamp
t.column :age_id, :integer, :default => 0
t.column :event_id, :integer, :default => 0
t.column :rating, :integer, :default => 0
end
end
def self.down
drop_table :gifts
end
end
| 10pockets | trunk/db/migrate/007_create_gifts.rb | Ruby | mit | 507 |
class CreateTypes < ActiveRecord::Migration
def self.up
create_table :types do |t|
t.column :name, :string
end
["rakuten", "amazon"].each do |n|
Type.create :name => n
end
end
def self.down
drop_table :types
end
end
| 10pockets | trunk/db/migrate/010_create_types.rb | Ruby | mit | 257 |
# Use this migration to create the tables for the ActiveRecord store
class AddOpenIdStoreToDb < ActiveRecord::Migration
def self.up
create_table "open_id_associations", :force => true do |t|
t.column "server_url", :binary
t.column "handle", :string
t.column "secret", :binary
t.column "issued", :integer
t.column "lifetime", :integer
t.column "assoc_type", :string
end
create_table "open_id_nonces", :force => true do |t|
t.column :server_url, :string, :null => false
t.column :timestamp, :integer, :null => false
t.column :salt, :string, :null => false
end
end
def self.down
drop_table "open_id_associations"
drop_table "open_id_nonces"
end
end
| 10pockets | trunk/db/migrate/004_add_open_id_store_to_db.rb | Ruby | mit | 734 |
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../config/boot'
require 'commands/breakpointer' | 10pockets | trunk/script/breakpointer | Ruby | mit | 102 |
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../../config/boot'
require 'commands/process/reaper'
| 10pockets | trunk/script/process/reaper | Ruby | mit | 108 |
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../../config/boot'
require 'commands/process/inspector'
| 10pockets | trunk/script/process/inspector | Ruby | mit | 111 |
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../../config/boot'
require 'commands/process/spawner'
| 10pockets | trunk/script/process/.svn/text-base/spawner.svn-base | Ruby | mit | 109 |
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../../config/boot'
require 'commands/process/reaper'
| 10pockets | trunk/script/process/.svn/text-base/reaper.svn-base | Ruby | mit | 108 |
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../../config/boot'
require 'commands/process/inspector'
| 10pockets | trunk/script/process/.svn/text-base/inspector.svn-base | Ruby | mit | 111 |
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../../config/boot'
require 'commands/process/spawner'
| 10pockets | trunk/script/process/spawner | Ruby | mit | 109 |
#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../config/boot'
require 'commands/plugin' | 10pockets | trunk/script/plugin | Ruby | mit | 96 |