FreeWRL

 view release on metacpan or  search on metacpan

JS/js/README  view on Meta::CPAN

  e.g. JS_NewObject.
- Extern but library-private function names use a js_ prefix and mixed case,
  e.g. js_LookupSymbol.
- Most static function names have unprefixed, mixed-case names: GetChar.
- But static native methods of JS objects have lowercase, underscore-separated
  or intercaps names, e.g., str_indexOf.
- And library-private and static data use underscores, not intercaps (but
  library-private data do use a js_ prefix).
- Scalar type names are lowercase and js-prefixed: jsdouble.
- Aggregate type names are JS-prefixed and mixed-case: JSObject.
- Macros are generally ALL_CAPS and underscored, to call out potential
  side effects, multiple uses of a formal argument, etc.

- Four spaces of indentation per statement nesting level.
- Tabs are taken to be eight spaces, and an Emacs magic comment at the top of
  each file tries to help.  If you're using MSVC or similar, you'll want to
  set tab width to 8, or convert these files to be space-filled.
- DLL entry points have their return type expanded within a PR_PUBLIC_API()
  macro call, to get the right Windows secret type qualifiers in the right
  places for both 16- and 32-bit builds.
- Callback functions that might be called from a DLL are similarly macroized

JS/js/jsregexp.c  view on Meta::CPAN

	    } else {                                                          \
		bit = c & 7;                                                  \
		bit = 1 << bit;                                               \
		matched = pc[3 + byte] & bit;                                 \
	    }                                                                 \
	    matchlen = 1;                                                     \
	    break;                                                            \
/* END NONDOT_SINGLE_CASES */

	  /*
	   * Macro-expand single-char/single-opcode cases here and below.
	   */
	  SINGLE_CASES

	  case REOP_STAR:
	    op = (REOp) *++pc;
	    oplen = reopsize[op];
	    for (cp2 = cp; cp < cpend; cp++) {
		switch (op) {
		  NONDOT_SINGLE_CASES
		  default:

JS/js/prtypes.h  view on Meta::CPAN

#define PR_PUBLIC_DATA(__x)     __x
#define PR_IMPORT_DATA(__x)     __x
#define PR_CALLBACK
#define PR_STATIC_CALLBACK(__x)	static __x
#define PR_EXTERN(__type) extern __type
#endif /* Mac or Unix */

/************************************************************************/

/*
 * Macro body brackets so that macros with compound statement definitions
 * behave syntactically more like functions when called.
 */
#define PR_BEGIN_MACRO		do {
#define PR_END_MACRO		} while (0)

/*
 * Macro shorthands for conditional C++ extern block delimiters.
 */
#ifdef __cplusplus
#define PR_BEGIN_EXTERN_C	extern "C" {
#define PR_END_EXTERN_C		}
#else
#define PR_BEGIN_EXTERN_C
#define PR_END_EXTERN_C
#endif

/*



( run in 0.523 second using v1.01-cache-2.11-cpan-49f99fa48dc )