-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b4b4a64
commit c3794bf
Showing
37 changed files
with
180 additions
and
248 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/* Copyright � 2017 David A�D� Morano. All rights reserved. */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/* lang=C++20 */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#include <envstandards.h> /* ordered first to configure */ | ||
#include <clanguage.h> | ||
#include <utypedefs.h> | ||
#include <utypealiases.h> | ||
#include <usysrets.h> | ||
#include <usyscalls.h> | ||
#include <localmisc.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/* version %I% last-modified %G% */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/* Copyright � 2017 David A�D� Morano. All rights reserved. */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Binary file not shown.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Hello there | ||
second line |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
/* testobjaddr SUPPORT */ | ||
/* lang=C++98 */ | ||
|
||
/* show object addresses */ | ||
/* version %I% last-modified %G% */ | ||
|
||
|
||
/* revision history: | ||
= 1998-12-01, David AD Morano | ||
This subroutine was written for Rightcore Network Services. | ||
*/ | ||
|
||
/* Copyright © 1998 David AD Morano. All rights reserved. */ | ||
|
||
/******************************************************************************* | ||
This program shows (prints out) object addresess. | ||
*******************************************************************************/ | ||
|
||
#include <envstandards.h> /* MUST be ordered first to configure */ | ||
#include <sys/types.h> | ||
#include <climits> | ||
#include <string> | ||
#include <new> | ||
#include <initializer_list> | ||
#include <utility> | ||
#include <functional> | ||
#include <algorithm> | ||
#include <set> | ||
#include <string> | ||
#include <iostream> | ||
#include <usystem.h> | ||
#include <localmisc.h> | ||
|
||
|
||
/* local defines */ | ||
|
||
|
||
/* imported namespaces */ | ||
|
||
using namespace std ; /* yes, we want punishment! */ | ||
|
||
|
||
/* external subroutines */ | ||
|
||
|
||
/* local structures */ | ||
|
||
struct Base { | ||
string id ; | ||
Base(cchar *s) : id(s) { | ||
cout << "Base::ctor " << id << eol ; | ||
} ; | ||
~Base() { | ||
cout << "Base::dtor " << id << eol ; | ||
} ; | ||
} ; | ||
|
||
struct Derived : Base { | ||
string id ; | ||
Derived(cchar *s) : Base(s), id(s) { | ||
cout << "Derived::ctor " << id << eol ; | ||
} ; | ||
~Derived() { | ||
cout << "Derived::dtor " << id << eol ; | ||
} ; | ||
} ; | ||
|
||
|
||
/* forward references */ | ||
|
||
static void sub1() ; | ||
|
||
|
||
/* local variables */ | ||
|
||
|
||
/* exported variables */ | ||
|
||
|
||
/* exported subroutines */ | ||
|
||
int main(int,mainv,mainv) { | ||
Base *bp = new Derived("a") ; | ||
cout << bp << eol ; | ||
{ | ||
Derived *dp = static_cast<Derived *>(bp) ; | ||
void *vp = bp ; | ||
cout << dp << " " << vp << eol ; | ||
} | ||
sub1() ; | ||
Derived *dp = static_cast<Derived *>(bp) ; | ||
delete dp ; | ||
} | ||
/* end subroutine (main) */ | ||
|
||
static void sub1() { | ||
Derived *dp = new Derived("b") ; | ||
cout << "sub1 " << dp << eol ; | ||
{ | ||
Base *bp = dp ; | ||
void *vp = dp ; | ||
cout << "sub1 " << bp << " " << vp << eol ; | ||
} | ||
delete dp ; | ||
} | ||
|
||
|
Oops, something went wrong.