Skip to content

Commit 58bb597

Browse files
committed
mulle_objc_classhierarchy_dotdump_to_stream now dumps empty file for cls=nil (for some reason)
1 parent 4a320cf commit 58bb597

File tree

13 files changed

+35
-22
lines changed

13 files changed

+35
-22
lines changed

.mulle/share/env/environment-plugin.sh

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.mulle/share/env/version

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.mulle/share/sde/version/mulle-sde/cmake

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cmake_minimum_required( VERSION 3.1)
22

3-
project( mulle-objc-debug VERSION 0.21.2 LANGUAGES C)
3+
project( mulle-objc-debug VERSION 0.21.3 LANGUAGES C)
44

55

66
### mulle-sde environment

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ and debugging support.
1010

1111
| Release Version | Release Notes
1212
|-------------------------------------------------------|--------------
13-
| ![Mulle kybernetiK tag](https://img.shields.io/github/tag/mulle-objc/mulle-objc-debug.svg?branch=release) [![Build Status](https://github.com/mulle-objc/mulle-objc-debug/workflows/CI/badge.svg?branch=release)](//github.com/mulle-objc/mulle-objc-debug/actions) | [RELEASENOTES](RELEASENOTES.md) |
13+
| ![Mulle kybernetiK tag](https://img.shields.io/github/tag/mulle-objc/mulle-objc-debug.svg) [![Build Status](https://github.com/mulle-objc/mulle-objc-debug/workflows/CI/badge.svg)](//github.com/mulle-objc/mulle-objc-debug/actions) | [RELEASENOTES](RELEASENOTES.md) |
1414

1515

1616

RELEASENOTES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
### 0.21.3
2+
3+
Various small improvements
4+
15
### 0.21.2
26

37

cmake/share/InstallRpath.cmake

Lines changed: 9 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/mulle-objc-debug.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
#include "include.h"
4141

4242
// MEMO: mulle-project-version uses a special hack to not have __
43-
#define MULLE_OBJC_DEBUG_VERSION ((0UL << 20) | (21 << 8) | 2)
43+
#define MULLE_OBJC_DEBUG_VERSION ((0UL << 20) | (21 << 8) | 3)
4444

4545

4646
#include "mulle-objc-dotdump.h"

src/mulle-objc-dotdump.c

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1191,6 +1191,9 @@ void
11911191
}
11921192

11931193

1194+
1195+
#pragma mark - hierarchy dump
1196+
11941197
/*
11951198
* Hierarchy dumper. Dump a class and all superclasses and protocol classes
11961199
*/
@@ -1336,22 +1339,22 @@ void mulle_objc_classhierarchy_dotdump_to_stream( struct _mulle_objc_class *cl
13361339
struct print_hierarchy_info info;
13371340
struct c_set set;
13381341

1339-
if( ! cls)
1340-
return;
1341-
13421342
if( ! fp)
13431343
fp = stdout;
13441344

13451345
fprintf( fp, "digraph mulle_classhierarchy\n{\n");
13461346

1347-
c_set_init( &set);
1347+
if( cls)
1348+
{
1349+
c_set_init( &set);
13481350

1349-
print_hierarchy_info_init( &info, NULL, NULL, &set, fp);
1351+
print_hierarchy_info_init( &info, NULL, NULL, &set, fp);
13501352

1351-
info.is_meta = _mulle_objc_class_is_metaclass( cls);
1352-
print_hierarchy( cls, &info);
1353+
info.is_meta = _mulle_objc_class_is_metaclass( cls);
1354+
print_hierarchy( cls, &info);
13531355

1354-
c_set_done( &set);
1356+
c_set_done( &set);
1357+
}
13551358

13561359
fprintf( fp, "}\n");
13571360
}
@@ -1373,3 +1376,4 @@ void mulle_objc_classhierarchy_dotdump_to_file( struct _mulle_objc_class *cls,
13731376
}
13741377

13751378

1379+

test/.mulle/share/env/environment-plugin.sh

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)