Skip to content

Instantly share code, notes, and snippets.

View andymatuschak's full-sized avatar

Andy Matuschak andymatuschak

View GitHub Profile
class Test
{
int s;
void foo()
{
int foo, bar;
bar.baz[4] = 4;
}
}
int *foo()
{
int x = 4;
return &x;
}
void tester()
{
int *x = foo();
*x = 8; // NOT OKAY
//
// PXImageBackground.h
// Pixen-XCode
//
// Copyright (c) 2003,2004,2005 Open Sword Group
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use,copy, modify, merge, publish, distribute, sublicense, and/or sell
//
// PXImageBackground.h
// Pixen-XCode
//
// Copyright (c) 2003,2004,2005 Open Sword Group
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use,copy, modify, merge, publish, distribute, sublicense, and/or sell
//
// NSObject+BlockObservation.h
// Version 1.0
//
// Andy Matuschak
// andy@andymatuschak.org
// Public domain because I love you. Let me know how you use it.
//
#import <Cocoa/Cocoa.h>