analyzer/tests/libInit.cc
author Jan Vrany <jan.vrany@fit.cvut.cz>
Sun, 05 Oct 2014 00:05:20 +0100
changeset 380 8fe3cb4e607f
parent 274 c4af51f9eb36
child 425 0a5c4929af56
permissions -rw-r--r--
Remove Pharoisms to make code more portable and running on Smalltalk/X * Use ANSI `(Character codePoint: 13)` (`10`) instead of `Character cr` (`lf`), This is more portable and does not depend on dialects interpretation of `#cr` - Smalltalk/X convert it according to platform line end convention (UNIX/Windows/Mac) * Do not assume exact value of a printstring in tests, i.e., instead of `msg includesSubstring: '$a' code `msg includesSubstring: $a printString. This way, the test is independent on the printString value, which may differ among dialects. Q: Is printString value of String and/or Character defined in ANSI? * In assestions, instead of `#equals:` use plain old `#=`, which is more portable. * Removed Character>>- used to create range parser. Use portable `(Interval from: $a to: $z) asParser` instead of just `$a - $z`. Do not use ($a to: $z) asParser as in Pharo, Character>>to: does not create an Interval but an Array (sigh).
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
274
c4af51f9eb36 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     1
/*
380
8fe3cb4e607f Remove Pharoisms to make code more portable and running on Smalltalk/X
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 274
diff changeset
     2
 * $Header$
274
c4af51f9eb36 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     3
 *
c4af51f9eb36 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     4
 * DO NOT EDIT
c4af51f9eb36 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     5
 * automagically generated from the projectDefinition: stx_goodies_petitparser_analyzer_tests.
c4af51f9eb36 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     6
 */
c4af51f9eb36 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     7
#define __INDIRECTVMINITCALLS__
c4af51f9eb36 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     8
#include <stc.h>
c4af51f9eb36 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     9
c4af51f9eb36 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    10
#ifdef WIN32
c4af51f9eb36 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    11
# pragma codeseg INITCODE "INITCODE"
c4af51f9eb36 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    12
#endif
c4af51f9eb36 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
c4af51f9eb36 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    14
#if defined(INIT_TEXT_SECTION) || defined(DLL_EXPORT)
c4af51f9eb36 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    15
DLL_EXPORT void _libstx_goodies_petitparser_analyzer_tests_Init() INIT_TEXT_SECTION;
c4af51f9eb36 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    16
DLL_EXPORT void _libstx_goodies_petitparser_analyzer_tests_InitDefinition() INIT_TEXT_SECTION;
c4af51f9eb36 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    17
#endif
c4af51f9eb36 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    18
c4af51f9eb36 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    19
void _libstx_goodies_petitparser_analyzer_tests_InitDefinition(pass, __pRT__, snd)
c4af51f9eb36 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
OBJ snd; struct __vmData__ *__pRT__; {
c4af51f9eb36 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
__BEGIN_PACKAGE2__("libstx_goodies_petitparser_analyzer_tests__DFN", _libstx_goodies_petitparser_analyzer_tests_InitDefinition, "stx:goodies/petitparser/analyzer/tests");
c4af51f9eb36 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    22
_stx_137goodies_137petitparser_137analyzer_137tests_Init(pass,__pRT__,snd);
c4af51f9eb36 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    23
c4af51f9eb36 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    24
__END_PACKAGE__();
c4af51f9eb36 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    25
}
c4af51f9eb36 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    26
c4af51f9eb36 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    27
void _libstx_goodies_petitparser_analyzer_tests_Init(pass, __pRT__, snd)
c4af51f9eb36 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    28
OBJ snd; struct __vmData__ *__pRT__; {
c4af51f9eb36 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    29
__BEGIN_PACKAGE2__("libstx_goodies_petitparser_analyzer_tests", _libstx_goodies_petitparser_analyzer_tests_Init, "stx:goodies/petitparser/analyzer/tests");
c4af51f9eb36 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    30
_stx_137goodies_137petitparser_137analyzer_137tests_Init(pass,__pRT__,snd);
c4af51f9eb36 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    31
c4af51f9eb36 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    32
c4af51f9eb36 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    33
__END_PACKAGE__();
c4af51f9eb36 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    34
}